|
Last change
on this file since 67 was
67,
checked in by hkaulbersch, 12 years ago
|
|
Minimized Outline:
-<unnamed> Removed
-Rule is the lowest shown entity
|
|
File size:
871 bytes
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * generated by Xtext |
|---|
| 3 | */
|
|---|
| 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
|
|---|
| 14 |
|
|---|
| 15 | /** |
|---|
| 16 | * Customization of the default outline structure. |
|---|
| 17 | * |
|---|
| 18 | * see http://www.eclipse.org/Xtext/documentation.html#outline |
|---|
| 19 | */
|
|---|
| 20 | class EbnfOutlineTreeProvider extends org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider {
|
|---|
| 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 |
|
|---|
| 29 | }
|
|---|
Note: See
TracBrowser
for help on using the repository browser.