01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: * Joe Bowbeer (jozart@blarg.net) - removed dependency on runtime compatibility layer (bug 74526)
11: *******************************************************************************/package org.eclipse.ui.examples.propertysheet;
12:
13: import org.eclipse.ui.plugin.AbstractUIPlugin;
14:
15: /**
16: * This is the top-level class of the property sheet example.
17: *
18: * @see AbstractUIPlugin for additional information on UI plugins
19: */
20: public class PropertySheetPlugin extends AbstractUIPlugin {
21: // Default instance of the receiver
22: private static PropertySheetPlugin inst;
23:
24: /**
25: * Create the PropertySheet plugin and cache its default instance
26: */
27: public PropertySheetPlugin() {
28: if (inst == null)
29: inst = this ;
30: }
31:
32: /**
33: * Returns the plugin singleton.
34: *
35: * @return the default PropertySheetPlugin instance
36: */
37: static public PropertySheetPlugin getDefault() {
38: return inst;
39: }
40: }
|