KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > provider > EcoreEditPlugin


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 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: EcoreEditPlugin.java,v 1.4 2005/06/08 06:15:46 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.provider;
18
19
20 import org.eclipse.emf.common.EMFPlugin;
21 import org.eclipse.emf.common.util.ResourceLocator;
22
23
24 /**
25  * This is the central singleton for the Ecore edit plugin.
26  * <!-- begin-user-doc -->
27  * <!-- end-user-doc -->
28  * @generated
29  */

30 public final class EcoreEditPlugin extends EMFPlugin
31 {
32   /**
33    * Keep track of the singleton.
34    * <!-- begin-user-doc -->
35    * <!-- end-user-doc -->
36    * @generated
37    */

38   public static final EcoreEditPlugin INSTANCE = new EcoreEditPlugin();
39
40   /**
41    * Keep track of the singleton.
42    * <!-- begin-user-doc -->
43    * <!-- end-user-doc -->
44    * @generated
45    */

46   private static Implementation plugin;
47
48   /**
49    * Create the instance.
50    * <!-- begin-user-doc -->
51    * <!-- end-user-doc -->
52    * @generated
53    */

54   public EcoreEditPlugin()
55   {
56     super
57       (new ResourceLocator []
58        {
59        });
60   }
61
62   /**
63    * Returns the singleton instance of the Eclipse plugin.
64    * <!-- begin-user-doc -->
65    * <!-- end-user-doc -->
66    * @return the singleton instance.
67    * @generated
68    */

69   public ResourceLocator getPluginResourceLocator()
70   {
71     return plugin;
72   }
73
74   /**
75    * Returns the singleton instance of the Eclipse plugin.
76    * <!-- begin-user-doc -->
77    * <!-- end-user-doc -->
78    * @return the singleton instance.
79    * @generated
80    */

81   public static Implementation getPlugin()
82   {
83     return plugin;
84   }
85
86   /**
87    * The actual implementation of the Eclipse <b>Plugin</b>.
88    * <!-- begin-user-doc -->
89    * <!-- end-user-doc -->
90    * @generated
91    */

92   public static class Implementation extends EclipsePlugin
93   {
94     /**
95      * Creates an instance.
96      * <!-- begin-user-doc -->
97      * <!-- end-user-doc -->
98      * @generated
99      */

100     public Implementation()
101     {
102       super();
103
104       // Remember the static instance.
105
//
106
plugin = this;
107     }
108   }
109 }
110
Popular Tags