1 11 12 package org.eclipse.ui.views.markers.internal; 13 14 import org.eclipse.jface.viewers.ISelectionProvider; 15 import org.eclipse.jface.viewers.IStructuredSelection; 16 import org.eclipse.ui.IWorkbenchPart; 17 18 22 public class ActionTaskProperties extends MarkerSelectionProviderAction { 23 24 private IWorkbenchPart part; 25 26 32 public ActionTaskProperties(IWorkbenchPart part, ISelectionProvider provider) { 33 super(provider, MarkerMessages.propertiesAction_title); 34 setEnabled(false); 35 this.part = part; 36 } 37 38 43 public void run() { 44 45 DialogMarkerProperties dialog = new DialogTaskProperties(part.getSite() 46 .getShell()); 47 dialog.setMarker(getSelectedMarker()); 48 dialog.open(); 49 } 50 51 56 public void selectionChanged(IStructuredSelection selection) { 57 setEnabled(Util.isSingleConcreteSelection(selection)); 58 } 59 } 60 | Popular Tags |