private static IClasspathAttribute[] getClasspathAttributes(IPluginModelBase model) { JavadocLocationManager manager = PDECore.getDefault().getJavadocLocationManager(); String location = manager.getJavadocLocation(model); if (location == null) return new IClasspathAttribute[0]; return new IClasspathAttribute[] {JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, location)}; }
private static IClasspathAttribute[] getClasspathAttributes(IPluginModelBase model) { JavadocLocationManager manager = PDECore.getDefault().getJavadocLocationManager(); String location = manager.getJavadocLocation(model); if (location == null) return new IClasspathAttribute[0]; return new IClasspathAttribute[] {JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, location)}; }
private static IClasspathAttribute[] getClasspathAttributes(IProject project, IPluginModelBase model) { IClasspathAttribute[] attributes = new IClasspathAttribute[0]; if (!RepositoryProvider.isShared(project)) { JavadocLocationManager manager = PDECore.getDefault().getJavadocLocationManager(); String javadoc = manager.getJavadocLocation(model); if (javadoc != null) { attributes = new IClasspathAttribute[] {JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, javadoc)}; } } return attributes; }
protected IStatus run(IProgressMonitor monitor) { EclipseHomeInitializer.resetEclipseHomeVariable(); PDECore.getDefault().getSourceLocationManager().reset(); PDECore.getDefault().getJavadocLocationManager().reset(); IPluginModelBase[] models = fState.getTargetModels(); removeDisabledBundles(models); PluginModelManager manager = PDECore.getDefault().getModelManager(); manager.getExternalModelManager().setModels(models); manager.resetState(fState); PDECore.getDefault().getFeatureModelManager().targetReloaded(); monitor.done(); return Status.OK_STATUS; }
*/ private void resetPlatform(IProgressMonitor monitor) { EclipseHomeInitializer.resetEclipseHomeVariable(); PDECore.getDefault().getSourceLocationManager().reset(); PDECore.getDefault().getJavadocLocationManager().reset(); PDECore.getDefault().getExtensionsRegistry().targetReloaded(); PDECore.getDefault().getModelManager().targetReloaded(monitor); // PluginModelManager should be reloaded first to reset isCancelled() flag PDECore.getDefault().getFeatureModelManager().targetReloaded(); } }