@Override
public void run() {
super.run();
ISelection sel = new StructuredSelection(new AnnotationTypeNode(editor, null));
PropertyPage page = new EditorAnnotationPropertyPage();
page.setElement(new AnnotationTypeNode(editor, null));
page.setTitle("Styles");
PreferenceManager mgr = new PreferenceManager();
IPreferenceNode node = new PreferenceNode("1", page);
mgr.addToRoot(node);
PropertyDialog dialog = new PropertyDialog(getSite().getShell(), mgr, sel);
dialog.create();
dialog.setMessage(page.getTitle());
dialog.open();
}
};
action.setImageDescriptor(CasEditorPlugin