| java.lang.Object net.xoetrope.builder.editor.plugin.XPluginManager
XPluginManager | public class XPluginManager implements ComponentSelectListener(Code) | | A class to manage XEditorPlugins.
Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 1.18 $
License: see License.txt
|
getNumPlugins | public int getNumPlugins()(Code) | | Get the number of registered plugins
|
getPlugin | public XEditorPlugin getPlugin(int i)(Code) | | Get the i-th plugin
Parameters: i - the plugin registration id |
getPlugin | public XEditorPlugin getPlugin(String pluginName)(Code) | | Get the named plugin if it is loaded
Parameters: pluginName - the name of the plugin to find the plugin or null if it is not found |
getPluginContextMenu | public void getPluginContextMenu(MouseEvent evt, JPopupMenu popupMenu)(Code) | | Get the popup context menu for the selected components
Parameters: evt - the initiating mouse event |
getPluginMenus | public Vector getPluginMenus()(Code) | | Get a list of items to add to the plugins menu
a Vector of JMenuItems and/or plugin names. |
hasPlugin | public boolean hasPlugin(String pluginName)(Code) | | Check if the named plugin is loaded
Parameters: pluginName - the name of the plugin to find true if the plugin is loaded otherwise false |
processPluginCommand | public void processPluginCommand(int command, AWTEvent evt, boolean selected)(Code) | | Process a menu commands for a plugin
Parameters: command - the command id Parameters: evt - the original event Parameters: selected - the selected state of the toolbar or menu item or false if no state exists |
removePlugin | public void removePlugin(XEditorPlugin plugin)(Code) | | Remove a plugin
Parameters: plugin - |
savePlugins | protected void savePlugins()(Code) | | |
setSelectedComponents | public void setSelectedComponents(Vector selection)(Code) | | Set the component selection for the plugins
Parameters: selection - the list of components |
shutDown | public void shutDown()(Code) | | Notify the plugins of a shutdown
|
|
|