public final class ProjectPlugin
extends org.gjt.sp.jedit.EditPlugin
| Constructor and Description |
|---|
ProjectPlugin() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.OutputStream |
getResourceAsOutputStream(java.lang.String path)
Returns an output stream to the specified resource, or
null if access
to that resource is denied. |
static java.io.InputStream |
getResourceAsStream(java.lang.String path)
Returns an input stream to the specified resource, or
null
if none is found. |
static java.lang.String |
getResourcePath(java.lang.String path)
Returns the full path of the specified plugin resource.
|
void |
handleEditorExitRequested(org.gjt.sp.jedit.msg.EditorExitRequested msg) |
void |
handlePluginUpdate(org.gjt.sp.jedit.msg.PluginUpdate pu) |
void |
handleViewUpdate(org.gjt.sp.jedit.msg.ViewUpdate vu) |
void |
start()
Start the plugin.
|
void |
stop()
Stop the plugin and save the project resources.
|
public static java.io.InputStream getResourceAsStream(java.lang.String path)
null
if none is found.path - The path to the resource to be returned, relative to
the plugin's resource path.public static java.io.OutputStream getResourceAsOutputStream(java.lang.String path)
null if access
to that resource is denied.path - The path to the resource to be returned, relative to
the plugin's resource path.public static java.lang.String getResourcePath(java.lang.String path)
throws java.io.FileNotFoundException
path - The relative path to the resource from the plugin's
resource path.java.io.FileNotFoundExceptionpublic void start()
start in class org.gjt.sp.jedit.EditPluginpublic void stop()
stop in class org.gjt.sp.jedit.EditPluginpublic void handleViewUpdate(org.gjt.sp.jedit.msg.ViewUpdate vu)
public void handlePluginUpdate(org.gjt.sp.jedit.msg.PluginUpdate pu)
public void handleEditorExitRequested(org.gjt.sp.jedit.msg.EditorExitRequested msg)