public class Cut extends CommonHandler
Modifier and Type | Field and Description |
---|---|
static String |
ID
The ID, same as class name.
|
selectionEnabler
Constructor and Description |
---|
Cut()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static CommandContributionItem |
create(IServiceLocator serviceLocator,
ImageRegistry ir)
Creates the Command Contribution item.
|
protected void |
doExecute()
Performs the operation.
|
static Cut |
getInstance()
Gets the instance of the handler.
|
static void |
run(ISelection selection,
IPropUndoRedo undoRedo,
Runnable callback)
Runs the handler.
|
protected void |
setEnabled(SelectionEnabler se)
Sets the enabled state for the selection.
|
execute, getCurrentSelection, getShell, getUndoContext, getUndoRedo, getUpdateStatesRunnable, isHandled, setEnabled
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, removeHandlerListener, setBaseEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public static final String ID
public static Cut getInstance()
public static CommandContributionItem create(IServiceLocator serviceLocator, ImageRegistry ir)
protected void setEnabled(SelectionEnabler se)
setEnabled
in class CommonHandler
protected void doExecute()
doExecute
in class CommonHandler
public static void run(ISelection selection, IPropUndoRedo undoRedo, Runnable callback)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.