Class ActionCollector
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.actions.ActionCollector
-
public class ActionCollector extends java.lang.Object
Helper class to dot-link the creation ofMasterDetailAction
collections.- 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 ActionCollector
add(MasterDetailAction action)
Adds the givenMasterDetailAction
to the collection.ActionCollector
addAll(java.util.Collection<? extends MasterDetailAction> collection)
Adds the given collection ofMasterDetailAction
s to the collection.ActionCollector
addCopyAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds theCopyMasterDetailAction
to the collection.ActionCollector
addCutAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds theCutMasterDetailAction
to the collection.ActionCollector
addPasteAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds thePasteMasterDetailAction
to the collection.java.util.List<MasterDetailAction>
getList()
Returns the collected list ofMasterDetailAction
s.static ActionCollector
newList()
Start a new collection.
-
-
-
Method Detail
-
add
public ActionCollector add(MasterDetailAction action)
Adds the givenMasterDetailAction
to the collection.- Parameters:
action
- TheMasterDetailAction
to add.- Returns:
- self.
-
addAll
public ActionCollector addAll(java.util.Collection<? extends MasterDetailAction> collection)
Adds the given collection ofMasterDetailAction
s to the collection.- Parameters:
collection
- The collection ofMasterDetailAction
s to add.- Returns:
- self.
-
addCopyAction
public ActionCollector addCopyAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds theCopyMasterDetailAction
to the collection.- Parameters:
editingDomain
- TheEditingDomain
used to create theCopyMasterDetailAction
.- Returns:
- self.
-
addPasteAction
public ActionCollector addPasteAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds thePasteMasterDetailAction
to the collection.- Parameters:
editingDomain
- TheEditingDomain
used to create thePasteMasterDetailAction
.- Returns:
- self.
-
addCutAction
public ActionCollector addCutAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Adds theCutMasterDetailAction
to the collection.- Parameters:
editingDomain
- TheEditingDomain
used to create theCutMasterDetailAction
.- Returns:
- self.
-
getList
public java.util.List<MasterDetailAction> getList()
Returns the collected list ofMasterDetailAction
s.- Returns:
- The collection of
MasterDetailAction
s.
-
newList
public static ActionCollector newList()
Start a new collection.- Returns:
- A new
ActionCollector
.
-
-