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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the description.Gets the feature.Gets the feature provider.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getFeaturein interfaceIFeatureHolder- Returns:
- Returns the feature.
-
getDescription
Description copied from interface:IDescriptionGets the description.- Specified by:
getDescriptionin interfaceIDescription- Returns:
- the description
-
getFeatureProvider
Description copied from interface:IFeatureProviderHolderGets the feature provider.- Specified by:
getFeatureProviderin interfaceIFeatureProviderHolder- Returns:
- the feature provider
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceIReadOnlyProvider
-