|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EditorFactory
A common interface for instanciating FileEditor implementations, and finding out if a editor is capable
of editing a particular file.
| Method Summary | |
|---|---|
boolean |
canEditFile(AbstractFile file)
Returns true if this factory can create a file editor for the specified file. |
FileEditor |
createFileEditor()
Returns a new instance of FileEditor. |
| Method Detail |
|---|
boolean canEditFile(AbstractFile file)
throws WarnUserException
true if this factory can create a file editor for the specified file.
The FileEditor may base its decision stricly upon the file's name and its extension or may wish to read some of the file and compare it to a magic number.
file - file for which a editor must be created.
true if this factory can create a file editor for the specified file.
WarnUserException - if the specified file can be edited after the warning message contained in the
exception is displayed to the end user.FileEditor createFileEditor()
FileEditor.
FileEditor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard