Package org.eclipse.ui.cheatsheets

Examples of org.eclipse.ui.cheatsheets.OpenCheatSheetAction


  public void fix(Object issue, IMemento fixerMemento) {
        //mark as in progress
        ((IIssue) issue).setResolution(Resolution.IN_PROGRESS);
        //instantiate the cheat sheet
        final String requiredExtension = fixerMemento.getString(KEY_CHEATSHEET);
        OpenCheatSheetAction openAction = new OpenCheatSheetAction(requiredExtension); //, "", null);
        openAction.run();

//TODO: investigate alternative (custom cheat sheet XML)
//        URL url = new URL(null, null, new URLStreamHandler()  {
//
//            @Override
View Full Code Here


    if (cheatSheetId == null) {
      CheatSheetCategoryBasedSelectionAction action = new CheatSheetCategoryBasedSelectionAction();
      action.run();
    } else {
      OpenCheatSheetAction action = new OpenCheatSheetAction(cheatSheetId);
      action.run();
    }

    return null;
  }
View Full Code Here

      url = new URL(urlText);
    } catch (MalformedURLException ex) {
      throw new ExecutionException("malformed url: " + urlText, ex); //$NON-NLS-1$
    }

    OpenCheatSheetAction action = new OpenCheatSheetAction(cheatSheetId,
        name, url);
    action.run();

    return null;
  }
View Full Code Here

      ITriggerPoint triggerPoint = PlatformUI.getWorkbench()
          .getActivitySupport().getTriggerPointManager()
          .getTriggerPoint(ICheatSheetResource.TRIGGER_POINT_ID);
      if (WorkbenchActivityHelper.allowUseOf(triggerPoint,
          currentSelection)) {
        new OpenCheatSheetAction(currentSelection.getID()).run();
      }
    }
  }
View Full Code Here

    boolean opened = false;
   
    try {
        File contentFile = new File(selectFileCombo.getText());
        url = contentFile.toURL();
        new OpenCheatSheetAction(id, id ,url).run();
        opened = true;   
      } catch (MalformedURLException e) {
        opened = false;
      }
      if (!opened) {  
View Full Code Here

      return;
    }
  }

  public boolean open(String id) {
    Action openAction = new OpenCheatSheetAction(id);
    openAction.run();
    return true;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.cheatsheets.OpenCheatSheetAction

Copyright © 2018 www.massapicom. 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.