1 /*******************************************************************************
2 * Copyright (c) 2010, 2014 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.ui
.project
.model
;
16 import java
.util
.List
;
18 import org
.eclipse
.core
.resources
.IResource
;
19 import org
.eclipse
.core
.runtime
.IPath
;
20 import org
.eclipse
.swt
.graphics
.Image
;
23 * The TMF project model interface.
25 * The TMF tracing project is integrated in the Common Navigator framework.
26 * Each tracing tree element has to implement this interface to be visible in the
30 * @author Francois Chouinard
32 public interface ITmfProjectModelElement
{
35 * Returns the name of the project model element.
37 * @return the name of the project element.
42 * Returns the resource associated with the project model element.
44 * @return the model resource.
46 IResource
getResource();
49 * Returns the path of the project model resource.
51 * @return the resource path.
56 * Returns the URI (location) of the resource.
58 * @return the resource URI.
63 * Returns the project model element.
65 * @return the project model element.
67 TmfProjectElement
getProject();
70 * Returns the parent of this model element.
72 * @return the parent of this model element.
74 ITmfProjectModelElement
getParent();
77 * Returns a list of children model elements.
79 * @return a list of children model elements.
81 List
<ITmfProjectModelElement
> getChildren();
84 * Method to request to refresh the project.
89 * Returns the icon of this element.
97 * Returns the text of the label of this element.
99 * @return The label text
102 default String
getLabelText() {
107 * Returns whether this model element has children or not.
109 * @return <code>true</code> if this model element has children else
112 default boolean hasChildren() {
113 return !getChildren().isEmpty();
This page took 0.032947 seconds and 5 git commands to generate.