Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IAction.run()


      ActionRegistry actionRegistry = (ActionRegistry) editor
          .getAdapter(ActionRegistry.class);
      IAction action = actionRegistry
          .getAction(EditPropertiesAction.EDITPROPERTIES);
      if (action != null && action.isEnabled()) {
        action.run();
      }
    }
  }

  /*
 
View Full Code Here


    else if (request.getType().equals(RequestConstants.REQ_OPEN)) {
      IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
      ActionRegistry actionRegistry = (ActionRegistry) editor.getAdapter(ActionRegistry.class);
      IAction action = actionRegistry.getAction(EditPropertiesAction.EDITPROPERTIES);
      if (action != null && action.isEnabled()) {
        action.run();
      }
    }
  }

  /**
 
View Full Code Here

      ActionRegistry actionRegistry = (ActionRegistry) editor
          .getAdapter(ActionRegistry.class);
      IAction action = actionRegistry
          .getAction(EditPropertiesAction.EDITPROPERTIES);
      if (action != null && action.isEnabled()) {
        action.run();
      }
    }
  }

  protected void refreshVisuals() {
View Full Code Here

  private void invokeAction(final String actionId) {
    final IAction action = configEditor.getSourcePage().getAction(actionId);
    syncExec(new VoidResult() {
      public void run() {
        System.err.println(MessageFormat.format("Activating action with id {0}", actionId));
        action.run();
      }
    });
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.