Class DefaultDeleteActionBuilder
- java.lang.Object
-
- org.eclipse.emfforms.internal.swt.treemasterdetail.defaultprovider.DefaultDeleteActionBuilder
-
- All Implemented Interfaces:
DeleteActionBuilder
public class DefaultDeleteActionBuilder extends java.lang.Object implements DeleteActionBuilder
The default delete action creates a remove command and wraps it's execution in therunmethod.- Author:
- Johannes Faltermeier
-
-
Constructor Summary
Constructors Constructor Description DefaultDeleteActionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jface.action.ActioncreateDeleteAction(org.eclipse.jface.viewers.IStructuredSelection selection, org.eclipse.emf.edit.domain.EditingDomain editingDomain)This method creates an action which gets added to the context menu of elements in the TreeMasterDetail.
-
-
-
Method Detail
-
createDeleteAction
public org.eclipse.jface.action.Action createDeleteAction(org.eclipse.jface.viewers.IStructuredSelection selection, org.eclipse.emf.edit.domain.EditingDomain editingDomain)Description copied from interface:DeleteActionBuilderThis method creates an action which gets added to the context menu of elements in the TreeMasterDetail. The action is supposed to delete the selected element.- Specified by:
createDeleteActionin interfaceDeleteActionBuilder- Parameters:
selection- the tree viewer selectioneditingDomain- the editing domain- Returns:
- the action which will be added
-
-