Merge branch 'features/JAL-1333' into Release_2_8_2_Branch
[jalview.git] / src / ext / edu / ucsf / rbvi / strucviz2 / StructureSettings.java
diff --git a/src/ext/edu/ucsf/rbvi/strucviz2/StructureSettings.java b/src/ext/edu/ucsf/rbvi/strucviz2/StructureSettings.java
new file mode 100644 (file)
index 0000000..161ab13
--- /dev/null
@@ -0,0 +1,25 @@
+package ext.edu.ucsf.rbvi.strucviz2;
+
+/**
+ * This object maintains the relationship between Chimera objects and Cytoscape objects.
+ */
+public class StructureSettings {
+
+//     @Tunable(description = "Path to UCSF Chimera application", gravity = 4.0)
+       public String chimeraPath = null;
+
+       public StructureSettings(StructureManager manager) {
+               
+               chimeraPath = manager.getCurrentChimeraPath(null);
+
+               // This seems a little strange, but it has to do with the order of tunable interceptor
+               // handling. We need to set these selectors in our structure manager and dynamically
+               // pull the data out as needed....
+               manager.setStructureSettings( this);
+       }
+
+
+       public String getChimeraPath() {
+               return chimeraPath;
+       }
+}