Skip to main content


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 11:43
serge farny is currently offline serge farnyFriend
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 09: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: Tue Mar 19 09:04:30 GMT 2024

Powered by FUDForum. Page generated in 0.05530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top