Interface Open.InternalOpener
-
- Enclosing class:
- Open
public static interface Open.InternalOpener
If you wish to add special handling for opening a file type, you may register anInternalOpener
for it. The opener will be used to open files that it applies to if the open rule for the file is eitherOpen.OpenRule.INTERNAL_OPEN
orOpen.OpenRule.INTERNAL_EDIT
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
appliesTo(java.io.File f)
Returnstrue
if this opener should be used to open the specified file.void
open(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)
Returnstrue
if this opener should be used to open the specified file.- Parameters:
f
- the file to check- Returns:
true
if the opener can open the file,false
otherwise
-
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
-
-