Commit | Line | Data |
---|---|---|
6e651d8b | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2013, 2014 Ericsson |
6e651d8b MAL |
3 | * |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Marc-Andre Laperle - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.internal.tmf.ui.project.wizards.tracepkg; |
6e651d8b | 14 | |
6e651d8b | 15 | import org.eclipse.swt.graphics.Image; |
2bdf0193 | 16 | import org.eclipse.tracecompass.internal.tmf.ui.Activator; |
6e651d8b MAL |
17 | |
18 | /** | |
19 | * A trace package element used for grouping supplementary file under a single | |
20 | * subtree | |
21 | * | |
22 | * @author Marc-Andre Laperle | |
23 | */ | |
24 | public class TracePackageSupplFilesElement extends TracePackageElement { | |
25 | ||
26 | private static final String SUPPL_FILE_ICON_PATH = "icons/obj16/thread_obj.gif"; //$NON-NLS-1$ | |
27 | ||
28 | /** | |
29 | * Construct a new TracePackageSupplFilesElement instance | |
30 | * | |
31 | * @param parent | |
32 | * the parent of this element, can be set to null | |
33 | */ | |
34 | public TracePackageSupplFilesElement(TracePackageElement parent) { | |
35 | super(parent); | |
36 | } | |
37 | ||
38 | @Override | |
39 | public String getText() { | |
40 | return Messages.TracePackage_SupplementaryFiles; | |
41 | } | |
42 | ||
43 | @Override | |
44 | public Image getImage() { | |
45 | return Activator.getDefault().getImageFromImageRegistry(SUPPL_FILE_ICON_PATH); | |
46 | } | |
47 | } |