/** * Locates a loaded plugin with the specified id. * * @param id Id of plugin to locate. * @param forceInit If true the plugin will be initialized if not already so. * @return A reference to the loaded and fully initialized plugin, or null if not found. */ public ElementPlugin getLoadedPlugin(String id, boolean forceInit) { ElementPlugin plugin = getLoadedPlugin(id); if (plugin != null && forceInit) { plugin.load(); } return plugin; }
testNode(0, ElementTreePane.class); testProperty("label", "Pane 2"); ElementPlugin plugin1 = shell.getLoadedPlugin("testplugin1"); assertNotNull(plugin1); assertEquals(hasTrigger ? 1 : 0, plugin1.getTriggers().size());