Class ActionCollector
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.actions.ActionCollector
-
public class ActionCollector extends java.lang.ObjectHelper class to dot-link the creation ofMasterDetailActioncollections.- Since:
- 1.8
- Author:
- Stefan Dirix
-
-
Constructor Summary
Constructors Constructor Description ActionCollector()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionCollectoradd(MasterDetailAction action)Adds the givenMasterDetailActionto the collection.ActionCollectoraddAll(java.util.Collection<? extends MasterDetailAction> collection)Adds the given collection ofMasterDetailActions to the collection.ActionCollectoraddCopyAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)Adds theCopyMasterDetailActionto the collection.ActionCollectoraddCutAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)Adds theCutMasterDetailActionto the collection.ActionCollectoraddPasteAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)Adds thePasteMasterDetailActionto the collection.java.util.List<MasterDetailAction>getList()Returns the collected list ofMasterDetailActions.static ActionCollectornewList()Start a new collection.
-
-
-
Method Detail
-
add
public ActionCollector add(MasterDetailAction action)
Adds the givenMasterDetailActionto the collection.- Parameters:
action- TheMasterDetailActionto add.- Returns:
- self.
-
addAll
public ActionCollector addAll(java.util.Collection<? extends MasterDetailAction> collection)
Adds the given collection ofMasterDetailActions to the collection.- Parameters:
collection- The collection ofMasterDetailActions to add.- Returns:
- self.
-
addCopyAction
public ActionCollector addCopyAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds theCopyMasterDetailActionto the collection.- Parameters:
editingDomain- TheEditingDomainused to create theCopyMasterDetailAction.- Returns:
- self.
-
addPasteAction
public ActionCollector addPasteAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds thePasteMasterDetailActionto the collection.- Parameters:
editingDomain- TheEditingDomainused to create thePasteMasterDetailAction.- Returns:
- self.
-
addCutAction
public ActionCollector addCutAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds theCutMasterDetailActionto the collection.- Parameters:
editingDomain- TheEditingDomainused to create theCutMasterDetailAction.- Returns:
- self.
-
getList
public java.util.List<MasterDetailAction> getList()
Returns the collected list ofMasterDetailActions.- Returns:
- The collection of
MasterDetailActions.
-
newList
public static ActionCollector newList()
Start a new collection.- Returns:
- A new
ActionCollector.
-
-