/** Construct an instance of SaveDiagramAction. */ public SaveDiagramAction(DiagramEditor editor) { super(); setImageDescriptor( DiagramUiPlugin.getDefault().getImageDescriptor(DiagramUiConstants.Images.SAVE_DIAGRAM)); this.editor = editor; }
/** Construct and register actions. */ private void initActions() { findXsdComponentAction = new FindXsdComponentAction(); DiagramUiPlugin.registerDiagramActionForSelection(findXsdComponentAction); }