/** * Returns the state containing bundle descriptions for workspace plug-ins and target plug-ins * that form the current PDE state * @return */ public PDEState getState() { initializeTable(); return fState; }
/** * Return the model manager that keeps track of plug-ins in the target platform * * @return the model manager that keeps track of plug-ins in the target platform */ public ExternalModelManager getExternalModelManager() { initializeTable(); return fExternalManager; }
/** * Clears all existing models and recreates them */ public void targetReloaded(IProgressMonitor monitor) { fEntries = null; initializeTable(monitor); }
/** * Allow access to the table only through this getter. * It always calls initialize to make sure the table is initialized. * If more than one thread tries to read the table at the same time, * and the table is not initialized yet, thread2 would wait. * This way there are no partial reads. */ private Map<String, LocalModelEntry> getEntryTable() { initializeTable(null); return fEntries; }
/** * Return the model manager that keeps track of plug-ins in the target platform * * @return the model manager that keeps track of plug-ins in the target platform */ public ExternalModelManager getExternalModelManager() { initializeTable(null); return fExternalManager; }
/** * Allow access to the table only through this getter. * It always calls initialize to make sure the table is initialized. * If more than one thread tries to read the table at the same time, * and the table is not initialized yet, thread2 would wait. * This way there are no partial reads. */ private Map getEntryTable() { initializeTable(); return fEntries; }
/** * Returns the state containing bundle descriptions for workspace plug-ins and target plug-ins * that form the current PDE state */ public PDEState getState() { initializeTable(null); return fState; }
/** * Returns all plug-in models in the target platform * * @return all plug-ins in the target platform */ public IPluginModelBase[] getExternalModels() { initializeTable(); return fExternalManager.getAllModels(); }
/** * Returns all plug-in models in the workspace * * @return all plug-in models in the workspace */ public IPluginModelBase[] getWorkspaceModels() { initializeTable(null); return fWorkspaceManager.getPluginModels(); }
/** * Returns all plug-in models in the workspace * * @return all plug-in models in the workspace */ public IPluginModelBase[] getWorkspaceModels() { initializeTable(); return fWorkspaceManager.getPluginModels(); }
/** * Returns all plug-in models in the target platform * * @return all plug-ins in the target platform */ public IPluginModelBase[] getExternalModels() { initializeTable(null); return fExternalManager.getAllModels(); }
/** * Returns the plug-in model corresponding to the given project, or <code>null</code> * if the project does not represent a plug-in project or if it contains a manifest file * that is malformed or missing vital information. * * @param project the project * @return a plug-in model corresponding to the project or <code>null</code> if the project * is not a plug-in project */ public IPluginModelBase findModel(IProject project) { initializeTable(); return fWorkspaceManager.getPluginModel(project); }
/** * Returns the plug-in model corresponding to the given project, or <code>null</code> * if the project does not represent a plug-in project or if it contains a manifest file * that is malformed or missing vital information. * * @param project the project * @return a plug-in model corresponding to the project or <code>null</code> if the project * is not a plug-in project */ public IPluginModelBase findModel(IProject project) { initializeTable(null); return fWorkspaceManager.getPluginModel(project); }