Last change
on this file since 67 was
67,
checked in by hkaulbersch, 10 years ago
|
Minimized Outline:
-<unnamed> Removed
-Rule is the lowest shown entity
|
File size:
649 bytes
|
Line | |
---|
1 | /* |
---|
2 | * generated by Xtext |
---|
3 | */ |
---|
4 | package de.ugoe.cs.swe.bnftools.ui.labeling |
---|
5 | |
---|
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
|
---|
10 |
|
---|
11 | /** |
---|
12 | * Provides labels for a EObjects. |
---|
13 | * |
---|
14 | * see http://www.eclipse.org/Xtext/documentation.html#labelProvider |
---|
15 | */ |
---|
16 | class EbnfLabelProvider extends org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider { |
---|
17 | |
---|
18 | @Inject |
---|
19 | new(org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider delegate) { |
---|
20 | super(delegate); |
---|
21 | } |
---|
22 | |
---|
23 | def text(ImportSection sec){ |
---|
24 | 'Imports' |
---|
25 | } |
---|
26 | |
---|
27 | def text(BnfEntry entry){ |
---|
28 | 'Rule' |
---|
29 | } |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.