Examples of OpenAction


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

            }
            if (types != null && types.length > 0) {
               
                IHyperlink[] links = new IHyperlink[types.length];
                for (int i=0; i < types.length; i++) {
                    links[i] = new ModelElementHyperlink(wordRegion, types[i], new OpenAction(site));
                }
               
                return links;
            }
View Full Code Here

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

        IMethod method = field.getMethod();
        IDLTKSearchScope scope = SearchEngine.createSearchScope(field.getSourceModule());
        IMethod[] methods = model.findMethods(method.getElementName(), MatchRule.EXACT, 0, 0, scope, null);
       
        if (methods.length == 1) {                   
          links[i++] = new ModelElementHyperlink(wordRegion, methods[0], new OpenAction(editor));;
        }
      }
     
      if (links.length > 0) {
        return links;
View Full Code Here

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

      try {
        String action = tpl.substring(0, tpl.indexOf("."));
       
        if (action.length() > 0) {         
          IMethod method = controller.getMethod(action + "Action");         
          return new ModelElementHyperlink(wordRegion, method, new OpenAction(editor));
        }
      } catch (Exception e) {
        // ignore and open the controller
      }
     
      return new ModelElementHyperlink(wordRegion, controller, new OpenAction(editor));
     
    }   
   
    return null;
  }
View Full Code Here

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

   
    path += viewPath.getTemplate();   
    ISourceModule module = folder.getSourceModule(path);
   
    if (module != null) {     
      return new ModelElementHyperlink(wordRegion, module, new OpenAction(editor));   
    }
       
    return null;
   
  }
View Full Code Here

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

      IType type = SymfonyModelAccess.getDefault().findEntity(alias, input.getScriptProject());
     
      if (type == null)
        return null;
     
      IHyperlink link = new ModelElementHyperlink(wordRegion, type, new OpenAction(editor));
     
      return new IHyperlink[] { link };
     
    } catch (Exception e) {   
      Logger.logException(e);     
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

  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.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
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.