public abstract class RewindableSequenceAction extends DisposableAction
RewindableGraphSequence
object.DisposableAction.RunActionListener
language
Constructor and Description |
---|
RewindableSequenceAction(RewindableGraphSequence sequence,
java.util.function.Consumer<RewindableGraphSequence> onAction) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this action, i.e.
|
protected abstract void |
performChanges(RewindableGraphSequence sequence) |
void |
run() |
protected abstract boolean |
shouldBeEnabled(RewindableGraphSequence sequence) |
addRunActionListener, removeRunActionListener
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
public RewindableSequenceAction(RewindableGraphSequence sequence, java.util.function.Consumer<RewindableGraphSequence> onAction)
public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class DisposableAction
public void dispose()
DisposableAction
dispose
in class DisposableAction
protected abstract boolean shouldBeEnabled(RewindableGraphSequence sequence)
protected abstract void performChanges(RewindableGraphSequence sequence)