/** * Returns all plug-ins and fragments in the workspace as well as all plug-ins and fragments that are * checked on the Target Platform preference page. * <p> * If a workspace plug-in/fragment has the same ID as a target plug-in/fragment, the target counterpart * is skipped and not included. * </p> * <p> * Equivalent to <code>getActiveModels(true)</code> * </p> * * @return all plug-ins and fragments in the workspace as well as all plug-ins and fragments that are * checked on the Target Platform preference page. */ public IPluginModelBase[] getActiveModels() { return getActiveModels(true); }
/** * Returns all plug-ins and fragments in the workspace as well as all plug-ins and fragments that are * checked on the Target Platform preference page. * <p> * If a workspace plug-in/fragment has the same ID as a target plug-in/fragment, the target counterpart * is skipped and not included. * </p> * <p> * Equivalent to <code>getActiveModels(true)</code> * </p> * * @return all plug-ins and fragments in the workspace as well as all plug-ins and fragments that are * checked on the Target Platform preference page. */ public IPluginModelBase[] getActiveModels() { return getActiveModels(true); }
/** * Returns all plug-ins and (possibly) fragments in the workspace as well as all plug-ins and (possibly) * fragments that are checked on the Target Platform preference page. * <p> * If a workspace plug-in/fragment has the same ID as a target plug-in, the target counterpart * is skipped and not included. * </p> * <p> * The returned result includes fragments only if <code>includeFragments</code> * is set to true * </p> * @param includeFragments a boolean indicating if fragments are desired in the returned * result * @return all plug-ins and (possibly) fragments in the workspace as well as all plug-ins and * (possibly) fragments that are checked on the Target Platform preference page. */ public static IPluginModelBase[] getActiveModels(boolean includeFragments) { return PDECore.getDefault().getModelManager().getActiveModels(includeFragments); }
/** * Returns all plug-ins and (possibly) fragments in the workspace as well as all plug-ins and (possibly) * fragments that are checked on the Target Platform preference page. * <p> * If a workspace plug-in/fragment has the same ID as a target plug-in, the target counterpart * is skipped and not included. * </p> * <p> * The returned result includes fragments only if <code>includeFragments</code> * is set to true * </p> * @param includeFragments a boolean indicating if fragments are desired in the returned * result * @return all plug-ins and (possibly) fragments in the workspace as well as all plug-ins and * (possibly) fragments that are checked on the Target Platform preference page. */ public static IPluginModelBase[] getActiveModels(boolean includeFragments) { return PDECore.getDefault().getModelManager().getActiveModels(includeFragments); }
IPluginModelBase[] models = manager.getActiveModels(true);