Collapsing all comments [message #1065505] |
Wed, 26 June 2013 04:14  |
Eclipse User |
|
|
|
Hi,
I would like to collapse by default all multi-line comments in my xtext editors.
I've looked around and found out that this may be done through the ProjectAnnotationModel but :
1) how do I retrieve the ProjectAnnotationModel, I always get null when using the following instruction:
ProjectionAnnotationModel model = (ProjectionAnnotationModel) xtextEditor.getAdapter(ProjectionAnnotationModel.class);
2) where do I insert the code, i.e. which hook should I use ?
thanks in advance for any hints, pointers on how to achieve this.
Benoît
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05862 seconds