M
Martin
I have written an eclipse source code text editor plugin.
Now I want to do source code folding (collapsible sections). It should
be possible to collapse "do-end" sections.
In my myTextEditor, I have a createSourceViewer, createPartControl and
getAdapter.
For testing, I added an annotation within the method
"createpartControl".
This worked and the source code can now collapsed at one position.
But of course, addAnnotation should not be in createPartControl.
It shoud be placed in a code part which is called when the source code
is loaded and after changes in the source code.
So where is this? Where do i have to place "addAnnotation"?
Jens Martin Schlatter
Now I want to do source code folding (collapsible sections). It should
be possible to collapse "do-end" sections.
In my myTextEditor, I have a createSourceViewer, createPartControl and
getAdapter.
For testing, I added an annotation within the method
"createpartControl".
This worked and the source code can now collapsed at one position.
But of course, addAnnotation should not be in createPartControl.
It shoud be placed in a code part which is called when the source code
is loaded and after changes in the source code.
So where is this? Where do i have to place "addAnnotation"?
Jens Martin Schlatter