/** * 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(); StringBuffer buf = new StringBuffer(); buf.append( "Plugin " + extension.getNamespace() + ", extension " + extension.getExtensionPointUniqueIdentifier()); // $NON-NLS-2$//$NON-NLS-1$ buf.append("\n" + text); // $NON-NLS-1$ Logger.log(Logger.ERROR, buf.toString()); }
private void extensionsToString(IExtension[] extensions) { extensionIDs = new ArrayList(extensions.length); for (int i = 0; i < extensions.length; i++) { IExtension extension = extensions[i]; extensionIDs.add(extension.getUniqueIdentifier()); // test navigation: to extension point String ownerId = extension.getExtensionPointUniqueIdentifier(); if (extPointId != null) assertTrue(extPointId.equals(ownerId)); // test navigation: all children assertTrue(validContents(extension.getConfigurationElements())); } }