*/
package jalview.appletgui;
+import java.awt.Container;
import java.util.BitSet;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
+import org.jmol.api.JmolAppConsoleInterface;
+import org.jmol.api.JmolViewer;
import org.jmol.popup.JmolPopup;
class AppletJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
appletJmolBinding.showConsole(show);
}
+ @Override
+ protected JmolAppConsoleInterface createJmolConsole(JmolViewer viewer2,
+ Container consolePanel, String buttonsToShow)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
}
\ No newline at end of file
package jalview.appletgui;
+import java.awt.Container;
import java.util.BitSet;
import java.util.Hashtable;
import java.util.Vector;
+import org.jmol.api.JmolAppConsoleInterface;
import org.jmol.api.JmolViewer;
import jalview.api.FeatureRenderer;
// This never gets called because we haven't overriden the associated Jmol's console
System.err.println("WARNING: unexpected call to ExtJmol's showConsole method. (showConsole="+show);
}
+
+ @Override
+ protected JmolAppConsoleInterface createJmolConsole(JmolViewer viewer2,
+ Container consolePanel, String buttonsToShow)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
import org.jmol.popup.*;
import org.jmol.viewer.JmolConstants;
import org.jmol.viewer.Viewer;
-import org.openscience.jmol.app.jmolpanel.AppConsole;
import jalview.schemes.*;
(jmolfileio ? new SmarterJmolAdapter() : null), htmlName
+ ((Object) this).toString(), documentBase, codeBase,
commandOptions, this);
- console = new AppConsole(viewer, null, consolePanel,
+
+ console = createJmolConsole(viewer, consolePanel,
buttonsToShow);
+
viewer.setConsole(new JmolAppConsoleInterface() {
@Override
}
+ protected abstract JmolAppConsoleInterface createJmolConsole(JmolViewer viewer2,
+ Container consolePanel, String buttonsToShow);
+
protected org.jmol.api.JmolAppConsoleInterface console = null;
public void setLoadingFromArchive(boolean loadingFromArchive)
*/
package jalview.gui;
+import java.awt.Container;
import java.util.BitSet;
import javax.swing.JPanel;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
+import org.jmol.api.JmolAppConsoleInterface;
+import org.jmol.api.JmolViewer;
import org.jmol.popup.JmolPopup;
import org.openscience.jmol.app.jmolpanel.AppConsole;
}
}
}
+
+ @Override
+ protected JmolAppConsoleInterface createJmolConsole(JmolViewer viewer2,
+ Container consolePanel, String buttonsToShow)
+ {
+ return new AppConsole(viewer, null, consolePanel, buttonsToShow);
+ }
}
\ No newline at end of file