protected void handleDoubleClick(IStructuredSelection ssel) { super.handleDoubleClick(ssel); Object selected = ssel.getFirstElement(); if (selected instanceof SiteFeatureAdapter) { IFeature feature = findFeature(((SiteFeatureAdapter) selected).feature); FeatureEditor.openFeatureEditor(feature); } }
private void handleOpen(IStructuredSelection selection) { Object object = selection.getFirstElement(); if (object instanceof IProductPlugin) { ManifestEditor.openPluginEditor(((IProductPlugin) object).getId()); } }