|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.ui.app.AbstractPlugin
org.fife.ui.app.GUIPlugin
org.fife.rtext.plugins.sourcebrowser.SourceBrowserPlugin
A panel that uses Exuberant CTags (installed separately from RText) to keep a list of all variables, functions, classes, methods, etc. defined in the currently-opened source file. Clicking on an item in the Source Browser moves the cursor to that item's position in the source file; also, right- clicking on an item displays a popup menu.
| Field Summary | |
static java.lang.String |
CTAGS_TYPE_EXUBERANT
|
static java.lang.String |
CTAGS_TYPE_STANDARD
|
static java.lang.String |
CUSTOM_HANDLER_PREFIX
|
| 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 | |
SourceBrowserPlugin(AbstractPluggableGUIApplication app)
Creates a new SourceBrowserPlugin. |
|
| Method Summary | |
void |
currentTextAreaPropertyChanged(CurrentTextAreaEvent e)
Called whenever the currently-active document in RText changes, or one of its properties changes. |
protected void |
ensureSourceTreeSortedProperly()
Ensures that a source tree is sorted or not sorted, to match the sorting button's current state. |
java.lang.String |
getCTagsExecutableLocation()
Returns the path used to run the ctags executable. |
java.lang.String |
getCTagsType()
Returns a string representation of the type of Ctags specified by the user. |
protected java.lang.String |
getHTMLForLine(int line)
Returns HTML (to use in tool tips) representing the specified line in the current text area. |
PluginOptionsDialogPanel |
getOptionsDialogPanel()
Returns the options panel for this source browser. |
java.lang.String |
getPluginAuthor()
Returns the author of the plugin. |
javax.swing.Icon |
getPluginIcon()
Returns the icon for this plugin. |
java.lang.String |
getPluginName()
Returns the name of this GUIPlugin. |
java.lang.String |
getPluginVersion()
Returns the plugin version. |
boolean |
getUseHTMLToolTips()
Return whether HTML tooltips are being used by the source browser. |
void |
install(AbstractPluggableGUIApplication app)
Called just after a plugin is added to a GUI application. |
void |
refresh()
Refreshes the tag list for the current document. |
void |
savePreferences()
Called when the GUI application is shutting down. When this method is called, the Plugin should save any preferences. |
void |
setCTagsExecutableLocation(java.lang.String location)
Sets the path used to run the ctags executable. |
void |
setCTagsType(java.lang.String type)
Sets the type of Ctags specified by the user. |
void |
setUseHTMLToolTips(boolean use)
Sets whether HTML tooltips are used in this source browser. |
boolean |
uninstall()
Called just before this Plugin is removed from an
RText instance. |
void |
updateUI()
This method is overridden so that the embedded tree and its right- click popup menu are updated. |
| Methods inherited from class org.fife.ui.app.GUIPlugin |
dockableWindowIterator, getDockableWindow, 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 CTAGS_TYPE_EXUBERANT
public static final java.lang.String CTAGS_TYPE_STANDARD
public static final java.lang.String CUSTOM_HANDLER_PREFIX
| Constructor Detail |
public SourceBrowserPlugin(AbstractPluggableGUIApplication app)
SourceBrowserPlugin.
app - The RText instance.| Method Detail |
public void currentTextAreaPropertyChanged(CurrentTextAreaEvent e)
currentTextAreaPropertyChanged in interface CurrentTextAreaListenere - The event.protected void ensureSourceTreeSortedProperly()
public java.lang.String getCTagsExecutableLocation()
setCTagsExecutableLocation(java.lang.String)public java.lang.String getCTagsType()
setCTagsType(String),
CTAGS_TYPE_EXUBERANT,
CTAGS_TYPE_STANDARDprotected java.lang.String getHTMLForLine(int line)
line - The line.
public PluginOptionsDialogPanel getOptionsDialogPanel()
getOptionsDialogPanel in interface Pluginpublic java.lang.String getPluginAuthor()
getPluginAuthor in interface Pluginpublic javax.swing.Icon getPluginIcon()
getPluginIcon in interface Pluginpublic java.lang.String getPluginName()
GUIPlugin.
getPluginName in interface Pluginpublic java.lang.String getPluginVersion()
getPluginVersion in interface Pluginpublic boolean getUseHTMLToolTips()
setUseHTMLToolTips(boolean)public void install(AbstractPluggableGUIApplication app)
This method adds a listener to RText's main view so that we are notified when the current document changes (so we can update the displayed ctags).
install in interface Pluginapp - The application to which this plugin was just added.uninstall()public void refresh()
public void savePreferences()
Plugin should save any preferences.
savePreferences in interface Pluginpublic void setCTagsExecutableLocation(java.lang.String location)
location - The path to use.getCTagsExecutableLocation()public void setCTagsType(java.lang.String type)
type - The type of Ctags specified. If this is null
or invalid, CTAGS_TYPE_EXUBERANT is
used.getCTagsType(),
CTAGS_TYPE_EXUBERANT,
CTAGS_TYPE_STANDARDpublic void setUseHTMLToolTips(boolean use)
use - Whether or not to use HTML tooltips.getUseHTMLToolTips()public boolean uninstall()
Plugin is removed from an
RText instance. Here we uninstall any listeners we registered.
uninstall in interface PluginPlugin.install(org.fife.ui.app.AbstractPluggableGUIApplication)public void updateUI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||