/** * Returns a model entry containing all workspace and target plug-ins by the given ID * * @param id the plug-in ID * * @return a model entry containing all workspace and target plug-ins by the given ID */ public ModelEntry findEntry(String id) { if ("system.bundle".equals(id)) //$NON-NLS-1$ id = getSystemBundleId(); return id == null ? null : (ModelEntry) getEntryTable().get(id); }
private boolean isEditable(TreeItem item) { Object obj = item.getData(); if (obj instanceof IPluginModelBase) { IPluginModelBase model = (IPluginModelBase) obj; String systemBundleId = PDECore.getDefault().getModelManager().getSystemBundleId(); if (!(systemBundleId.equals(model.getPluginBase().getId()))) { return fPluginTreeViewer.getChecked(model); } } return false; }