public class DefaultKeYDesktop extends Object implements KeYDesktop
KeYDesktop implementation delegating all requests
to Desktop.Main.getKeyDesktop()| Constructor and Description |
|---|
DefaultKeYDesktop() |
| Modifier and Type | Method and Description |
|---|---|
void |
browse(URI uri)
Opens the given
URI. |
void |
edit(File file)
Open the given
File for editing purpose. |
void |
open(File file)
Open the given
File for viewing purpose. |
boolean |
supportsBrowse()
Checks if browsing
URIs is supported. |
boolean |
supportsEdit()
Checks if editing
Files is supported. |
boolean |
supportsOpen()
Checks if opening
Files is supported. |
public boolean supportsEdit()
Files is supported.supportsEdit in interface KeYDesktoptrue is supported, false is not supported.public void edit(File file) throws IOException
File for editing purpose.edit in interface KeYDesktopfile - The File to open.IOException - Occurred Exception.public boolean supportsOpen()
Files is supported.supportsOpen in interface KeYDesktoptrue is supported, false is not supported.public void open(File file) throws IOException
File for viewing purpose.open in interface KeYDesktopfile - The File to open.IOException - Occurred Exception.public boolean supportsBrowse()
URIs is supported.supportsBrowse in interface KeYDesktoptrue is supported, false is not supported.public void browse(URI uri) throws IOException
URI.browse in interface KeYDesktopuri - The URI to open.IOException - Occurred Exception.