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 java.lang.Object implements ICommand, IFeatureHolder, IReadOnlyProvider
This command encapsulates a features.
-
-
Constructor Summary
Constructors Constructor Description FeatureCommand(IFeature feature)
The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Gets the description.IFeature
getFeature()
Gets the feature.IFeatureProvider
getFeatureProvider()
Gets the feature provider.boolean
isReadOnly()
-
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 Detail
-
FeatureCommand
public FeatureCommand(IFeature feature)
The Constructor.- Parameters:
feature
- the feature
-
-
Method Detail
-
getFeature
public IFeature getFeature()
Gets the feature.- Specified by:
getFeature
in interfaceIFeatureHolder
- Returns:
- Returns the feature.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IDescription
Gets the description.- Specified by:
getDescription
in interfaceIDescription
- Returns:
- the description
-
getFeatureProvider
public IFeatureProvider 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
-
-