Bug 3193

Summary: JM - ISourceManipulation.delete send replace-BufferChangedEvent (1FYE8XI)
Product: [Eclipse Project] JDT Reporter: Kai-Uwe Maetzel <kai-uwe_maetzel>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: All   
OS: Windows NT   
Whiteboard:
Bug Depends on:    
Bug Blocks: 3601    

Description Kai-Uwe Maetzel CLA 2001-10-10 22:51:03 EDT
Calling ISourceManipulation.delete results in a BufferChangeEvent indicating a complete substituation
	of the buffer's content.
	Expected behavior: deletion of the according source range.

NOTES:

DW (7/26/00 10:43:12 AM)
	This is because we use the JDOM to implement delete. We create a JDOM, remove nodes,
	and then replace the buffer with the content of the resulting JDOM. This makes our
	operations work nice, so I am not yet sure how to solve the buffer event problem.

JBL (6/19/2001 2:51:33 PM)
	Need to implement the same mechanism as CreateElementInCUOperation (see executeOperation()
	that uses the fInsertionPosition)
Comment 1 DJ Houghton CLA 2001-10-23 23:51:10 EDT
PRODUCT VERSION:
	IBM Tooling Platform Java Model [0.1 071800H17 vame]

Comment 2 Jerome Lanneluc CLA 2002-05-02 10:40:23 EDT
Fixed by using replace(...) on the buffer instead of setContent.