XtextEditor manipulation [message #1059996] |
Wed, 22 May 2013 09:30  |
Eclipse User |
|
|
|
Hello everyone,
could someone help me with the following problem, please:
I want to be able when I'm pressing in a view (like the outline) on a object from my model to be able to show in the editor only that element + subelements and the rest of the things in the editor I would like to have them collapsed or grayed.
Something like this:
View:
and if I click on Red in the editor should show me:
+myLanguage
Red name id
subelementOfRed name id
subelement2OfRed id
+code
Red name id
subelementOfRed name id
+code
the + is for collapse code
More info: now I have the XtextEditor and the IXtextDocument, I got also the model from : IXTextDocument.readOnly(new IUnitOfWork<Object, XtextResource>()).
But I'm a little stuck of how should I make this thing to collapse in between (I get the right elements from the model)
Thanks in advance!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03764 seconds