KickJava   Java API By Example, From Geeks To Geeks.

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


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>importWizards</code>
18  * extension point.
19  *
20  * @since 3.1
21  */

22 public class ImportWizardRegistry extends AbstractExtensionWizardRegistry {
23
24     private static ImportWizardRegistry 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 ImportWizardRegistry getInstance() {
32         if (singleton == null) {
33             singleton = new ImportWizardRegistry();
34         }
35         return singleton;
36     }
37         
38     
39     /**
40      *
41      */

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

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

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