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 74528)
11: *******************************************************************************/package org.eclipse.ui.examples.readmetool;
12:
13: import org.eclipse.ui.plugin.AbstractUIPlugin;
14:
15: /**
16: * This is the top-level class of the Readme plugin tool.
17: *
18: * @see AbstractUIPlugin for additional information on UI plugins
19: */
20: public class ReadmePlugin extends AbstractUIPlugin {
21:
22: public static final String PLUGIN_ID = "org.eclipse.ui.examples.readmetool"; //$NON-NLS-1$
23:
24: /**
25: * Default instance of the receiver
26: */
27: private static ReadmePlugin inst;
28:
29: /**
30: * Creates the Readme plugin and caches its default instance
31: */
32: public ReadmePlugin() {
33: if (inst == null)
34: inst = this ;
35: }
36:
37: /**
38: * Gets the plugin singleton.
39: *
40: * @return the default ReadmePlugin instance
41: */
42: static public ReadmePlugin getDefault() {
43: return inst;
44: }
45:
46: }
|