1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  package sk.uniba.euromath.editor.xmlEditor.actions;
13  
14  import org.eclipse.gef.ui.actions.WorkbenchPartAction;
15  import org.eclipse.ui.IWorkbenchPart;
16  
17  import sk.uniba.euromath.editor.actions.IMultiViewAction;
18  import sk.uniba.euromath.editor.xmlEditor.actions.lang.Messages;
19  
20  /***
21   * An empty action.
22   * @author Tomáš Studva
23   *         6.7.2005
24   */
25  public class EmptyAction extends WorkbenchPartAction implements IMultiViewAction {
26  
27      /***
28       * Id.
29       */
30      public static final String id = EmptyAction.class.toString();
31      
32      /***
33       * Constructor.
34       * @param part associated workbench part
35       */
36      public EmptyAction(IWorkbenchPart part) {
37          super(part);
38          setId(id);
39          setText(Messages.getString("EmptyAction.Text")); 
40      }
41      
42      @Override
43      public void setWorkbenchPart(IWorkbenchPart part) {
44          super.setWorkbenchPart(part);
45      }
46  
47      @Override
48      protected boolean calculateEnabled() {
49          return false;
50      }
51  }