import java.util.BitSet;
+import javax.swing.JPanel;
+
import jalview.bin.Cache;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
import org.jmol.popup.JmolPopup;
+import org.openscience.jmol.app.jmolpanel.AppConsole;
public class AppJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
{
public void sendConsoleEcho(String strEcho)
{
- if (appJmolWindow.scriptWindow != null)
+ if (console != null)
{
- appJmolWindow.scriptWindow.sendConsoleEcho(strEcho);
+ console.sendConsoleEcho(strEcho);
}
}
public void sendConsoleMessage(String strStatus)
{
- if (appJmolWindow.scriptWindow != null && strStatus != null)
+ if (console != null && strStatus != null)
// && !strStatus.equals("Script completed"))
// should we squash the script completed string ?
{
- appJmolWindow.scriptWindow.sendConsoleMessage(strStatus);
+ console.sendConsoleMessage(strStatus);
}
}
public void notifyScriptTermination(String strStatus, int msWalltime)
{
- if (appJmolWindow.scriptWindow != null)
- appJmolWindow.scriptWindow.notifyScriptTermination(strStatus,
- msWalltime);
+ // todo - script termination doesn't happen ?
+ //if (console != null)
+ //console.notifyScriptTermination(strStatus,
+ // msWalltime);
}
public void showUrl(String url)
}
+ public void showConsole(boolean b) {
+ appJmolWindow.showConsole(b);
+ }
/**
* add the given sequences to the mapping scope for the given pdb file handle
}
}
}
-
}
\ No newline at end of file