1 package sourceforge.org.qmc2.options.editor.ui.operations; 2 3 import org.eclipse.core.commands.operations.AbstractOperation; 4 5 import sourceforge.org.qmc2.options.editor.ui.QMC2Editor; 6 7 public abstract class AbstractEditorOperation extends AbstractOperation { 8 9 private final QMC2Editor editor; 10 AbstractEditorOperation(QMC2Editor editor, String label)11 public AbstractEditorOperation(QMC2Editor editor, String label) { 12 super(label); 13 this.editor = editor; 14 addContext(editor.getUndoContext()); 15 } 16 getEditor()17 protected QMC2Editor getEditor() { 18 return editor; 19 } 20 21 } 22