1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.tmf
.ui
.project
.model
;
12 import org
.eclipse
.core
.resources
.IResource
;
13 import org
.eclipse
.swt
.graphics
.Image
;
16 * Project model element for the "Reports" element, which lists the analysis
17 * reports that were generated for this trace.
19 * It acts like a directory for the reports, where each one can be opened or
22 * @author Alexandre Montplaisir
25 public class TmfReportsElement
extends TmfProjectModelElement
{
28 * Element of the resource path
30 public static final String PATH_ELEMENT
= ".reports"; //$NON-NLS-1$
32 private static final String ELEMENT_NAME
= Messages
.TmfReportsElement_Name
;
38 * The resource to be associated with this element
42 protected TmfReportsElement(IResource resource
, TmfCommonProjectElement parent
) {
43 super(ELEMENT_NAME
, resource
, parent
);
47 public TmfCommonProjectElement
getParent() {
48 /* Type enforced at constructor */
49 return (TmfCommonProjectElement
) super.getParent();
53 public Image
getIcon() {
54 return TmfProjectModelIcons
.REPORTS_ICON
;
58 protected void refreshChildren() {
59 /* No children at the moment */