com.partnersoft.workbench.model
Class AbstractWorkbenchDirectoryHandler

java.lang.Object
  extended by com.partnersoft.workbench.model.AbstractWorkbenchDirectoryHandler
All Implemented Interfaces:
WorkbenchDirectoryHandler
Direct Known Subclasses:
MapsetDirectoryHandler, MapsetsDirectoryHandler, ModuleDirectoryHandler, ModulesDirectoryHandler

public abstract class AbstractWorkbenchDirectoryHandler
extends java.lang.Object
implements WorkbenchDirectoryHandler


Constructor Summary
AbstractWorkbenchDirectoryHandler()
           
 
Method Summary
 java.util.List<WorkbenchDirectoryEditor> createEditors()
          Creates and returns a list of editors for the files this handler handles.
 java.util.List<java.lang.Class<? extends WorkbenchDirectoryEditor>> getEditorClasses()
           
 javax.swing.Icon getIcon()
          Returns an icon appropriate to this file type.
 java.lang.String getName()
          Returns the name for this file type.
 java.lang.String getPathRegex()
           
 boolean isAppropriateFor(VfsDirectory directory)
          Returns true if this handler can handle the given directory.
 void setEditorClasses(java.lang.Class<? extends WorkbenchDirectoryEditor>... editorClasses)
           
 void setEditorClasses(java.util.List<java.lang.Class<? extends WorkbenchDirectoryEditor>> editorClasses)
           
 void setIcon(javax.swing.Icon icon)
           
 void setName(java.lang.String name)
           
 void setPathRegex(java.lang.String newPathRegex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWorkbenchDirectoryHandler

public AbstractWorkbenchDirectoryHandler()
Method Detail

createEditors

public java.util.List<WorkbenchDirectoryEditor> createEditors()
Description copied from interface: WorkbenchDirectoryHandler
Creates and returns a list of editors for the files this handler handles.

Specified by:
createEditors in interface WorkbenchDirectoryHandler

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: WorkbenchDirectoryHandler
Returns an icon appropriate to this file type.

Specified by:
getIcon in interface WorkbenchDirectoryHandler

getName

public java.lang.String getName()
Description copied from interface: WorkbenchDirectoryHandler
Returns the name for this file type.

Specified by:
getName in interface WorkbenchDirectoryHandler

isAppropriateFor

public boolean isAppropriateFor(VfsDirectory directory)
Description copied from interface: WorkbenchDirectoryHandler
Returns true if this handler can handle the given directory.

Specified by:
isAppropriateFor in interface WorkbenchDirectoryHandler
Parameters:
directory - VfsDirectory to test
Returns:
true if this handler is appropriate for the given directory

getEditorClasses

public java.util.List<java.lang.Class<? extends WorkbenchDirectoryEditor>> getEditorClasses()

setEditorClasses

public void setEditorClasses(java.util.List<java.lang.Class<? extends WorkbenchDirectoryEditor>> editorClasses)

setEditorClasses

public void setEditorClasses(java.lang.Class<? extends WorkbenchDirectoryEditor>... editorClasses)

getPathRegex

public java.lang.String getPathRegex()

setPathRegex

public void setPathRegex(java.lang.String newPathRegex)

setIcon

public void setIcon(javax.swing.Icon icon)

setName

public void setName(java.lang.String name)