KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > codegen > ecore > genmodel > provider > GenModelEditPlugin


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: GenModelEditPlugin.java,v 1.6 2005/06/08 06:17:51 nickb Exp $
16  */

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

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

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

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

53   public GenModelEditPlugin()
54   {
55     super
56       (new ResourceLocator []
57        {
58          EcoreEditPlugin.INSTANCE,
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