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

Bug 345589

Summary: [refactoring/serializer] Make refactoring work with both serializer versions
Product: [Modeling] TMF Reporter: Jan Koehnlein <jan>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, tmf.xtext-inbox
Version: 2.0.0Flags: jan: indigo+
Target Milestone: SR2   
Hardware: All   
OS: All   
Whiteboard:

Description Jan Koehnlein CLA 2011-05-12 08:36:34 EDT
Rename refactoring is using an org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.ICrossReferenceSerializer to decide on the new text for a cross reference. It has to be clarified how it should work with the new serializer architecture.
Comment 1 Sebastian Zarnekow CLA 2011-05-30 03:45:52 EDT
Easy solution: 

Add an adapter inbetween with two implementations. Have a default binding that uses the old cross reference serializer. Add an explicit binding in the new serializer fragment.
Comment 2 Jan Koehnlein CLA 2011-09-01 09:51:50 EDT
Introduced a CrossReferenceSerializerFacade. 

The CRS is selected with tregard to the binding of the ISerializer interface, because there are default bindings for both CRSs and a client can use the new serializer without the SerializerFragment.

The facade also contains a hook to resolve name collisions introduced by the refactoring.
Comment 3 Karsten Thoms CLA 2017-09-19 17:49:30 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:00:33 EDT
Closing all bugs that were set to RESOLVED before Neon.0