source: default/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/labeling/EbnfLabelProvider.java

Last change on this file was 5, checked in by zeiss, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 725 bytes
Line 
1/*
2* generated by Xtext
3*/
4package de.ugoe.cs.swe.bnftools.ui.labeling;
5
6import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
7import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider;
8
9import com.google.inject.Inject;
10
11/**
12 * Provides labels for a EObjects.
13 *
14 * see http://www.eclipse.org/Xtext/documentation/latest/xtext.html#labelProvider
15 */
16public class EbnfLabelProvider extends DefaultEObjectLabelProvider {
17
18        @Inject
19        public EbnfLabelProvider(AdapterFactoryLabelProvider delegate) {
20                super(delegate);
21        }
22
23/*
24        //Labels and icons can be computed like this:
25       
26        String text(MyModel ele) {
27          return "my "+ele.getName();
28        }
29         
30    String image(MyModel ele) {
31      return "MyModel.gif";
32    }
33*/
34}
Note: See TracBrowser for help on using the repository browser.