control.select(integer);
}
};
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);
putButton(memento, BUTTON_LCD, LCD_KEY);
putButton(memento, BUTTON_PRINT, PRINT_KEY);
putButton(memento, BUTTON_PHOTOCOPY, PHOTO_COPY_KEY);
storeOutline(memento);
storePalette(memento);
storeCustomPalette(memento);
storeCustomBreak(memento);
bb.put(DialogSettingsStyleContent.EXTENSION_ID, memento);
return true;
}