Class ChangeExecutorImpl
- java.lang.Object
-
- net.officefloor.gef.editor.internal.models.ChangeExecutorImpl
-
- All Implemented Interfaces:
ChangeExecutor
public class ChangeExecutorImpl extends java.lang.Object implements ChangeExecutor
Change
executor.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ChangeExecutorImpl(OfficeFloorContentPartFactory<?,?> contentPartFactory, org.eclipse.gef.mvc.fx.domain.IDomain domain)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(ChangeListener changeListener)
Adds aChangeListener
.void
execute(Change<?> change)
Executes theChange
.void
execute(org.eclipse.gef.mvc.fx.operations.ITransactionalOperation operation)
Executes theITransactionalOperation
.void
removeChangeListener(ChangeListener changeListener)
Removes theChangeListener
.
-
-
-
Constructor Detail
-
ChangeExecutorImpl
public ChangeExecutorImpl(OfficeFloorContentPartFactory<?,?> contentPartFactory, org.eclipse.gef.mvc.fx.domain.IDomain domain)
Instantiate.- Parameters:
contentPartFactory
-OfficeFloorContentPartFactory
.domain
-IDomain
.
-
-
Method Detail
-
execute
public void execute(Change<?> change)
Description copied from interface:ChangeExecutor
Executes theChange
.- Specified by:
execute
in interfaceChangeExecutor
- Parameters:
change
-Change
.
-
execute
public void execute(org.eclipse.gef.mvc.fx.operations.ITransactionalOperation operation)
Description copied from interface:ChangeExecutor
Executes theITransactionalOperation
.- Specified by:
execute
in interfaceChangeExecutor
- Parameters:
operation
-ITransactionalOperation
.
-
addChangeListener
public void addChangeListener(ChangeListener changeListener)
Description copied from interface:ChangeExecutor
Adds aChangeListener
.- Specified by:
addChangeListener
in interfaceChangeExecutor
- Parameters:
changeListener
-ChangeListener
.
-
removeChangeListener
public void removeChangeListener(ChangeListener changeListener)
Description copied from interface:ChangeExecutor
Removes theChangeListener
.- Specified by:
removeChangeListener
in interfaceChangeExecutor
- Parameters:
changeListener
-ChangeListener
.
-
-