Author: rozagh
Date: 2012-06-08 15:00:57 -0700 (Fri, 08 Jun 2012)
New Revision: 29512
Modified:
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/session/SaveSessionAsTask.java
Log:
Passing the correct file name
Modified:
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/session/SaveSessionAsTask.java
===================================================================
---
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/session/SaveSessionAsTask.java
2012-06-08 21:47:45 UTC (rev 29511)
+++
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/session/SaveSessionAsTask.java
2012-06-08 22:00:57 UTC (rev 29512)
@@ -74,14 +74,14 @@
final CySession session = sessionMgr.getCurrentSession();
insertTasksAfterCurrentTask(new CySessionWriter(writerMgr,
session, file));
taskMonitor.setProgress(1.0);
-
- // Fire event to tell others session had been saved to a file.
- cyEventHelper.fireEvent(new SessionSavedEvent(this, session,
file.getAbsolutePath()));
// Add this session file URL as the most recent file.
if ( !file.getName().endsWith(".cys"))
file = new File(file.getPath() + ".cys");
-
+
+ // Fire event to tell others session had been saved to a file.
+ cyEventHelper.fireEvent(new SessionSavedEvent(this, session,
file.getAbsolutePath()));
+
tracker.add(file.toURI().toURL());
}
}
--
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.