Package mmrnmhrm.ui.actions

Source Code of mmrnmhrm.ui.actions.OpenDefinitionAction

package mmrnmhrm.ui.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.texteditor.ITextEditor;

public class OpenDefinitionAction extends AbstractWorkbenchWindowActionDelegate {
 
  @Override
  public void run(IAction action) {
    if (window == null || window.getActivePage() == null) {
      beep();
      return;
    }
   
    IEditorPart editor = window.getActivePage().getActiveEditor();
    ITextEditor textEditor = (ITextEditor) editor;
    new DeeOpenDefinitionHandler().runOperation(textEditor);
  }
 
}
TOP

Related Classes of mmrnmhrm.ui.actions.OpenDefinitionAction

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.