Examples of OpenAction


Examples of org.eclipse.jdt.ui.actions.OpenAction

    CoverageTools.addJavaCoverageListener(coverageListener);
  }
 
  protected void createActions() {
    IKeyBindingService kb = getSite().getKeyBindingService();
    openAction = new OpenAction(getSite());
    openAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    getViewSite().getActionBars().setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
    kb.registerAction(openAction);
    relaunchSessionAction = new RelaunchSessionAction();
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

    CoverageTools.addJavaCoverageListener(coverageListener);
  }
 
  protected void createActions() {
    IKeyBindingService kb = getSite().getKeyBindingService();
    openAction = new OpenAction(getSite());
    openAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    getViewSite().getActionBars().setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
    kb.registerAction(openAction);
    relaunchSessionAction = new RelaunchSessionAction();
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

    CoverageTools.addJavaCoverageListener(coverageListener);
  }
 
  protected void createActions() {
    IKeyBindingService kb = getSite().getKeyBindingService();
    openAction = new OpenAction(getSite());
    openAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    getViewSite().getActionBars().setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
    kb.registerAction(openAction);
    relaunchSessionAction = new RelaunchSessionAction();
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

  private void createActions() {
    // For the following commands we use actions, as they are already available

    final IActionBars ab = getViewSite().getActionBars();

    openAction = new OpenAction(getSite());
    openAction
        .setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    ab.setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
    viewer.addSelectionChangedListener(openAction);
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

  protected void createActions() {
    final IKeyBindingService kb = getSite().getKeyBindingService();
    final IActionBars ab = getViewSite().getActionBars();

    openAction = new OpenAction(getSite());
    openAction
        .setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    ab.setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

  protected void createActions() {
    final IKeyBindingService kb = getSite().getKeyBindingService();
    final IActionBars ab = getViewSite().getActionBars();

    openAction = new OpenAction(getSite());
    openAction
        .setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    ab.setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

    CoverageTools.getSessionManager().addSessionListener(listener);
    CoverageTools.addJavaCoverageListener(coverageListener);
  }
 
  protected void createActions() {
    openaction = new OpenAction(getSite());
    relaunchSessionAction = new RelaunchSessionAction();
    removeActiveSessionAction = new RemoveActiveSessionAction();
    removeAllSessionsAction = new RemoveAllSessionsAction();
    selectSessionAction = new SelectSessionAction();
  }
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

  private void createActions() {
    // For the following commands we use actions, as they are already available

    final IActionBars ab = getViewSite().getActionBars();

    openAction = new OpenAction(getSite());
    openAction
        .setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    ab.setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
    viewer.addSelectionChangedListener(openAction);
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

            openAction.run(itemPointer);
        } else if (itemPointer.definition instanceof JavaDefinition) {
            //note that it will only be able to find a java definition if JDT is actually available
            //so, we don't have to care about JDTNotAvailableExceptions here.
            JavaDefinition javaDefinition = (JavaDefinition) itemPointer.definition;
            OpenAction openAction = new OpenAction(pyEdit.getSite());
            StructuredSelection selection = new StructuredSelection(new Object[] { javaDefinition.javaElement });
            openAction.run(selection);
        } else {
            String message;
            if (itemPointer.definition != null && itemPointer.definition.module instanceof AbstractJavaClassModule) {
                AbstractJavaClassModule module = (AbstractJavaClassModule) itemPointer.definition.module;
                message = "The definition was found at: " + f.toString() + "\n" + "as the java module: "
View Full Code Here

Examples of org.eclipse.jdt.ui.actions.OpenAction

  private void createActions() {
    // For the following commands we use actions, as they are already available

    final IActionBars ab = getViewSite().getActionBars();

    openAction = new OpenAction(getSite());
    openAction
        .setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR);
    ab.setGlobalActionHandler(JdtActionConstants.OPEN, openAction);
    openAction.setEnabled(false);
    viewer.addSelectionChangedListener(openAction);
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.