public class DefaultMdacContextualCommand extends Object implements IMdacContextualCommand
IMdacContextualCommand
interface.
This default implementation may be inherited by the mdac developers in order to simplify the code writing of a contextual command.
Constructor and Description |
---|
DefaultMdacContextualCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ObList<IElement> selectedElements,
IMdac mdac)
The command accepts by default the selected elements.
|
void |
actionPerformed(ObList<IElement> selectedElements,
IMdac mdac)
Nothing is done, by default when the command is launched.
|
boolean |
isActiveFor(ObList<IElement> selectedElements,
IMdac mdac)
The command is active by default.
|
public void actionPerformed(ObList<IElement> selectedElements, IMdac mdac)
actionPerformed
in interface IMdacContextualCommand
selectedElements
- Current selectionmdac
- Owner of the commandpublic boolean accept(ObList<IElement> selectedElements, IMdac mdac)
accept
in interface IMdacContextualCommand
selectedElements
- Current selectionmdac
- Owner of the commandpublic boolean isActiveFor(ObList<IElement> selectedElements, IMdac mdac)
isActiveFor
in interface IMdacContextualCommand
selectedElements
- Current selectionmdac
- Owner of the command