addAction.setText(EditorMessages.getString(
RESOURCE_PREFIX + "addAction.text"));
newAction = new Action() {
public void run() {
SelectorGroupWizard wizard = new SelectorGroupWizard(
getShell(),
context.getProject());
wizard.open();
SelectorGroup group = wizard.getSelectorGroup();
if (group != null) {
ListProxy rules = (ListProxy) getSelectedStyleSheetProxy().
getPropertyProxy(ThemeModel.RULES);
Operation addOp = rules.prepareCreateAndAddProxyItemOperation();
context.executeOperation(addOp);
BeanProxy newRule = (BeanProxy) rules.getItemProxy(rules.size() - 1);
ListProxy selectors = (ListProxy) newRule.getPropertyProxy(Rule.SELECTORS);
Operation setOp = selectors.prepareSetModelObjectOperation(wizard.getSelectorGroup().getSelectors());
context.executeOperation(setOp);
}
}
};
newAction.setText(EditorMessages.getString(