KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > sdo > presentation > SDOEditorPlugin


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2003-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: SDOEditorPlugin.java,v 1.4 2005/06/08 06:21:18 nickb Exp $
16  */

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

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

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

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

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

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

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

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

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