[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[platform-team-dev] CompareEditor changes document of JavaEditor
- From: "Lay, Stefan" <stefan.lay@xxxxxxx>
- Date: Wed, 17 Feb 2010 17:55:51 +0100
- Accept-language: de-DE
- Acceptlanguage: de-DE
- Delivered-to: email@example.com
- Thread-index: Acqv8g/9iCiysEsERjuB3ErVx8PNgA==
- Thread-topic: CompareEditor changes document of JavaEditor
we have a strange behavior of the CompareEditor in our Git Team provider project. Maybe you have an idea what we do wrong.
We have an Java editor open for a Class X. We then open the Compare Editor for two old revisions of X.
When the CompareEditor is opened via CompareUI.openCompareEditor the content of the left element is put into the Java Editor of X, which then becomes dirty.
Details of our implementation:
We use a SaveableCompareEditorInput. Its method prepareCompareInput returns a DiffNode with two FileRevisionTypedElements. We set the CompareConfiguration.setLeftEditable and CompareConfiguration.setLeftEditable to false. The IFileRevision of the left
element does not return an instance of IFile in method getStorage.
The reporter states: “This behaviour is only since I use eclipse 3.5 . In eclipse 3.4 it worked as it should.”
Any help is highly appreciated. If this is not the right newsgroup, could you please point me to the correct one?