Class FeatureCommand
java.lang.Object
org.eclipse.graphiti.internal.command.FeatureCommand
- All Implemented Interfaces:
IFeatureHolder
,IFeatureProviderHolder
,IDescription
,ICommand
,IReadOnlyProvider
- Direct Known Subclasses:
FeatureCommandWithContext
public abstract class FeatureCommand
extends Object
implements ICommand, IFeatureHolder, IReadOnlyProvider
This command encapsulates a features.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the description.Gets the feature.Gets the feature provider.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.graphiti.internal.command.ICommand
canExecute, canUndo, execute, undo
-
Constructor Details
-
FeatureCommand
The Constructor.- Parameters:
feature
- the feature
-
-
Method Details
-
getFeature
Gets the feature.- Specified by:
getFeature
in interfaceIFeatureHolder
- Returns:
- Returns the feature.
-
getDescription
Description copied from interface:IDescription
Gets the description.- Specified by:
getDescription
in interfaceIDescription
- Returns:
- the description
-
getFeatureProvider
Description copied from interface:IFeatureProviderHolder
Gets the feature provider.- Specified by:
getFeatureProvider
in interfaceIFeatureProviderHolder
- Returns:
- the feature provider
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfaceIReadOnlyProvider
-