| /** |
| * Copyright (c) 2018 CEA. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * CEA - initial API and implementation and/or initial documentation |
| */ |
| /* |
| * generated by Xtext 2.9.1 |
| */ |
| package org.eclipse.sensinact.studio.language.ui.labeling |
| |
| import com.google.inject.Inject |
| import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
| import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider |
| |
| /** |
| * Provides labels for EObjects. |
| * |
| * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#label-provider |
| */ |
| class SensinactLabelProvider extends DefaultEObjectLabelProvider { |
| |
| @Inject |
| new(AdapterFactoryLabelProvider delegate) { |
| super(delegate); |
| } |
| |
| // Labels and icons can be computed like this: |
| |
| // def text(Greeting ele) { |
| // 'A greeting to ' + ele.name |
| // } |
| // |
| // def image(Greeting ele) { |
| // 'Greeting.gif' |
| // } |
| } |