1 /*******************************************************************************
2 * Copyright (c) 2009 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
.linuxtools
.lttng
.ui
.views
.project
.model
;
15 import org
.eclipse
.core
.internal
.resources
.Folder
;
16 import org
.eclipse
.core
.resources
.IFolder
;
17 import org
.eclipse
.core
.resources
.IResource
;
18 import org
.eclipse
.core
.runtime
.CoreException
;
21 * <b><u>LTTngExperimentFolder</u></b>
23 * TODO: Implement me. Please.
25 @SuppressWarnings("restriction")
26 public class LTTngExperimentFolder
{
28 private final Folder fExperimentFolder
;
29 private final LTTngProject fProject
;
30 private LTTngExperimentEntry
[] experiments
= new LTTngExperimentEntry
[0];
35 public LTTngExperimentFolder(LTTngProject project
, Folder folder
) {
36 fExperimentFolder
= folder
;
39 IResource
[] resources
= folder
.members();
40 int nbExperiments
= resources
.length
;
41 experiments
= new LTTngExperimentEntry
[nbExperiments
];
42 for (int i
= 0; i
< nbExperiments
; i
++) {
43 if (resources
[i
] instanceof IFolder
) {
44 experiments
[i
] = new LTTngExperimentEntry(project
, (IFolder
) resources
[i
]);
47 } catch (CoreException e
) {
48 // TODO Auto-generated catch block
56 public LTTngProject
getProject() {
63 public Folder
getFolder() {
64 return fExperimentFolder
;
70 public String
getName() {
71 return fExperimentFolder
.getName();
76 public LTTngExperimentEntry
[] getExperiments() {
This page took 0.031199 seconds and 5 git commands to generate.