KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > sdo > SDOPlugin


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: SDOPlugin.java,v 1.2 2005/06/15 10:55:06 emerks Exp $
16  */

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

29 public final class SDOPlugin 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 SDOPlugin INSTANCE = new SDOPlugin();
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 SDOPlugin()
54   {
55     super(new ResourceLocator [] {});
56   }
57
58   /**
59    * Returns the singleton instance of the Eclipse plugin.
60    * <!-- begin-user-doc -->
61    * <!-- end-user-doc -->
62    * @return the singleton instance.
63    * @generated
64    */

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

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

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

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