Author: kono
Date: 2011-07-12 11:42:35 -0700 (Tue, 12 Jul 2011)
New Revision: 26152

Added:
   
core3/io-api/trunk/src/main/java/org/cytoscape/io/util/RecentlyOpenedTracker.java
Log:
refs #112 RecentOpenedTracker had been extracted as an interface.

Added: 
core3/io-api/trunk/src/main/java/org/cytoscape/io/util/RecentlyOpenedTracker.java
===================================================================
--- 
core3/io-api/trunk/src/main/java/org/cytoscape/io/util/RecentlyOpenedTracker.java
                           (rev 0)
+++ 
core3/io-api/trunk/src/main/java/org/cytoscape/io/util/RecentlyOpenedTracker.java
   2011-07-12 18:42:35 UTC (rev 26152)
@@ -0,0 +1,40 @@
+package org.cytoscape.io.util;
+
+import java.io.FileNotFoundException;
+import java.net.URL;
+import java.util.List;
+
+/**
+ * Manages list of recently opened files.
+ * Currently, this is used for tracking recent sessions.
+ *
+ */
+public interface RecentlyOpenedTracker {
+
+
+       /**
+        * @return the last addition or null if there are no URLs
+        */
+       URL getMostRecentlyOpenedURL();
+       
+       
+       /**
+        * @returns the current list of recently opened file names
+        */
+       List<URL> getRecentlyOpenedURLs();
+
+
+       /**
+        * Adds "newURL" to the list of recently opened file names and trims the
+        * list if it has exceeded its maximum length.
+        */
+       void add(final URL newURL);
+
+
+       /**
+        * Writes the list of recently opened files to the file specified by the
+        * constructor argument.
+        */
+       void writeOut() throws FileNotFoundException;
+
+}
\ No newline at end of file

-- 
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.

Reply via email to