Examples of CheatSheetElement


Examples of org.eclipse.ui.internal.cheatsheets.registry.CheatSheetElement

  public void setInput(String id, String name, URL url,
      ICheatSheetStateManager inputStateManager, boolean isRestricted) {
    if (id == null || name == null || url == null) {
      throw new IllegalArgumentException();
    }
    CheatSheetElement element = new CheatSheetElement(name);
    element.setID(id);
    element.setHref(url.toString());

    nullCheatSheetId = false;
    invalidCheatSheetId = false;
    this.isRestricted = isRestricted;
    setContent(element, inputStateManager);
View Full Code Here

Examples of org.eclipse.ui.internal.cheatsheets.registry.CheatSheetElement

  /* (non-Javadoc)
   * Method declared on IViewPart.
   */
  public void saveState(IMemento memento) {
    if(viewer != null) {
      CheatSheetElement element = viewer.getContent();

      if(element == null) {
        // Currently no cheat sheet is being displayed so just return
        return;
      }

      IMemento contentMemento = memento.createChild(ICheatSheetResource.MEMENTO);

      CheatSheetElement tempElement = CheatSheetRegistryReader.getInstance().findCheatSheet(element.getID());
      if(tempElement != null) {
        contentMemento.putString(ICheatSheetResource.MEMENTO_ID, element.getID());
      } else {
        contentMemento.putString(ICheatSheetResource.MEMENTO_ID, element.getID());
        contentMemento.putString(ICheatSheetResource.MEMENTO_NAME, element.getLabel(null));
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.