|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.ui.app.AbstractPlugin org.fife.ui.app.GUIPlugin org.fife.rtext.plugins.project.ProjectPlugin
public class ProjectPlugin
A plugin that adds a very simple "project" system into RText.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_INITIAL_WORKSPACE
System property that, if defined, overrides the workspace initially opened by this property. |
Fields inherited from interface org.fife.ui.app.GUIApplicationConstants |
---|
OS_LINUX, OS_MAC_OSX, OS_OTHER, OS_WINDOWS |
Fields inherited from interface org.fife.ui.dockablewindows.DockableWindowConstants |
---|
BOTTOM, FLOATING, LEFT, RIGHT, TOP |
Constructor Summary | |
---|---|
ProjectPlugin(AbstractPluggableGUIApplication app)
|
Method Summary | |
---|---|
org.fife.rtext.plugins.project.ProjectWindow |
getDockableWindow()
Returns the dockable window for this plugin. |
PluginOptionsDialogPanel |
getOptionsDialogPanel()
Returns an options panel for use in an Options dialog. |
java.lang.String |
getPluginAuthor()
Returns the author of the plugin. |
javax.swing.Icon |
getPluginIcon()
Returns the icon to display beside the name of this plugin in the application's interface. |
java.lang.String |
getPluginName()
Returns the name of the plugin. |
java.lang.String |
getPluginVersion()
Returns the version of the plugin. |
RText |
getRText()
Returns the parent RText instance. |
WorkspaceTree |
getTree()
Returns the tree view of the active workspace. |
Workspace |
getWorkspace()
Returns the active workspace. |
java.io.File |
getWorkspacesDir()
Returns the directory that workspaces are saved to. |
void |
insertTreeNodeInto(javax.swing.tree.MutableTreeNode child,
javax.swing.tree.MutableTreeNode parent)
Adds a new child to the parent tree node. |
void |
insertTreeNodeInto(javax.swing.tree.MutableTreeNode child,
javax.swing.tree.MutableTreeNode parent,
int index)
Adds a new child to the parent tree node. |
void |
install(AbstractPluggableGUIApplication app)
Called just after a plugin is added to a GUI application. |
void |
moveTreeNodeDown(AbstractWorkspaceTreeNode node)
Moves a tree node down in its parent's list of children, if possible. |
void |
moveTreeNodeUp(AbstractWorkspaceTreeNode node)
Moves a tree node up in its parent's list of children, if possible. |
void |
refreshTree(javax.swing.tree.TreeNode fromNode)
Refreshes the workspace tree from the specified node down. |
void |
refreshWorkspaceName()
Refreshes the workspace name displayed in the dockable window. |
void |
savePreferences()
Called when the GUI application is shutting down. |
boolean |
uninstall()
Called just before this Plugin is removed from an
GUIApplication . |
Methods inherited from class org.fife.ui.app.GUIPlugin |
---|
dockableWindowIterator, getDockableWindow, lookAndFeelChanged, putDockableWindow |
Methods inherited from class org.fife.ui.app.AbstractPlugin |
---|
getOptionsDialogPanelParentPanelID, setOptionsDialogPanelParentPanelID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_INITIAL_WORKSPACE
Constructor Detail |
---|
public ProjectPlugin(AbstractPluggableGUIApplication app)
Method Detail |
---|
public org.fife.rtext.plugins.project.ProjectWindow getDockableWindow()
public PluginOptionsDialogPanel getOptionsDialogPanel()
public java.lang.String getPluginAuthor()
public javax.swing.Icon getPluginIcon()
null
to represent no icon.public java.lang.String getPluginName()
public java.lang.String getPluginVersion()
public RText getRText()
public WorkspaceTree getTree()
public java.io.File getWorkspacesDir()
public Workspace getWorkspace()
null
if none.public void insertTreeNodeInto(javax.swing.tree.MutableTreeNode child, javax.swing.tree.MutableTreeNode parent)
child
- The new child node.parent
- The parent node.insertTreeNodeInto(MutableTreeNode, MutableTreeNode, int)
public void insertTreeNodeInto(javax.swing.tree.MutableTreeNode child, javax.swing.tree.MutableTreeNode parent, int index)
child
- The new child node.parent
- The parent node.index
- The index at which to insert the child node.insertTreeNodeInto(MutableTreeNode, MutableTreeNode)
public void install(AbstractPluggableGUIApplication app)
Plugin
GUIPlugin
, it has already been added visually. Plugins
should use this method to register any listeners to the GUI application
and do any other necessary setup.
app
- The application to which this plugin was just added.Plugin.uninstall()
public void moveTreeNodeDown(AbstractWorkspaceTreeNode node)
node
- The node to move down.moveTreeNodeUp(AbstractWorkspaceTreeNode)
public void moveTreeNodeUp(AbstractWorkspaceTreeNode node)
node
- The node to move up.moveTreeNodeDown(AbstractWorkspaceTreeNode)
public void refreshWorkspaceName()
public void refreshTree(javax.swing.tree.TreeNode fromNode)
fromNode
- The node to start the refreshing from.public void savePreferences()
Plugin
Plugin
should save any preferences.
public boolean uninstall()
Plugin
Plugin
is removed from an
GUIApplication
. This gives the plugin a chance to clean
up any loose ends (kill any threads, close any files, remove listeners,
etc.).
Plugin.install(org.fife.ui.app.AbstractPluggableGUIApplication)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |