KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > importer > ImporterPlugin


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2005 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: ImporterPlugin.java,v 1.3 2005/06/08 06:11:55 nickb Exp $
16  */

17 package org.eclipse.emf.importer;
18
19 import org.eclipse.emf.common.EMFPlugin;
20 import org.eclipse.emf.common.util.ResourceLocator;
21
22
23 /**
24  * The <b>Plugin</b> for the model importer.
25  * @since 2.1.0
26  */

27 public final class ImporterPlugin extends EMFPlugin
28 {
29   /**
30    * The singleton instance of the plugin.
31    */

32   public static final ImporterPlugin INSTANCE = new ImporterPlugin();
33
34   /**
35    * The one instance of this class.
36    */

37   private static Implementation plugin;
38   
39   public static final String JavaDoc ID = "org.eclipse.emf.importer";
40
41   /**
42    * Creates the singleton instance.
43    */

44   private ImporterPlugin()
45   {
46     super
47       (new ResourceLocator []
48        {
49          
50        });
51   }
52
53   /*
54    * Javadoc copied from base class.
55    */

56   public ResourceLocator getPluginResourceLocator()
57   {
58     return plugin;
59   }
60
61   /**
62    * Returns the singleton instance of the Eclipse plugin.
63    * @return the singleton instance.
64    */

65   public static Implementation getPlugin()
66   {
67     return plugin;
68   }
69
70   /**
71    * The actual implementation of the Eclipse <b>Plugin</b>.
72    */

73   public static class Implementation extends EMFPlugin.EclipsePlugin
74   {
75     /**
76      * Creates an instance.
77      */

78     public Implementation()
79     {
80       super();
81
82       // Remember the static instance.
83
//
84
plugin = this;
85     }
86   }
87 }
88
Popular Tags