diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend index a6ea8f90..f111c553 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend | |||
@@ -4,6 +4,7 @@ | |||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.labeling | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.labeling |
5 | 5 | ||
6 | import com.google.inject.Inject | 6 | import com.google.inject.Inject |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
7 | import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider | 8 | import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
8 | import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider | 9 | import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider |
9 | 10 | ||
@@ -19,13 +20,7 @@ class CftLanguageLabelProvider extends DefaultEObjectLabelProvider { | |||
19 | super(delegate); | 20 | super(delegate); |
20 | } | 21 | } |
21 | 22 | ||
22 | // Labels and icons can be computed like this: | 23 | def text(MappingDefinition mappingDefinition) { |
23 | 24 | mappingDefinition.pattern?.name | |
24 | // def text(Greeting ele) { | 25 | } |
25 | // 'A greeting to ' + ele.name | ||
26 | // } | ||
27 | // | ||
28 | // def image(Greeting ele) { | ||
29 | // 'Greeting.gif' | ||
30 | // } | ||
31 | } | 26 | } |