Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319007 - [Documentation] Bug in code snippet for semantic highlighting
Summary: [Documentation] Bug in code snippet for semantic highlighting
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: SR1   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 09:11 EDT by Lothar Wendehals CLA
Modified: 2017-09-19 15:46 EDT (History)
3 users (show)

See Also:
sebastian.zarnekow: helios+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lothar Wendehals CLA 2010-07-06 09:11:22 EDT
Build Identifier: 20100617-1415

The code in the snippet is inconsistent:

  for (AbstractNode abstractNode : allNodes) {
    if (abstractNode.getGrammarElement() instanceof CrossReference) {
>>>      acceptor.addPosition(node.getOffset(), node.getLength(), <<<
        MyHighlightingConfiguration.CROSS_REF);
    }
  }

should be:
>>>      acceptor.addPosition(abstractNode.getOffset(), abstractNode.getLength(), <<<


Reproducible: Always
Comment 1 Jan Koehnlein CLA 2010-08-05 11:13:58 EDT
Fixed in HEAD.
Comment 2 Karsten Thoms CLA 2017-09-19 15:46:38 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.