KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > runtime > MetaDataKeeper


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.runtime;
12
13 import org.eclipse.core.internal.runtime.DataArea;
14
15 /**
16  * The class contains a set of utilities working platform metadata area.
17  * This class can only be used if OSGi plugin is available.
18  *
19  * Copied from InternalPlatform as of August 30, 2005.
20  * @since org.eclipse.equinox.common 3.2
21  */

22 public class MetaDataKeeper {
23
24     private static DataArea metaArea = null;
25
26     /**
27      * Returns the object which defines the location and organization
28      * of the platform's meta area.
29      */

30     public static DataArea getMetaArea() {
31         if (metaArea != null)
32             return metaArea;
33
34         metaArea = new DataArea();
35         return metaArea;
36     }
37 }
38
Popular Tags