1 | public final class DataBindingEditPlugin extends EMFPlugin↵ | | 1 | public final class XMIPlugin extends EMFPlugin ↵
|
2 | {↵ | | 2 | {↵
|
3 | /**↵ | | 3 | /**↵
|
4 | * Keep track of the singleton.↵ | | 4 | * The singleton instance of the plugin.↵
|
5 | */↵ | | 5 | */↵
|
6 | public static final DataBindingEditPlugin INSTANCE = new DataBindingEditPlugin();↵ | | 6 | public static final XMIPlugin INSTANCE = new XMIPlugin();↵
|
|
7 | /**↵ | | 7 | /**↵
|
8 | * Keep track of the singleton.↵ | | 8 | * The one instance of this class.↵
|
9 | */↵ | | 9 | */↵
|
10 | private static Implementation plugin;↵ | | 10 | private static Implementation plugin;↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * Create the instance.↵ | | 12 | * Creates the singleton instance.↵
|
13 | */↵ | | 13 | */↵
|
14 | public DataBindingEditPlugin()↵ | | 14 | private XMIPlugin()↵
|
15 | {↵ | | 15 | {↵
|
16 | super(new ResourceLocator [] {});↵ | | 16 | super(new ResourceLocator[] {});↵
|
17 | }↵ | | 17 | }↵
|
|
18 | /**↵ | | 18 | /*↵
|
19 | * Returns the singleton instance of the Eclipse plugin.↵ | | 19 | * ↵
|
20 | * @return the singleton instance.↵ | | 20 | Javadoc copied from base class.↵
|
21 | */↵ | | 21 | */↵
|
22 | @Override↵ | | 22 | @Override↵
|
23 | public ResourceLocator getPluginResourceLocator()↵ | | 23 | public ResourceLocator getPluginResourceLocator()↵
|
24 | {↵ | | 24 | {↵
|
25 | return plugin;↵ | | 25 | return plugin;↵
|
26 | }↵ | | 26 | }↵
|
|
27 | /**↵ | | 27 | /**↵
|
28 | * Returns the singleton instance of the Eclipse plugin.↵ | | 28 | * Returns the singleton instance of the Eclipse plugin.↵
|
29 | * @return the singleton instance.↵ | | 29 | * @return the singleton instance.↵
|
30 | */↵ | | 30 | */↵
|
31 | public static Implementation getPlugin()↵ | | 31 | public static Implementation getPlugin()↵
|
32 | {↵ | | 32 | {↵
|
33 | return plugin;↵ | | 33 | return plugin;↵
|
34 | }↵ | | 34 | }↵
|
|
35 | /**↵ | | 35 | /**↵
|
36 | * The actual implementation of the Eclipse <b>Plugin</b>.↵ | | 36 | * The actual implementation of the Eclipse <b>Plugin</b>.↵
|
37 | */↵ | | 37 | */↵
|
38 | public static class Implementation extends EclipsePlugin↵ | | 38 | public static class Implementation extends EclipsePlugin ↵
|
39 | {↵ | | 39 | {↵
|
40 | /**↵ | | 40 | /**↵
|
41 | * Creates an instance.↵ | | 41 | * Creates an instance.↵
|
42 | */↵ | | 42 | */↵
|
43 | public Implementation()↵ | | 43 | public Implementation()↵
|
44 | {↵ | | 44 | {↵
|
45 | super();↵ | | 45 | super();↵
|
|
46 | // Remember the static instance.↵ | | 46 | // Remember the static instance.↵
|
47 | //↵ | | 47 | //↵
|
48 | plugin = this;↵ | | 48 | plugin = this;↵
|
49 | | | 49 |
|