Package org.eclipse.ui.cheatsheets

Examples of org.eclipse.ui.cheatsheets.OpenCheatSheetAction.run()


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

      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

    }
  }

  public boolean open(String id) {
    Action openAction = new OpenCheatSheetAction(id);
    openAction.run();
    return true;
  }
 
  private static boolean isExtensionValid(String fileName, String id, String pluginId) {
    if (fileName.indexOf('\\') != -1) {
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.