/** * Registers the plugin with the specified definition with the specified path. If a tree path is * absent, the plugin is associated with the tab itself. * * @param path Format is <tab name>\<tree node path> * @param def Plugin definition * @return The newly created plugin. * @throws Exception Unspecified exception. */ public ElementBase register(String path, PluginDefinition def) throws Exception { return register(path, def, null); }
shell.register("Test Harness\\" + plugin.getName(), plugin);
/** * Register a plugin by specifying a path and a url. * * @param path Format is <tab name>\<tree node path> * @param url Main url of plugin. * @return Container created for the plugin. * @throws Exception Unspecified exception. */ public ElementBase register(String path, String url) throws Exception { return register(path, url, null); }
/** * Registers the plugin with the specified id and path. If a tree path is absent, the plugin is * associated with the tab itself. * * @param path Format is <tab name>\<tree node path> * @param id Unique id of plugin * @param propertySource Optional source for retrieving property values. * @return Container created for the plugin. * @throws Exception Unspecified exception. */ public ElementBase registerFromId(String path, String id, IPropertyProvider propertySource) throws Exception { return register(path, pluginById(id), propertySource); }
/** * Register a plugin by specifying a path and a url. * * @param path Format is <tab name>\<tree node path> * @param url Main url of plugin. * @param propertySource Optional source for retrieving property values. * @return Container created for the plugin. * @throws Exception Unspecified exception. */ public ElementBase register(String path, String url, IPropertyProvider propertySource) throws Exception { PluginDefinition def = new PluginDefinition(); def.setUrl(url); return register(path, def, propertySource); }