Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370581

Summary: Second call off ProjectSpace.beginCompositeOperation() can lead to IllegalStateException
Product: [Modeling] EMFStore Reporter: Max Hohenegger <eclipse>
Component: ServerCoreAssignee: Johannes Faltermeier <jfaltermeier>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: emueller, erdal.karaca.de, jfaltermeier, mkoegel
Version: unspecified   
Target Milestone: 1.3.0   
Hardware: All   
OS: All   
Whiteboard:

Description Max Hohenegger CLA 2012-02-03 11:56:24 EST
Even though the CompositeOperation is ended as shown in the example below, a second call of said method can result in a IllegalStateException.
This issues should be reproduced with a testcase first.

ProjectSpace projectSpace = WorkspaceManager.getProjectSpace(matrix);
projectSpace.beginCompositeOperation();

ECPCommand ecpCommand = new ECPCommand(matrix) {
	@Override
	protected void doRun() {
		//[...]
	}
};
ecpCommand.run(false);

projectSpace.getOperationManager().endCompositeOperation();
Comment 1 Edgar Mueller CLA 2014-03-04 10:17:26 EST
*** Bug 371885 has been marked as a duplicate of this bug. ***
Comment 2 Johannes Faltermeier CLA 2014-06-04 09:36:36 EDT
See existing CompositeOperationTest#beginSubsequentCompositeOperations for a test case. 
Issue seems to be resolved -> works for me