Class OperationRegistry
- java.lang.Object
-
- org.eclipse.emf.edapt.internal.declaration.OperationRegistry
-
public class OperationRegistry extends Object
Registry for all operations (singleton). A set of operations is registered as a Eclipse extension.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Operation>getAfter(Operation operation)Get the operations that need to be performed after an operation.List<Operation>getBefore(Operation operation)Get the operations that need to be performed before an operation.static OperationRegistrygetInstance()Getter for instance.OperationgetOperation(String name)Get an operation by name.Collection<Operation>getOperations()Get a list of all operations.List<Library>getRootLibraries()Get the root libraries.List<Operation>getRootOperations()Get the root operations.voidregisterLibrary(Class<? extends LibraryImplementation> c)Register the implementation of a library.voidregisterOperation(Class<? extends OperationImplementation> c)Register the implementation of an operation.
-
-
-
Method Detail
-
getBefore
public List<Operation> getBefore(Operation operation)
Get the operations that need to be performed before an operation.
-
getAfter
public List<Operation> getAfter(Operation operation)
Get the operations that need to be performed after an operation.
-
registerOperation
public void registerOperation(Class<? extends OperationImplementation> c)
Register the implementation of an operation.
-
registerLibrary
public void registerLibrary(Class<? extends LibraryImplementation> c)
Register the implementation of a library.
-
getInstance
public static OperationRegistry getInstance()
Getter for instance.
-
getOperations
public Collection<Operation> getOperations()
Get a list of all operations.
-
-