1 27 28 package org.nightlabs.editor2d.actions.viewer; 29 30 import org.nightlabs.editor2d.AbstractEditor; 31 import org.nightlabs.editor2d.actions.AbstractEditorAction; 32 import org.nightlabs.editor2d.viewer.TestDialog; 33 34 public class ViewerAction 35 extends AbstractEditorAction 36 { 37 public static String ID = ViewerAction.class.getName(); 38 39 public ViewerAction(AbstractEditor editor) { 40 super(editor); 41 } 42 43 protected void init() { 44 setId(ID); 45 setText("Show Viewer"); 46 } 47 48 protected boolean calculateEnabled() { 49 return true; 50 } 51 52 public void run() 53 { 54 TestDialog dialog = new TestDialog(getShell(), getMultiLayerDrawComponent()); 55 dialog.open(); 56 } 57 58 } 59 | Popular Tags |