blob: 60931e7a6d457487922bb46ff373ee7d72d02fc2 (
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.tcf.te.ui.views.internal;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.tcf.te.ui.views.interfaces.IRoot;
/**
* 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() {
}
}
|