|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.impl.DefaultRemoveFeature
public class DefaultRemoveFeature
The Class DefaultRemoveFeature.
Field Summary | |
---|---|
private static java.lang.String |
NAME
|
Constructor Summary | |
---|---|
DefaultRemoveFeature(IFeatureProvider fp)
Creates a new DefaultRemoveFeature . |
Method Summary | |
---|---|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context. |
boolean |
canRemove(IRemoveContext context)
Checks if given object could be removed. |
void |
execute(IContext context)
Executes the current feature with the given context. |
java.lang.String |
getName()
Gets the name. |
void |
postRemove(IRemoveContext context)
called after remove call. |
void |
preRemove(IRemoveContext context)
called prior to remove call. |
void |
remove(IRemoveContext context)
Remove the given object. |
protected void |
removeAllConnections(Shape shape)
Removes the all connections. |
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
---|
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, setProgressCallback, toString, updatePictogramElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.features.IFeature |
---|
canUndo, hasDoneChanges, isAvailable |
Methods inherited from interface org.eclipse.graphiti.IDescription |
---|
getDescription |
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
---|
getFeatureProvider |
Field Detail |
---|
private static final java.lang.String NAME
Constructor Detail |
---|
public DefaultRemoveFeature(IFeatureProvider fp)
DefaultRemoveFeature
.
fp
- the feature providerMethod Detail |
---|
public boolean canRemove(IRemoveContext context)
IRemoveFeature
canRemove
in interface IRemoveFeature
context
- contains object to remove
public final void remove(IRemoveContext context)
IRemoveFeature
remove
in interface IRemoveFeature
context
- contains object to removepublic void preRemove(IRemoveContext context)
IRemoveFeature
preRemove
in interface IRemoveFeature
context
- the contextprotected void removeAllConnections(Shape shape)
shape
- the shapepublic void postRemove(IRemoveContext context)
IRemoveFeature
postRemove
in interface IRemoveFeature
context
- the contextpublic boolean canExecute(IContext context)
IFeature
canExecute
in interface IFeature
context
- this is the general input for this method
IContext
public void execute(IContext context)
IFeature
execute
in interface IFeature
context
- this is the general input for this methodIContext
public java.lang.String getName()
IName
getName
in interface IName
getName
in class AbstractFeature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |