public static URL getSchemaFromSourceExtension(IPluginBase plugin, IPath path) { SourceLocationManager mgr = PDECore.getDefault().getSourceLocationManager(); File file = mgr.findSourceFile(plugin, path); try { if (file != null && file.exists() && file.isFile()) return file.toURL(); } catch (MalformedURLException e) { } return null; }
public static URL getSchemaFromSourceExtension(IPluginBase plugin, IPath path) { SourceLocationManager mgr = PDECore.getDefault().getSourceLocationManager(); return mgr.findSourceFile(plugin, path); }
public static IPath getSourceAnnotation(IPluginModelBase model, String libraryName) throws CoreException { String zipName = getSourceZipName(libraryName); IPath path = getPath(model, zipName); if (path == null) { SourceLocationManager manager = PDECore.getDefault().getSourceLocationManager(); path = manager.findSourcePath(model.getPluginBase(), new Path(zipName)); } return path; }
public static IPath getSourceAnnotation(IPluginModelBase model, String libraryName) { String newlibraryName = TargetWeaver.getWeavedSourceLibraryName(model, libraryName); String zipName = getSourceZipName(newlibraryName); IPath path = getPath(model, zipName); if (path == null) { SourceLocationManager manager = PDECore.getDefault().getSourceLocationManager(); path = manager.findSourcePath(model.getPluginBase(), new Path(zipName)); } return path; }
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; }
SourceLocationManager manager = PDECore.getDefault().getSourceLocationManager();
*/ 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(); } }