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 (alvsan09@gmail.com) - Initial API and implementation
11 * Michel Dagenais (michel.dagenais@polymtl.ca) - Reference C implementation, used with permission
12 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.lttng
.ui
.views
.resources
.model
;
15 import org
.eclipse
.linuxtools
.internal
.lttng
.ui
.views
.common
.ParamsUpdater
;
18 * Instantiates the entry point classes to build the data model for this view
23 public class ResourceModelFactory
{
24 // ========================================================================
26 // ========================================================================
27 private static ResourceContainer resContainer
= null;
28 private static ParamsUpdater updater
= null;
31 // ========================================================================
33 // ========================================================================
35 * Get Process data container
38 public static ResourceContainer
getResourceContainer() {
39 if (resContainer
== null) {
40 resContainer
= new ResourceContainer();
46 public static ParamsUpdater
getParamsUpdater() {
47 if (updater
== null) {
48 updater
= new ParamsUpdater();