KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > mapping > ecore2xml > ui > Ecore2XMLUIPlugin


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: Ecore2XMLUIPlugin.java,v 1.1 2005/03/18 21:04:26 khussey Exp $
16  */

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

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

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

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

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

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

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

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

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