KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > mapping > MappingPlugin


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: MappingPlugin.java,v 1.5 2005/06/08 06:21:43 nickb Exp $
16  */

17 package org.eclipse.emf.mapping;
18
19
20 import org.eclipse.emf.common.EMFPlugin;
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 Mapping edit plugin.
27  * <!-- begin-user-doc -->
28  * <!-- end-user-doc -->
29  * @generated
30  */

31 public final class MappingPlugin 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 MappingPlugin INSTANCE = new MappingPlugin();
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 NOT
54    */

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

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

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

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

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