/* * generated by Xtext */ package net.certware.planning.cpn.ui.labeling; import net.certware.planning.cpn.cpnDsl.Allocation; import net.certware.planning.cpn.cpnDsl.ArgumentModels; import net.certware.planning.cpn.cpnDsl.Plan; import net.certware.planning.cpn.cpnDsl.Plans; import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider; import com.google.inject.Inject; /** * Provides labels for a EObjects. * * see http://www.eclipse.org/Xtext/documentation/latest/xtext.html#labelProvider */ public class CpnDslLabelProvider extends DefaultEObjectLabelProvider { @Inject public CpnDslLabelProvider(AdapterFactoryLabelProvider delegate) { super(delegate); } String image(Plan plan) { return "plan.gif"; } String image(Plans plans) { return "cpn.gif"; } String image(ArgumentModels am) { return "import.gif"; } String image(Allocation allocation) { return "isolation.gif"; } /* //Labels and icons can be computed like this: String text(MyModel ele) { return "my "+ele.getName(); } String image(MyModel ele) { return "MyModel.gif"; } */ }