Hi all
I'm trying to develop a plugin which need to open a file comparator editor on two java files and select-and-reveal/hilight a specific block of code, on one of the two files.
For now, I have a custom implementation of SaveableCompareEditorInput, and I use CompareUI.openCompareEditor(myInput); to open the comparator editor.
I tried this:
if ( editorPart instanceof CompareEditor ) {
CompareEditor ce = (CompareEditor) editorPart;
CompareEditorSelectionProvider cesp = (CompareEditorSelectionProvider)ce.getEditorSite().getSelectionProvider();
cesp.setSelection(mySelection, true);
}
but it doesn't seems to do anything.
Can anyone help me with this ?
Thanks
(edit: typo)
[Updated on: Mon, 11 March 2013 05:04] by Moderator