com.partnersoft.workbench.model
Interface WorkbenchFileHandler

All Known Implementing Classes:
AbstractWorkbenchFileHandler, BoxcarFileHandler, CogFileHandler, DatabaseCogFileHandler, DatabaseFileHandler, GenericFileHandler, HtmlFileHandler, ImageFileHandler, LogFileHandler, MapsetLegendFileHandler, MapsetSettingsFileHandler, PackratFileHandler, StandardFileHandler, StyleFileHandler, TextFileHandler, ZipFileHandler

public interface WorkbenchFileHandler

Provides file-appropriate editors and other behavior to the Workbench environment.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Method Summary
 java.util.List<WorkbenchFileEditor> createEditors()
          Creates and returns a list of editors for the files this handler handles.
 javax.swing.Icon getIcon()
          Returns an icon appropriate to this file type.
 java.lang.String getName()
          Returns the name for this file type.
 boolean isAppropriateFor(VfsFile file)
          Returns true if this handler can handle the given file.
 

Method Detail

isAppropriateFor

boolean isAppropriateFor(VfsFile file)
Returns true if this handler can handle the given file.

Parameters:
file - VfsFile to test
Returns:
true if this handler is appropriate for the given file

createEditors

java.util.List<WorkbenchFileEditor> createEditors()
Creates and returns a list of editors for the files this handler handles.


getIcon

javax.swing.Icon getIcon()
Returns an icon appropriate to this file type.


getName

java.lang.String getName()
Returns the name for this file type.