Browse Source

mol-plugin: added version

David Sehnal 6 years ago
parent
commit
952e082a54
2 changed files with 11 additions and 0 deletions
  1. 4 0
      src/mol-plugin/context.ts
  2. 7 0
      src/mol-plugin/version.ts

+ 4 - 0
src/mol-plugin/context.ts

@@ -26,6 +26,7 @@ import { LociLabelEntry, LociLabelManager } from './util/loci-label-manager';
 import { ajaxGet } from 'mol-util/data-source';
 import { CustomPropertyRegistry } from './util/custom-prop-registry';
 import { VolumeRepresentationRegistry } from 'mol-repr/volume/registry';
+import { PLUGIN_VERSION } from './version';
 
 export class PluginContext {
     private disposed = false;
@@ -171,6 +172,9 @@ export class PluginContext {
         this.initDataActions();
 
         this.lociLabels = new LociLabelManager(this);
+
+        // TODO: find a better solution for this.
+        setTimeout(() => this.log.message(`Mol* Plugin ${PLUGIN_VERSION}`), 500);
     }
 
     // settings = ;

+ 7 - 0
src/mol-plugin/version.ts

@@ -0,0 +1,7 @@
+/**
+ * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ *
+ * @author David Sehnal <david.sehnal@gmail.com>
+ */
+
+export const PLUGIN_VERSION = '0.1.0';