KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > mapping > ecore2ecore > presentation > Ecore2EcoreEditorPlugin


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2004-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: Ecore2EcoreEditorPlugin.java,v 1.5 2005/06/08 06:23:41 nickb Exp $
16  */

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

35 public final class Ecore2EcoreEditorPlugin extends EMFPlugin
36 {
37   /**
38    * Keep track of the singleton.
39    * <!-- begin-user-doc -->
40    * <!-- end-user-doc -->
41    * @generated
42    */

43   public static final Ecore2EcoreEditorPlugin INSTANCE = new Ecore2EcoreEditorPlugin();
44
45   /**
46    * Keep track of the singleton.
47    * <!-- begin-user-doc -->
48    * <!-- end-user-doc -->
49    * @generated
50    */

51   private static Implementation plugin;
52
53   /**
54    * Create the instance.
55    * <!-- begin-user-doc -->
56    * <!-- end-user-doc -->
57    * @generated
58    */

59   public Ecore2EcoreEditorPlugin()
60   {
61     super
62       (new ResourceLocator []
63        {
64          MappingPlugin.INSTANCE,
65          EcoreEditPlugin.INSTANCE,
66        });
67   }
68
69   /**
70    * Returns the singleton instance of the Eclipse plugin.
71    * <!-- begin-user-doc -->
72    * <!-- end-user-doc -->
73    * @return the singleton instance.
74    * @generated
75    */

76   public ResourceLocator getPluginResourceLocator()
77   {
78     return plugin;
79   }
80
81   /**
82    * Returns the singleton instance of the Eclipse plugin.
83    * <!-- begin-user-doc -->
84    * <!-- end-user-doc -->
85    * @return the singleton instance.
86    * @generated
87    */

88   public static Implementation getPlugin()
89   {
90     return plugin;
91   }
92
93   /**
94    * The actual implementation of the Eclipse <b>Plugin</b>.
95    * <!-- begin-user-doc -->
96    * <!-- end-user-doc -->
97    * @generated
98    */

99   public static class Implementation extends EclipsePlugin
100   {
101     /**
102      * Creates an instance.
103      * <!-- begin-user-doc -->
104      * <!-- end-user-doc -->
105      * @generated
106      */

107     public Implementation()
108     {
109       super();
110
111       // Remember the static instance.
112
//
113
plugin = this;
114     }
115   }
116 }
Popular Tags