private static String[] readGlobalLoadingPluginNames() { IExtensionRegistry reg = Platform.getExtensionRegistry(); IExtensionPoint exPoint = reg.getExtensionPoint(ID, "globalPluginResourceLoad"); //$NON-NLS-1$ IExtension[] extensions = exPoint.getExtensions(); String[] names = new String[extensions.length]; if (extensions.length > 0) { for (int i = 0; i < extensions.length; i++) names[i] = extensions[i].getContributor().getName(); } return names; }
@Override public void handleException(Throwable exception) { IStatus status = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, "Unable to execute early startup code for the org.eclipse.ui.IStartup extension contributed by the '" //$NON-NLS-1$ + extension.getContributor().getName() + "' plug-in.", //$NON-NLS-1$ exception); WorkbenchPlugin.log(status); }
public EjbEmitter(IConfigurationElement emitterConfig) throws ClassNotFoundException, InstantiationException, IllegalAccessException, CoreException { this.emitterConfig = emitterConfig; String pluginDescriptor = emitterConfig.getDeclaringExtension().getContributor().getName(); org.osgi.framework.Bundle bundle = Platform.getBundle(pluginDescriptor); Class c = bundle.loadClass(emitterConfig.getAttribute(CLASSPATHPROVIDER)); classpathProvider = (IEmitterClasspathProvider) c.newInstance(); base = bundle.getEntry("/").toString(); IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(EJBEMITTERPROJECT); IProgressMonitor monitor = new NullProgressMonitor(); project.delete(true, true, monitor); }
private String getNamespace(IConfigurationElement configurationElement) { String namespace = null; if (configurationElement != null) { IExtension extension = configurationElement.getDeclaringExtension(); if (extension != null) { namespace = extension.getContributor().getName(); } } return namespace; }
/** * Logs the error in the desktop log using the provided * text and the information in the configuration element. */ protected void logError(IConfigurationElement element, String text) { IExtension extension = element.getDeclaringExtension(); System.err.println("Plugin " + extension.getContributor().getName() + ", extension " + extension.getExtensionPointUniqueIdentifier()); System.err.println(text); }
/** * Returns the plugin's ID. * * @return The plugin's ID */ private String getPluginID() { return config_element.getDeclaringExtension().getContributor().getName(); }
/** * Logs the error in the workbench log using the provided * text and the information in the configuration element. */ private void logError(IConfigurationElement element, String text) { IExtension extension = element.getDeclaringExtension(); StringBuilder buf = new StringBuilder(); buf.append("Plugin " + extension.getContributor().getName() + ", extension " + extension.getExtensionPointUniqueIdentifier()); //$NON-NLS-2$//$NON-NLS-1$ buf.append("\n" + text); //$NON-NLS-1$ IStatus status = new Status(IStatus.ERROR, ICheatSheetResource.CHEAT_SHEET_PLUGIN_ID, IStatus.OK, buf.toString(), null); CheatSheetPlugin.getPlugin().getLog().log(status); }
protected void logError(IConfigurationElement element, String text) { IExtension extension = element.getDeclaringExtension(); StringBuffer buf = new StringBuffer(); buf.append("Plugin " + extension.getContributor().getName() + ", extension " + extension.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$ //$NON-NLS-2$ buf.append("\n" + text); //$NON-NLS-1$ Logger.getLogger().logError(buf.toString()); }
private Bundle getBundle() { String namespace= fElement.getDeclaringExtension().getContributor().getName(); Bundle bundle= Platform.getBundle(namespace); return bundle; }
private Bundle getBundle() { String namespace= fElement.getDeclaringExtension().getContributor().getName(); Bundle bundle= Platform.getBundle(namespace); return bundle; } }
private Bundle getBundle() { String namespace= fElement.getDeclaringExtension().getContributor().getName(); Bundle bundle= Platform.getBundle(namespace); return bundle; }
private Bundle getBundle() { String namespace= fElement.getDeclaringExtension().getContributor().getName(); Bundle bundle= Platform.getBundle(namespace); return bundle; } }
private Bundle getBundle() { String namespace= fElement.getDeclaringExtension().getContributor().getName(); Bundle bundle= Platform.getBundle(namespace); return bundle; } }
private Bundle getBundle() { String namespace= fElement.getDeclaringExtension().getContributor().getName(); Bundle bundle= Platform.getBundle(namespace); return bundle; }
private String createBlameMessage() { Object[] args= { getName(), fElement.getDeclaringExtension().getContributor().getName() }; String disable= Messages.format( JavaTextMessages.CompletionProposalComputerDescriptor_blame_message, args); return disable; }
private String createBlameMessage() { Object[] args= { getName(), fElement.getDeclaringExtension().getContributor().getName() }; String disable= Messages.format( JavaTextMessages.CompletionProposalComputerDescriptor_blame_message, args); return disable; }
private void displayExtension(IExtension extention, CommandInterpreter ci, boolean full) { if (extention == null) return; if (full) { ci.print("Id: " + extention.getUniqueIdentifier()); //$NON-NLS-1$ ci.print(" PointId: " + extention.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$ ci.println(" [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } else { ci.println(extention.getUniqueIdentifier() + " [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } }
private void displayExtension(IExtension extention, CommandInterpreter ci, boolean full) { if (extention == null) return; if (full) { ci.print("Id: " + extention.getUniqueIdentifier()); //$NON-NLS-1$ ci.print(" PointId: " + extention.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$ ci.println(" [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } else { ci.println(extention.getUniqueIdentifier() + " [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } }
private void displayExtension(IExtension extention, CommandInterpreter ci, boolean full) { if (extention == null) return; if (full) { ci.print("Id: " + extention.getUniqueIdentifier()); //$NON-NLS-1$ ci.print(" PointId: " + extention.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$ ci.println(" [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } else { ci.println(extention.getUniqueIdentifier() + " [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } }
private void displayExtension(IExtension extention, CommandInterpreter ci, boolean full) { if (extention == null) return; if (full) { ci.print("Id: " + extention.getUniqueIdentifier()); //$NON-NLS-1$ ci.print(" PointId: " + extention.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$ ci.println(" [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } else { ci.println(extention.getUniqueIdentifier() + " [from " + extention.getContributor().getName() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } }