|
|
|
|
|
Re: HighlightReconciler doesn't highlight [message #547467 is a reply to message #546985] |
Sat, 17 July 2010 07:26 |
Timotei Mising name Messages: 89 Registered: March 2010 |
Member |
|
|
So, basically i have the following:
[tohigh]
With my custom bracket matching I highlight: [tohigh]
But, my ISemanticHighlighter higlights this: tohigh
So, in the end it looks like:
[tohigh]
Basically I need a way to know if I should/or not use the SemanticHighlighter. One way I was thinking, can I extend the AbstractNode with a "better" class, and use that, instead of AbstractNode, in my xtext editor/other stuff? I would put another property, and based on that I would hihglight/or not with my SemanticHighlgihter.
Thanks,
Timo
|
|
|
Re: HighlightReconciler doesn't highlight [message #547468 is a reply to message #546985] |
Sat, 17 July 2010 08:40 |
Timotei Mising name Messages: 89 Registered: March 2010 |
Member |
|
|
I tried the following:
public class EnhacedLeafNode extends LeafNodeImpl
and then, in MYDSLUiModule.java:
public Class<? extends LeafNodeImpl> bindLeafNode()
{
return EnhacedLeafNode.class;
}
But that doesn't work, I get exceptions when the editor triies to be instantiated.
UPDATE:
I've tried another route to do this, with this:
public Class<? extends MergingHighlightedPositionAcceptor> bindMergingHighlightedPositionAcceptor()
{
return WMLMergingHighlightedPositionAcceptor.class;
}
But it neither works.
Do I miss something? It looks like guice can't "override" used classes, only Interfaces?
Timo
[Updated on: Sat, 17 July 2010 10:17] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03479 seconds