blob: 09a43be7a3812bd41387de2c44eb7961d069c4ad [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2017 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* CEA LIST Initial API and implementation
*****************************************************************************/
package org.eclipse.papyrus.moka.engine.uml.debug.data.presentation;
import org.eclipse.papyrus.moka.engine.uml.debug.UMLDebugPlugin;
import org.eclipse.swt.graphics.Image;
public class TimeEventOccurrenceVariableLabelProvider extends UMLDebugLabelProvider{
public final static String TIME_EVENT_ICON = "resources/icons/time.png";
private final static String TIME_EVENT_TEXT = "Time Event";
@Override
public String getText(Object element) {
return TIME_EVENT_TEXT;
}
@Override
public Image getImage(Object element) {
if(element != null){
return UMLDebugPlugin.getDefault().getImageRegistry().get(TIME_EVENT_ICON);
}
return null;
}
}