Changeset 54 in default for trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src
- Timestamp:
- 12/02/10 10:33:53 (14 years ago)
- Location:
- trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/quickfix/modifications/RemovePassthroughRuleModification.java
r5 r54 48 48 resourceDescriptions, editor); 49 49 50 System.out.println(references); 51 50 52 List<DeclarationReferencesPair> nodePairs = new ArrayList<DeclarationReferencesPair>(); 51 53 nodePairs.add(new DeclarationReferencesPair((CompositeNode) declarationNode.getParserNode(), references)); -
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/utils/URIFragmentResolver.java
r5 r54 18 18 public CompositeNode exec(XtextResource state) throws Exception { 19 19 EObject o = state.getEObject(uriFragment); 20 21 if (o == null) 22 return null; 23 20 24 NodeAdapter node = NodeUtil.getNodeAdapter(o); 21 25 -
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/utils/Utils.java
r17 r54 106 106 //TODO: dieser check ignoriert links zu anderen dateien wg. exception 107 107 if ((matchingReferenceDescription instanceof org.eclipse.xtext.resource.impl.DefaultReferenceDescription) || (matchingReferenceDescription instanceof ReferenceDescriptionImpl)){ 108 CompositeNode node = editor.getDocument().readOnly( 109 new URIFragmentResolver(matchingReferenceDescription 110 .getSourceEObjectUri().fragment())); 111 references.add(node); 108 URIFragmentResolver uriFragmentResolver = new URIFragmentResolver(matchingReferenceDescription 109 .getSourceEObjectUri().fragment()); 110 CompositeNode node = editor.getDocument().readOnly(uriFragmentResolver); 111 if (node != null) 112 references.add(node); 112 113 } 113 114 }
Note: See TracChangeset
for help on using the changeset viewer.