Class 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 the run method.
    Author:
    Johannes Faltermeier
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jface.action.Action createDeleteAction​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultDeleteActionBuilder

        public DefaultDeleteActionBuilder()
    • 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: DeleteActionBuilder
        This 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:
        createDeleteAction in interface DeleteActionBuilder
        Parameters:
        selection - the tree viewer selection
        editingDomain - the editing domain
        Returns:
        the action which will be added