Bug 3193 - JM - ISourceManipulation.delete send replace-BufferChangedEvent (1FYE8XI)
Summary: JM - ISourceManipulation.delete send replace-BufferChangedEvent (1FYE8XI)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 3601
  Show dependency tree
 
Reported: 2001-10-10 22:51 EDT by Kai-Uwe Maetzel CLA
Modified: 2002-05-02 10:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.