Debian Codegraph @

plugins/org.eclipse.emf.databinding.edit/src/org/eclipse/emf/databinding/edit/DataBindingEditPlugin.java

raw
1 /**
2 * Copyright (c) 2007 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v2.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v20.html
7 *
8 * Contributors:
9 * IBM - Initial API and implementation
10 */
11 package org.eclipse.emf.databinding.edit;
12
13 import org.eclipse.emf.common.EMFPlugin;
14
15 import org.eclipse.emf.common.util.ResourceLocator;
16
17
18 /**
19 * <p><b>PROVISIONAL:</b> This API is subject to arbitrary change, including renaming or removal.</p>
20 * This is the central singleton for the Data binding Edit plugin.
21 */
22 public final class DataBindingEditPlugin extends EMFPlugin
23 {
24 /**
25 * Keep track of the singleton.
26 */
27 public static final DataBindingEditPlugin INSTANCE = new DataBindingEditPlugin();
28
29 /**
30 * Keep track of the singleton.
31 */
32 private static Implementation plugin;
33
34 /**
35 * Create the instance.
36 */
37 public DataBindingEditPlugin()
38 {
39 super(new ResourceLocator []{});
40 }
41
42 /**
43 * Returns the singleton instance of the Eclipse plugin.
44 * @return the singleton instance.
45 */
46 @Override
47 public ResourceLocator getPluginResourceLocator()
48 {
49 return plugin;
50 }
51
52 /**
53 * Returns the singleton instance of the Eclipse plugin.
54 * @return the singleton instance.
55 */
56 public static Implementation getPlugin()
57 {
58 return plugin;
59 }
60
61 /**
62 * The actual implementation of the Eclipse <b>Plugin</b>.
63 */
64 public static class Implementation extends EclipsePlugin
65 {
66 /**
67 * Creates an instance.
68 */
69 public Implementation()
70 {
71 super();
72
73 // Remember the static instance.
74 //
75 plugin = this;
76 }
77 }
78 }