Commit | Line | Data |
---|---|---|
b0d3496e ASL |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2009 Ericsson\r | |
3 | * \r | |
4 | * All rights reserved. This program and the accompanying materials are\r | |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
8 | * \r | |
9 | * Contributors:\r | |
10 | * Alvaro Sanchez-Leon - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui.viewers;\r | |
14 | \r | |
15 | import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.ITimeAnalysisViewer;\r | |
16 | import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.TmfTimeAnalysisProvider;\r | |
17 | import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.TmfTimeAnalysisViewer;\r | |
18 | import org.eclipse.swt.widgets.Composite;\r | |
19 | \r | |
20 | /**\r | |
21 | * <b><u>TmfWidgetFactory</u></b>\r | |
22 | * <p>\r | |
23 | *\r | |
24 | * TODO: Generalize when extension points are introduced\r | |
25 | * TODO: Today, it is specific for the TimeAnalysis widget\r | |
26 | */\r | |
27 | public class TmfViewerFactory {\r | |
28 | \r | |
29 | // public static ITmfWidget createWidget(String id, Composite parent) {\r | |
30 | // return null;\r | |
31 | // }\r | |
32 | \r | |
33 | public static ITimeAnalysisViewer createViewer(Composite parent,\r | |
34 | TmfTimeAnalysisProvider provider) {\r | |
35 | return new TmfTimeAnalysisViewer(parent, provider);\r | |
36 | }\r | |
37 | \r | |
38 | }\r |