Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Mark Occurrences(Creating Mark Occurrences for own Editor)
Mark Occurrences [message #631996] Mon, 11 October 2010 07:36 Go to next message
info is currently offline infoFriend
Messages: 9
Registered: August 2010
Location: Bonn
Junior Member
Hi,

I am searching for a way, how I can mark occurrences for my own TextEditor but i cant figure it out. Has anybody a hint for me?

Thanks
Markus

[Updated on: Wed, 13 October 2010 07:21]

Report message to a moderator

Re: Mark Occurrences [message #633011 is a reply to message #631996] Fri, 15 October 2010 06:05 Go to previous message
info is currently offline infoFriend
Messages: 9
Registered: August 2010
Location: Bonn
Junior Member
I found a solution.

In the Class of the Text Editor you can do this:

IAnnotationModel model = getDocumentProvider().getAnnotationModel( getEditorInput() );
    Annotation annotation = new Annotation( "org.eclipse.jdt.ui.occurrences", false, "Description" );
    model.addAnnotation( annotation, new Position( 80, 10 ) );
Previous Topic:"New" Sub Menu entries
Next Topic:transfer data to page
Goto Forum:
  


Current Time: Fri Apr 26 21:43:05 GMT 2024

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

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

Back to the top