Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » CompareUI selectAndReveal equivalent
CompareUI selectAndReveal equivalent [message #1016968] Fri, 08 March 2013 06:43
serge farny is currently offline serge farny
Messages: 1
Registered: March 2013
Junior Member
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]

Report message to a moderator

Previous Topic:eclipse juno SR1 crash on ubuntu 12.10
Next Topic:Hide a parent folder but show its children in cnf view [Common Navigator]
Goto Forum:
  


Current Time: Thu Jul 31 05:45:44 EDT 2014

Powered by FUDForum. Page generated in 0.01435 seconds