1 11 package org.eclipse.pde.core.plugin; 12 13 import org.eclipse.core.resources.IProject; 14 import org.eclipse.osgi.service.resolver.BundleDescription; 15 import org.eclipse.pde.internal.core.PDECore; 16 17 27 public class PluginRegistry { 28 29 36 public static ModelEntry findEntry(String id) { 37 return PDECore.getDefault().getModelManager().findEntry(id); 38 } 39 40 60 public static IPluginModelBase findModel(String id) { 61 return PDECore.getDefault().getModelManager().findModel(id); 62 } 63 64 73 public static IPluginModelBase findModel(IProject project) { 74 return PDECore.getDefault().getModelManager().findModel(project); 75 } 76 77 85 public static IPluginModelBase findModel(BundleDescription desc) { 86 return PDECore.getDefault().getModelManager().findModel(desc); 87 } 88 89 103 public static IPluginModelBase[] getActiveModels() { 104 return getActiveModels(true); 105 } 106 107 123 public static IPluginModelBase[] getActiveModels(boolean includeFragments) { 124 return PDECore.getDefault().getModelManager().getActiveModels(includeFragments); 125 } 126 127 141 public static IPluginModelBase[] getAllModels() { 142 return getAllModels(true); 143 } 144 145 163 public static IPluginModelBase[] getAllModels(boolean includeFragments) { 164 return PDECore.getDefault().getModelManager().getAllModels(includeFragments); 165 } 166 167 172 public static IPluginModelBase[] getWorkspaceModels() { 173 return PDECore.getDefault().getModelManager().getWorkspaceModels(); 174 } 175 176 181 public static IPluginModelBase[] getExternalModels() { 182 return PDECore.getDefault().getModelManager().getExternalModels(); 183 } 184 185 } 186 | Popular Tags |