private static final int THREE = 3;
+ private static AlignFrame currentAlignFrame;
+
public static jalview.ws.jws1.Discoverer discoverer;
public static Object[] jalviewClipboard;
{
new FileLoader().LoadFile(viewport, choice, FormatAdapter.FILE,
format);
+ // viewport.setShowSequenceFeatures(JSONFile.isSeqFeaturesEnabled());
+ // AlignFrame af = viewport.getAlignPanel().alignFrame;
+ // if (af != null)
+ // {
+ // af.changeColour(JSONFile.getColourScheme());
+ // af.setMenusForViewport();
+ // }
}
else
{
{
dialogExecutor.shutdownNow();
}
-
+ closeAll_actionPerformed(null);
System.exit(0);
}
final java.io.File choice = chooser.getSelectedFile();
setProjectFile(choice);
- // TODO or move inside the new Thread?
- saveChimeraSessions(choice.getAbsolutePath());
-
new Thread(new Runnable()
{
public void run()
}
}
- /**
- * Request any open, linked Chimera sessions to save their state.
- *
- * @param jalviewProjectFilename
- * the filename of the Jalview project; Chimera session files should
- * be given distinct, but obviously related, names.
- */
- public void saveChimeraSessions(String jalviewProjectFilename)
- {
- int i = 0;
- for (JInternalFrame frame : getAllFrames())
- {
- if (frame instanceof ChimeraViewFrame)
- {
- /*
- * Construct a filename for the Chimera session by append _chimera<n>.py
- * to the Jalview project file name.
- */
- String chimeraPath = jalviewProjectFilename + "_chimera_" + i
- + ".py";
- ((ChimeraViewFrame) frame).saveSession(chimeraPath);
- i++;
- }
- }
- }
-
private void setProjectFile(File choice)
{
this.projectFile = choice;
public void registerHandler(final long id,
final IProgressIndicatorHandler handler)
{
- if (progressBarHandlers == null || !progressBars.contains(new Long(id)))
+ if (progressBarHandlers == null
+ || !progressBars.containsKey(new Long(id)))
{
throw new Error(
MessageManager
myTopFrame.setDisplayedView(myTopFrame.alignPanel);
}
+
+ // public static AlignFrame getCurrentAlignFrame()
+ // {
+ // return currentAlignFrame;
+ // }
+ //
+ // public static void setCurrentAlignFrame(AlignFrame currentAlignFrame)
+ // {
+ // Desktop.currentAlignFrame = currentAlignFrame;
+ // }
+
+
}