Changeset 67 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src
- Timestamp:
- 05/14/14 14:22:53 (11 years ago)
- Location:
- v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/labeling/EbnfLabelProvider.xtend
r61 r67 5 5 6 6 import com.google.inject.Inject 7 import de.ugoe.cs.swe.bnftools.ebnf.ImportSection 8 import de.ugoe.cs.swe.bnftools.ebnf.Rule 9 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry 7 10 8 11 /** … … 18 21 } 19 22 20 // Labels and icons can be computed like this: 23 def text(ImportSection sec){ 24 'Imports' 25 } 21 26 22 // def text(Greeting ele) { 23 // 'A greeting to ' + ele.name 24 // } 25 // 26 // def image(Greeting ele) { 27 // 'Greeting.gif' 28 // } 27 def text(BnfEntry entry){ 28 'Rule' 29 } 29 30 } -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/outline/EbnfOutlineTreeProvider.xtend
r66 r67 3 3 */ 4 4 package de.ugoe.cs.swe.bnftools.ui.outline 5 6 import org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode 7 import de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf 8 import de.ugoe.cs.swe.bnftools.ebnf.Import 9 import org.eclipse.xtext.ui.editor.outline.IOutlineNode 10 import org.eclipse.xtext.AbstractElement 11 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry 12 import de.ugoe.cs.swe.bnftools.ebnf.ImportSection 13 import de.ugoe.cs.swe.bnftools.ebnf.Rule 5 14 6 15 /** … … 10 19 */ 11 20 class EbnfOutlineTreeProvider extends org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider { 12 21 def void _createChildren(DocumentRootNode parentNode, EtsiBnf bnf) { 22 createNode(parentNode,bnf); 23 } 24 25 def boolean _isLeaf(Rule rule) { 26 return true; 27 } 28 13 29 }
Note: See TracChangeset
for help on using the changeset viewer.