Author: ruschein
Date: 2010-10-01 15:10:24 -0700 (Fri, 01 Oct 2010)
New Revision: 22127
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
Log:
Fixed open/save confusion.
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
2010-10-01 21:09:45 UTC (rev 22126)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/FileHandler.java
2010-10-01 22:10:24 UTC (rev 22127)
@@ -47,7 +47,7 @@
private enum Type { NETWORK, SESSION, ATTRIBUTES, DEFAULT };
private Type type;
private SupportedFileTypesManager fileTypesManager;
- private boolean openMode;
+ private boolean openMode; // true if we'd like to open a file and false
if we'd like to save a file
/**
* Constructs the <code>GUIHandler</code> for the <code>File</code> type
@@ -74,13 +74,6 @@
}
private void init() {
- //Construction of GUI
- fileChooser = new JFileChooser();
- setFileType();
- setGui(type);
- setLayout();
- panel.setLayout(layout);
-
// Determine whether we're dealing w/ an "open" or "save" mode:
openMode = true;
for (final Param param : getFlags()) {
@@ -89,6 +82,13 @@
break;
}
}
+
+ //Construction of GUI
+ fileChooser = new JFileChooser();
+ setFileType();
+ setGui(type);
+ setLayout();
+ panel.setLayout(layout);
}
/**
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.