public void logWarning(String warning, Throwable exception) { XMLCorePlugin.getDefault().getLog().log(new Status(IStatus.WARNING, XMLCorePlugin.getDefault().getBundle().getSymbolicName(), IStatus.WARNING, warning, exception)); } }
public void logError(String error, Throwable exception) { XMLCorePlugin.getDefault().getLog().log(new Status(IStatus.ERROR, XMLCorePlugin.getDefault().getBundle().getSymbolicName(), IStatus.ERROR, error, exception)); }
/** * read from plugin registry and parse it. */ protected void readRegistry() { IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry(); IExtensionPoint point = pluginRegistry.getExtensionPoint(XMLCorePlugin.getDefault().getBundle().getSymbolicName(), EXTENSION_POINT_ID); if (point != null) { IConfigurationElement[] elements = point.getConfigurationElements(); for (int i = 0; i < elements.length; i++) { readElement(elements[i]); } } }
/** * Load the customizer class. */ protected void loadCustomizer() { try { Class customizerClass = bundle.loadClass(classname); customizer = (IErrorMessageCustomizer)customizerClass.newInstance(); } catch(Exception e) { XMLCorePlugin.getDefault().getLog().log( new Status(IStatus.WARNING, XMLCorePlugin.getDefault().getBundle().getSymbolicName(), IStatus.OK, "The XML validator error customizer was unable to load class " + classname, e)); //$NON-NLS-1$ } }
public void initializeDefaultPreferences() { IEclipsePreferences node = new DefaultScope().getNode(XMLCorePlugin.getDefault().getBundle().getSymbolicName());