|Re: selection of a rule's content [message #760372 is a reply to message #760178]
||Fri, 02 December 2011 08:22
| Jan Koehnlein
Registered: July 2009
Have a look at the way the IOutlineNodes are created in the |
DefaultOutlineTreeProvider: Each node has stores two regions:
The significantRegion is what is selected in the editor when the node is
double-clicked, while the fullTextRegion triggers the selection of the
node in the outline node when "Link with editor" is on and the selection
is changing in the text editor.
You might also have a look at the ILocationInFileProvider.
Am 01.12.11 15:43, schrieb Vlad Dumitrescu:
> When I select something in the outline, it seems that sometimes the
> whole construct is highlighted in the editor and sometimes only the
> first literal in it.
> For example given
> items+=Expression (',' items+=Expression)*;
> only the first comma is highlighted when selecting the expressions node,
> unless there is only one item and then it gets all highlighted.
> Could someone please tell why is this so and how can I make it always
> select all the node's contents?
> best regards,
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Get professional support from the Xtext committers at www.typefox.io
Powered by FUDForum
. Page generated in 0.01482 seconds