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