| org.gjt.sp.jedit.EBComponent
All known Subclasses: org.gjt.sp.jedit.SettingsReloader, org.gjt.sp.jedit.gui.RegisterViewer, org.gjt.sp.jedit.search.SearchDialog, org.gjt.sp.jedit.browser.VFSBrowser, org.gjt.sp.jedit.help.HelpViewer, jars.QuickNotepad.QuickNotepad, org.gjt.sp.jedit.gui.LogViewer, org.gjt.sp.jedit.pluginmgr.InstallPanel, org.gjt.sp.jedit.gui.DockableWindowManager, org.gjt.sp.jedit.pluginmgr.PluginManager, org.gjt.sp.jedit.View, org.gjt.sp.jedit.gui.MarkerViewer, org.gjt.sp.jedit.EditPane, org.gjt.sp.jedit.EBPlugin, org.gjt.sp.jedit.search.HyperSearchResults,
EBComponent | public interface EBComponent (Code) | | A component on the EditBus. Every plugin class that uses the EditBus for
receiving messages must implement this interface.
See Also: org.gjt.sp.jedit.EBMessage author: Slava Pestov author: John Gellene (API documentation) version: $Id: EBComponent.java 10799 2007-10-04 09:08:34Z kpouer $ since: jEdit 2.2pre6 |
Method Summary | |
void | handleMessage(EBMessage message) Handles a message sent on the EditBus.
This method must specify the type of responses the plugin will have
for various subclasses of the
EBMessage class. |
handleMessage | void handleMessage(EBMessage message)(Code) | | Handles a message sent on the EditBus.
This method must specify the type of responses the plugin will have
for various subclasses of the
EBMessage class. Typically
this is done with one or more if blocks that test
whether the message is an instance of a derived message class in
which the component has an interest. For example:
if(msg instanceof BufferUpdate) {
// a buffer's state has changed!
}
else if(msg instanceof ViewUpdate) {
// a view's state has changed!
}
// ... and so on
Parameters: message - The message |
|
|