|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.cpc.ViewerRuntime
ccs.cpc.PluginRuntime
public abstract class PluginRuntime
Field Summary | |
---|---|
protected PluginCallback |
callback
|
protected Plugin |
plugin
|
Fields inherited from class ccs.cpc.ViewerRuntime |
---|
target |
Constructor Summary | |
---|---|
PluginRuntime()
Create an PluginRuntime to view this VFile. |
Method Summary | |
---|---|
static Viewer.FileCap |
getFileness()
The plugin's file-handling capability. |
static java.lang.String |
getName()
The plugin's user-visible name. |
Plugin |
getPlugin()
Returns our (invariant) Plugin. |
static boolean |
isEditor()
Whether this plugin edits its source VFile. |
javax.swing.ImageIcon |
loadIcon(java.lang.String path)
Load an icon from the CPC chrome CDB. |
void |
pluginFinished()
Plugins must call this when they terminate normally or are killed. |
ProfileModelElement |
readModel(java.lang.String classname,
java.lang.String key)
Retrieves the plugin's ProfileModelElement (containing its persistent state), if any. |
void |
setResources(PluginCallback callback,
VFile target,
Plugin plugin)
Set the resources that the viewer will need. |
void |
waitFor()
Block the reaper thread until we're ready. |
void |
writeModel(ProfileModelElement element)
Adds the supplied ProfileModelElement (containing the plugin's persistent state) to the profile (if not already present), and stores it. |
Methods inherited from class ccs.cpc.ViewerRuntime |
---|
cleanup, getTarget, kill, launch, setTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PluginCallback callback
protected Plugin plugin
Constructor Detail |
---|
public PluginRuntime()
launch()
time.
Method Detail |
---|
public final void setResources(PluginCallback callback, VFile target, Plugin plugin)
public final void pluginFinished()
public final void waitFor() throws java.lang.InterruptedException
waitFor
in class ViewerRuntime
java.lang.InterruptedException
public final Plugin getPlugin()
public final void writeModel(ProfileModelElement element)
public final ProfileModelElement readModel(java.lang.String classname, java.lang.String key)
classname
- The name of the class containing this viewer's model.
Must implement ProfileModelElement
.key
- An extra distinguisher which allows several instances of the same
class to be stored. This might be useful where several related viewers use
the same class to store their model data. If not used (the usual case),
must be the empty string.public final javax.swing.ImageIcon loadIcon(java.lang.String path)
path
- The path of the icon file within the CDB.
public static boolean isEditor()
public static Viewer.FileCap getFileness()
Viewer.WITH
.
public static java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |