|
||||||||||
| 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.ui.features.DefaultDeleteFeature
public class DefaultDeleteFeature
The Class DefaultDeleteFeature.
| Field Summary | |
|---|---|
private static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
DefaultDeleteFeature(IFeatureProvider fp)
Creates a new DefaultDeleteFeature. |
|
| Method Summary | |
|---|---|
boolean |
canDelete(IDeleteContext context)
Can delete. |
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context. |
void |
delete(IDeleteContext context)
Delete. |
protected void |
deleteBusinessObject(java.lang.Object bo)
Delete business object. |
protected void |
deleteBusinessObjects(java.lang.Object[] businessObjects)
Delete business objects. |
void |
execute(IContext context)
Executes the current feature with the given context. |
java.lang.String |
getName()
Gets the name. |
protected boolean |
getUserDecision()
Gets the user decision. |
void |
postDelete(IDeleteContext context)
Post delete. |
void |
preDelete(IDeleteContext context)
Pre delete. |
| Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
|---|
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, 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 DefaultDeleteFeature(IFeatureProvider fp)
DefaultDeleteFeature.
fp - the feature provider| Method Detail |
|---|
public boolean canDelete(IDeleteContext context)
IDeleteFeature
canDelete in interface IDeleteFeaturecontext - the context
public void delete(IDeleteContext context)
IDeleteFeature
delete in interface IDeleteFeaturecontext - the contextprotected void deleteBusinessObjects(java.lang.Object[] businessObjects)
businessObjects - the business objectsprotected void deleteBusinessObject(java.lang.Object bo)
bo - the boprotected boolean getUserDecision()
AbstractFeature
getUserDecision in class AbstractFeaturepublic void preDelete(IDeleteContext context)
IDeleteFeature
preDelete in interface IDeleteFeaturecontext - the contextpublic void postDelete(IDeleteContext context)
IDeleteFeature
postDelete in interface IDeleteFeaturecontext - the contextpublic boolean canExecute(IContext context)
IFeature
canExecute in interface IFeaturecontext - this is the general input for this method
IContextpublic void execute(IContext context)
IFeature
execute in interface IFeaturecontext - this is the general input for this methodIContextpublic java.lang.String getName()
IName
getName in interface INamegetName in class AbstractFeature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||