1 11 12 package org.eclipse.ui.views.markers.internal; 13 14 import org.eclipse.jface.action.Action; 15 import org.eclipse.ui.IWorkbenchPart; 16 import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; 17 18 22 public class ActionAddGlobalTask extends Action { 23 24 private static final String ENABLED_IMAGE_PATH = "elcl16/addtsk_tsk.gif"; 26 private IWorkbenchPart part; 27 28 32 public ActionAddGlobalTask(IWorkbenchPart part) { 33 setText(MarkerMessages.addGlobalTaskAction_title); 34 setImageDescriptor(IDEWorkbenchPlugin.getIDEImageDescriptor(ENABLED_IMAGE_PATH)); 35 setToolTipText(MarkerMessages.addGlobalTaskAction_tooltip); 36 this.part = part; 37 } 38 39 public void run() { 40 DialogTaskProperties dialog = new DialogTaskProperties(part.getSite() 41 .getShell(), MarkerMessages.addGlobalTaskDialog_title); 42 dialog.open(); 43 } 44 } 45 | Popular Tags |