KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > wizards > ExportWizardRegistry


1 /*******************************************************************************
2  * Copyright (c) 2004, 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.ui.internal.wizards;
12
13 import org.eclipse.ui.PlatformUI;
14 import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
15
16 /**
17  * Registry that contains wizards contributed via the <code>exportWizards</code>
18  * extension point.
19  *
20  * @since 3.1
21  */

22 public class ExportWizardRegistry extends AbstractExtensionWizardRegistry {
23
24     private static ExportWizardRegistry singleton;
25     
26     /**
27      * Return the singleton instance of this class.
28      *
29      * @return the singleton instance of this class
30      */

31     public static synchronized ExportWizardRegistry getInstance() {
32         if (singleton == null) {
33             singleton = new ExportWizardRegistry();
34         }
35         return singleton;
36     }
37     
38     /**
39      *
40      */

41     public ExportWizardRegistry() {
42         super();
43     }
44
45     /* (non-Javadoc)
46      * @see org.eclipse.ui.internal.wizards.AbstractExtensionWizardRegistry#getExtensionPoint()
47      */

48     protected String JavaDoc getExtensionPoint() {
49         return IWorkbenchRegistryConstants.PL_EXPORT;
50     }
51
52     /* (non-Javadoc)
53      * @see org.eclipse.ui.internal.wizards.AbstractExtensionWizardRegistry#getPlugin()
54      */

55     protected String JavaDoc getPlugin() {
56         return PlatformUI.PLUGIN_ID;
57     }
58 }
59
Popular Tags