@SuppressWarnings("deprecation") public String getNamespace() { return extension.getNamespace(); }
private String getContributingPlugin(IConfigurationElement configurationElement) { Object parent = configurationElement; while (parent != null) { if (parent instanceof IExtension) { return ((IExtension) parent).getNamespace(); } parent = ((IConfigurationElement) parent).getParent(); } return null; }
private String getFactoryHash(IConfigurationElement factoryElement) { return factoryElement.getDeclaringExtension().getNamespace() + factoryElement.getAttribute(FACTORY_CLASS); }
/** * <p> * Returns the an id component used for Activity filtering. * </p> * * <p> * The Plugin ID is determined from the configuration element specified in * {@see #setInitializationData(IConfigurationElement, String, Object)}. * </p> * * @return Returns the plugin id associated with this wizard */ public final String getPluginId() { return (configurationElement != null) ? configurationElement.getDeclaringExtension().getNamespace() : ""; //$NON-NLS-1$ }
/** * Return the plugin id of the configuration element * * @return */ public String getPluginId() { String pluginId = null; if (element != null) { IExtension extension = element.getDeclaringExtension(); if (extension != null) { pluginId = extension.getNamespace(); // TODO jsholl is this correct??? } } return pluginId; }
private void setupWizardPluginIDMap() { wizardPluginIDMap = new HashMap(); // get editor plugin and save it to a hash map // Note: editors extension id is different from editor id IExtensionPoint[] point = new IExtensionPoint[]{Platform.getExtensionRegistry().getExtensionPoint(ORG_ECLIPSE_UI, "exportWizards"), //$NON-NLS-1$ Platform.getExtensionRegistry().getExtensionPoint(ORG_ECLIPSE_UI, "importWizards"), //$NON-NLS-1$ Platform.getExtensionRegistry().getExtensionPoint(ORG_ECLIPSE_UI, "newWizards"), //$NON-NLS-1$ Platform.getExtensionRegistry().getExtensionPoint("org.eclipse.wst.common.frameworks.ui", "extendableWizard")}; //$NON-NLS-1$ //$NON-NLS-2$ for (int x = 0; x < point.length; x++) { IConfigurationElement[] elements = point[x].getConfigurationElements(); for (int i = 0; i < elements.length; i++) { String wizardID = elements[i].getAttribute("id"); //$NON-NLS-1$ String pluginID = elements[i].getDeclaringExtension().getNamespace(); wizardPluginIDMap.put(wizardID, pluginID); } } }
/** * Logs the error in the workbench log using the provided * text and the information in the configuration element. */ protected void logError(IConfigurationElement element, String text) { IExtension extension = element.getDeclaringExtension(); String pluginId = extension.getNamespace(); StringBuffer buf = new StringBuffer(); buf.append("Plugin " + pluginId + ", extension " //$NON-NLS-2$//$NON-NLS-1$ + extension.getExtensionPointUniqueIdentifier()); buf.append("\n" + text);//$NON-NLS-1$ IDEWorkbenchPlugin.log(buf.toString()); }
public static void logError(IConfigurationElement element, String text) { IExtension extension = element.getDeclaringExtension(); StringBuffer buf = new StringBuffer(); buf.append("Plugin " + extension.getNamespace() + ", extension " + extension.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$ //$NON-NLS-2$ buf.append("\n" + text); //$NON-NLS-1$ Logger.getLogger().logError(buf.toString()); } }
public static void logError(IConfigurationElement element, String text) { IExtension extension = element.getDeclaringExtension(); StringBuffer buf = new StringBuffer(); buf.append("Plugin " + extension.getNamespace() + ", extension " + extension.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$ //$NON-NLS-2$ buf.append("\n" + text); //$NON-NLS-1$ Logger.getLogger().logError(buf.toString()); }
for (int j = 0; j < elements.length; j++) { IConfigurationElement element = elements[j]; final String pluginId = extension.getNamespace(); if (element.getName().equals(TeamPlugin.REPOSITORY_EXTENSION)) { final String id = element.getAttribute("id"); //$NON-NLS-1$
for (int j = 0; j < elements.length; j++) { IConfigurationElement element = elements[j]; final String pluginId = extension.getNamespace(); if (element.getName().equals(TeamPlugin.REPOSITORY_EXTENSION)) { final String id = element.getAttribute("id"); //$NON-NLS-1$
/** * Convenience method to get an image descriptor for an extension * * @param extension the extension declaring the image * @param subdirectoryAndFilename the path to the image * @return the image */ public static ImageDescriptor getImageDescriptorFromExtension(IExtension extension, String subdirectoryAndFilename) { URL fullPathString = Platform.find(Platform.getBundle(extension.getNamespace()), new Path(subdirectoryAndFilename)); return ImageDescriptor.createFromURL(fullPathString); } /*
public DMWizardPageElement(IConfigurationElement element1) { super(element1); pluginID = element1.getDeclaringExtension().getNamespace(); wizardID = element1.getAttribute(ATT_WIZARD_ID); pageGroupID = element1.getAttribute(ATT_PAGE_ID); requiresDataOperationId = element1.getAttribute(ATT_REQUIRES_DATA_OPERATION_ID); dataModelIDs = getDataModelIds( element1 ); readAllowsExtendedPageAfter(element1); pageInsertionID = element1.getAttribute(ATT_PAGE_INSERTION_ID); readFactory(element1); validateSettings(); loadOrder = loadOrderCounter++; }
public String getHandlerID() { if (fID == null) { fID = getProperty("id"); //$NON-NLS-1$ if (fID == null) { if (isCustom()) { fID = getProperty("class"); //$NON-NLS-1$ } else { StringBuffer buf = new StringBuffer(); buf.append(fElement.getDeclaringExtension().getNamespace()); buf.append('.'); buf.append(getProperty("elementname")); //$NON-NLS-1$ fID = buf.toString(); } } } return fID; }
private void setUpExtension(String id, String preOp, String postOp) { opID = id; preOperationClass = preOp; postOperationClass = postOp; this.extensionId = baseElement.getDeclaringExtension().getUniqueIdentifier(); if (this.extensionId == null) this.extensionId = baseElement.getDeclaringExtension().getNamespace(); }
public void init(IWorkbench workbench, IStructuredSelection currentSelection) { if (exampleConfigElement != null) { String banner = exampleConfigElement.getAttribute("banner"); //$NON-NLS-1$ if (banner != null) { URL imageURL = Platform.find(Platform.getBundle(exampleConfigElement.getDeclaringExtension().getNamespace()), new Path(banner)); ImageDescriptor desc = ImageDescriptor.createFromURL(imageURL); setDefaultPageImageDescriptor(desc); } } }
public AdapterFactoryDescriptor(IConfigurationElement element) { super(element); packageURI = element.getAttribute(AdapterFactoryRegistry.PACKAGE_URI); id = element.getAttribute(AdapterFactoryRegistry.ID); Assert.isNotNull(packageURI, EMFWorkbenchEditResourceHandler.AdapterFactoryDescriptor_ERROR_0); Assert.isNotNull(id, EMFWorkbenchEditResourceHandler.getString(EMFWorkbenchEditResourceHandler.AdapterFactoryDescriptor_ERROR_1, new Object[]{element.getDeclaringExtension().getNamespace()})); readViewIDs(); this.loadOrder = loadOrderCounter++; }
element .getDeclaringExtension() .getNamespace() }), null); } else {
protected void readElement(IConfigurationElement element) { try { declaringExtensionId = element.getDeclaringExtension().getNamespace(); } catch (InvalidRegistryObjectException e) { Logger.logException(e); } if (TAG_CONTRIBUTION.equals(element.getName())){ IConfigurationElement[] mappingInfoElementList = element.getChildren(OASISCatalogConstants.TAG_PUBLIC); processMappingInfoElements(mappingInfoElementList); mappingInfoElementList = element.getChildren(OASISCatalogConstants.TAG_SYSTEM); processMappingInfoElements(mappingInfoElementList); mappingInfoElementList = element.getChildren(OASISCatalogConstants.TAG_URI); processMappingInfoElements(mappingInfoElementList); IConfigurationElement[] nextCatalogElementList = element.getChildren(OASISCatalogConstants.TAG_NEXT_CATALOG); processNextCatalogElements(nextCatalogElementList); } }
String pluginId = extension.getNamespace(); ValidatorMetaData vmd = initializeValidator(element, label, pluginId);