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 * Alvaro Sanchez-Leon - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.viewers
;
15 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.ITimeAnalysisViewer
;
16 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.TmfTimeAnalysisProvider
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.TmfTimeAnalysisViewer
;
18 import org
.eclipse
.swt
.widgets
.Composite
;
21 * <b><u>TmfWidgetFactory</u></b>
24 * TODO: Generalize when extension points are introduced
25 * TODO: Today, it is specific for the TimeAnalysis widget
27 public class TmfViewerFactory
{
29 // public static ITmfWidget createWidget(String id, Composite parent) {
33 public static ITimeAnalysisViewer
createWidget(Composite parent
,
34 TmfTimeAnalysisProvider provider
) {
35 return new TmfTimeAnalysisViewer(parent
, provider
);