| /***************************************************************************** |
| * Copyright (c) 2016 CEA LIST and others. |
| * |
| * 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 LIST - Initial API and implementation |
| * |
| *****************************************************************************/ |
| package org.eclipse.papyrus.interoperability.rpy.parser.ui.labeling |
| |
| //import org.eclipse.xtext.resource.IEObjectDescription |
| |
| /** |
| * Provides labels for IEObjectDescriptions and IResourceDescriptions. |
| * |
| * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#label-provider |
| */ |
| class RpySyntaxDescriptionLabelProvider extends org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider { |
| |
| // Labels and icons can be computed like this: |
| |
| // override text(IEObjectDescription ele) { |
| // ele.name.toString |
| // } |
| // |
| // override image(IEObjectDescription ele) { |
| // ele.EClass.name + '.gif' |
| // } |
| } |