(no commit message)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / resources / model / ResourceModelFactory.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 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org.eclipse.linuxtools.lttng.ui.views.resources.model;
13
14 import org.eclipse.linuxtools.lttng.ui.views.common.ParamsUpdater;
15
16 /**
17 * Instantiates the entry point classes to build the data model for this view
18 *
19 * @author alvaro
20 *
21 */
22 public class ResourceModelFactory {
23 // ========================================================================
24 // Data
25 // ========================================================================
26 private static ResourceContainer resContainer = null;
27 private static ParamsUpdater updater = null;
28
29
30 // ========================================================================
31 // Methods
32 // ========================================================================
33 /**
34 * Get Process data container
35 * @return
36 */
37 public static ResourceContainer getResourceContainer() {
38 if (resContainer == null) {
39 resContainer = new ResourceContainer();
40 }
41 return resContainer;
42 }
43
44
45 public static ParamsUpdater getParamsUpdater() {
46 if (updater == null) {
47 updater = new ParamsUpdater();
48 }
49 return updater;
50 }
51
52 }
This page took 0.03044 seconds and 5 git commands to generate.