@Override protected void updateModel(IProgressMonitor monitor) throws CoreException { IPluginBase plugin = model.getPluginBase(); IPluginExtension extension = createExtension(EXTENSION_POINT, true); IPluginModelFactory factory = model.getPluginFactory(); IPluginElement setElement = factory.createElement(extension); setElement.setName("plotting_tool_page"); setElement.setAttribute( "class", getStringOption(KEY_PACKAGE_NAME) + "." + getStringOption(KEY_CLASS_NAME)); setElement.setAttribute("id", getStringOption(KEY_EXTENSION_ID)); setElement.setAttribute("icon", "icons/default.gif"); setElement.setAttribute("tooltip", getStringOption(KEY_TOOLTIP)); setElement.setAttribute("label", getStringOption(KEY_EXTENSION_NAME)); setElement.setAttribute("cheat_sheet_id", getStringOption(KEY_CHEAT_SHEET_ID)); setElement.setAttribute("visible", "true"); setElement.setAttribute("category", getStringOption(KEY_CATEGORY)); extension.add(setElement); if (!extension.isInTheModel()) { plugin.add(extension); } }