org.scijava.io
Interface RecentFileService

All Superinterfaces:
Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, Prioritized, RichPlugin, SciJavaPlugin, SciJavaService, Service
All Known Implementing Classes:
DefaultRecentFileService

public interface RecentFileService
extends SciJavaService

Interface for services that manage the Recently Used Files menu.

Author:
Grant Harris, Curtis Rueden

Field Summary
static int MAX_FILES_SHOWN
           
 
Method Summary
 void add(String path)
          Adds or refreshes a path on the list of recent files.
 void clear()
          Clears the list of recent files.
 List<String> getRecentFiles()
          Gets the list of recent files.
 boolean remove(String path)
          Removes a path from the list of recent files.
 
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Disposable
dispose
 

Field Detail

MAX_FILES_SHOWN

static final int MAX_FILES_SHOWN
See Also:
Constant Field Values
Method Detail

add

void add(String path)
Adds or refreshes a path on the list of recent files.


remove

boolean remove(String path)
Removes a path from the list of recent files.


clear

void clear()
Clears the list of recent files.


getRecentFiles

List<String> getRecentFiles()
Gets the list of recent files.



Copyright © 2009–2014 SciJava. All rights reserved.