2010-07-12 Francois Chouinard <fchouinar@gmail.com> Contribution for Bug319428...
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / project / dialogs / DialogTraceContentProvider.java
1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.views.project.dialogs;
14
15 import org.eclipse.jface.viewers.IStructuredContentProvider;
16 import org.eclipse.jface.viewers.Viewer;
17 import org.eclipse.linuxtools.tmf.ui.views.project.model.TmfTraceFolderNode;
18
19 /**
20 * <b><u>TmfTracesContentProvider</u></b>
21 * <p>
22 * TODO: Implement me. Please.
23 */
24 public class DialogTraceContentProvider implements IStructuredContentProvider {
25
26 /* (non-Javadoc)
27 * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
28 */
29 public Object[] getElements(Object inputElement) {
30 if (inputElement instanceof TmfTraceFolderNode) {
31 TmfTraceFolderNode folder = (TmfTraceFolderNode) inputElement;
32 return folder.getTraces();
33 }
34 return null;
35 }
36
37 /* (non-Javadoc)
38 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
39 */
40 public void dispose() {
41 // TODO Auto-generated method stub
42 }
43
44 /* (non-Javadoc)
45 * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
46 */
47 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
48 // TODO Auto-generated method stub
49 }
50
51 }
This page took 0.031362 seconds and 5 git commands to generate.