Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f64218cd54053c97857625af68a4b31b8b1fc0f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*******************************************************************************
 * Copyright (c) 2011 Wind River Systems, Inc. and others. All rights reserved.
 * This program and the accompanying materials are made available under the terms
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tm.te.ui.views.internal;

import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.tm.te.ui.views.interfaces.IRoot;

/**
 * Target Explorer view root node implementation
 */
public class ViewRoot extends PlatformObject implements IRoot {

	/*
	 * Thread save singleton instance creation.
	 */
	private static class LazyInstance {
		public static ViewRoot instance = new ViewRoot();
	}

	/**
	 * Returns the singleton view root instance.
	 */
	public static ViewRoot getInstance() {
		return LazyInstance.instance;
	}

	/**
	 * Constructor.
	 */
	/* default */ ViewRoot() {
	}
}

Back to the top