Interface Open.InternalOpener
-
- Enclosing class:
- Open
public static interface Open.InternalOpenerIf you wish to add special handling for opening a file type, you may register anInternalOpenerfor it. The opener will be used to open files that it applies to if the open rule for the file is eitherOpen.OpenRule.INTERNAL_OPENorOpen.OpenRule.INTERNAL_EDIT.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanappliesTo(java.io.File f)Returnstrueif this opener should be used to open the specified file.voidopen(java.io.File f)Opens the specified file, typically by creating a new editor and adding it to the main application window.
-
-
-
Method Detail
-
appliesTo
boolean appliesTo(java.io.File f)
Returnstrueif this opener should be used to open the specified file.- Parameters:
f- the file to check- Returns:
trueif the opener can open the file,falseotherwise
-
open
void open(java.io.File f) throws java.lang.Exception
Opens the specified file, typically by creating a new editor and adding it to the main application window.- Parameters:
f- the file to create an editor for- Throws:
java.lang.Exception- if an exception occurs while creating the editor- See Also:
AbstractStrangeEonsEditor
-
-