Adding code folding to a ProjectionViewer [message #488393] |
Mon, 28 September 2009 14:13 |
J. Andres Pizarro Messages: 2 Registered: July 2009 |
Junior Member |
|
|
Good evening,
I am trying to add code folding feature to a projection viewer inside a view. But i'm having some problems to understand how does this feature works, so i ask for your help.
What i have is a ProjectionViewer instance, providing it a Document object with a ProjectionAnnotationModel, specifying the positions where the ProjectionAnnotation instances are, that is...
Document doc = new Document(text);
ProjectionModelFactory factory = new ProjectionModelFactory(doc);
m_sourceViewer.setDocument(doc, factory.getAnnotationModel());
m_verticalRuler.setModel(factory.getAnnotationModel());
When the viewer is shown, projection annotation icons are shown, but when i click on them nothing happens.
I also installed a ProjectionSupport object, and I enabled projection in the widget. But still nothing happens...
Can anyone of you give me a hint about what to do next?
Thanks!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03690 seconds