+ @Override
+ public void showConsole(boolean b)
+ {
+ appJmolWindow.showConsole(b);
+ }
+
+ @Override
+ protected JmolAppConsoleInterface createJmolConsole(
+ Container consolePanel, String buttonsToShow)
+ {
+ viewer.setJmolCallbackListener(this);
+ return null;//BH can't do this yet. new AppConsole(viewer, consolePanel, buttonsToShow);
+ }
+
+ @Override
+ protected void releaseUIResources()
+ {
+ appJmolWindow = null;
+ closeConsole();
+ }
+
+ @Override
+ public void releaseReferences(Object svl)
+ {
+ if (svl instanceof SeqPanel)
+ {
+ appJmolWindow.removeAlignmentPanel(((SeqPanel) svl).ap);
+ }
+ }
+
+ @Override
+ public Map<String, Object> getJSpecViewProperty(String arg0)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public JalviewStructureDisplayI getViewer()
+ {
+ return appJmolWindow;
+ }
+
+ @Override
+ public jalview.api.FeatureRenderer getFeatureRenderer(
+ AlignmentViewPanel alignment)
+ {
+ AlignmentPanel ap = (alignment == null)
+ ? appJmolWindow.getAlignmentPanel()
+ : (AlignmentPanel) alignment;
+ if (ap.av.isShowSequenceFeatures())
+ {
+ return ap.av.getAlignPanel().getSeqPanel().seqCanvas.fr;
+ }
+
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ public void cacheFiles(List<File> files)
+ {
+ if (files == null)
+ {
+ return;
+ }
+ for (File f : files)
+ {
+ Platform.cacheFileData(f);
+ }