Examples of IMemento


Examples of org.eclipse.ui.IMemento

      }
  };
   
    public boolean performApply() {
      StyleBlackboard bb = getSelectedLayer().getStyleBlackboard();
      IMemento memento = (IMemento) bb.get(DialogSettingsStyleContent.EXTENSION_ID);
      if(memento == null ){
        memento = XMLMemento.createWriteRoot("ThemeingData");
      }

      putIntFromCombo(memento, OPACITY_KEY, COMBO_OPACITY);
      putStringFromCombo(memento, ATTRIBUTE_KEY, COMBO_ATTRIBUTES);
      putIntFromCombo(memento, CLASSES_KEY, COMBO_CLASSES);
      putStringFromCombo(memento, BREAK_KEY, COMBO_BREAKTYPE);
      putStringFromCombo(memento, NORMALIZE_KEY, COMBO_NORMALIZE);
      memento.putInteger(ELSE_KEY, getCombo(COMBO_ELSE).getSelectionIndex());
        putStringFromCombo(memento, PALETTE_CATEGORY_KEY, COMBO_PALETTES);

        putButton(memento, BUTTON_COLORBLIND, COLOR_BLIND_KEY);
        putButton(memento, BUTTON_CRT, CRT_KEY);
        putButton(memento, BUTTON_PROJECTOR, PROJECTOR_KEY);
View Full Code Here

Examples of org.eclipse.ui.IMemento

        memento.putInteger(IWorkbenchConstants.TAG_FAST_VIEW_SIDE, getSide());

        Iterator iter = viewOrientation.keySet().iterator();
        while (iter.hasNext()) {
            String next = (String) iter.next();
            IMemento orientation = memento
                    .createChild(IWorkbenchConstants.TAG_FAST_VIEW_ORIENTATION);

            orientation.putString(IWorkbenchConstants.TAG_VIEW, next);
            orientation.putInteger(IWorkbenchConstants.TAG_POSITION,
                    ((Integer) viewOrientation.get(next)).intValue());
        }

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