1 | /** |
---|
2 | * <copyright> |
---|
3 | * </copyright> |
---|
4 | * |
---|
5 | * $Id$ |
---|
6 | */ |
---|
7 | package org.modelica.uml.sysml; |
---|
8 | |
---|
9 | import org.eclipse.emf.common.EMFPlugin; |
---|
10 | |
---|
11 | import org.eclipse.emf.common.util.ResourceLocator; |
---|
12 | |
---|
13 | /** |
---|
14 | * This is the central singleton for the Sysml model plugin. |
---|
15 | * <!-- begin-user-doc --> |
---|
16 | * <!-- end-user-doc --> |
---|
17 | * @generated |
---|
18 | */ |
---|
19 | public final class SysmlPlugin extends EMFPlugin { |
---|
20 | /** |
---|
21 | * Keep track of the singleton. |
---|
22 | * <!-- begin-user-doc --> |
---|
23 | * <!-- end-user-doc --> |
---|
24 | * @generated |
---|
25 | */ |
---|
26 | public static final SysmlPlugin INSTANCE = new SysmlPlugin(); |
---|
27 | |
---|
28 | /** |
---|
29 | * Keep track of the singleton. |
---|
30 | * <!-- begin-user-doc --> |
---|
31 | * <!-- end-user-doc --> |
---|
32 | * @generated |
---|
33 | */ |
---|
34 | private static Implementation plugin; |
---|
35 | |
---|
36 | /** |
---|
37 | * Create the instance. |
---|
38 | * <!-- begin-user-doc --> |
---|
39 | * <!-- end-user-doc --> |
---|
40 | * @generated |
---|
41 | */ |
---|
42 | public SysmlPlugin() { |
---|
43 | super(new ResourceLocator [] {}); |
---|
44 | } |
---|
45 | |
---|
46 | /** |
---|
47 | * Returns the singleton instance of the Eclipse plugin. |
---|
48 | * <!-- begin-user-doc --> |
---|
49 | * <!-- end-user-doc --> |
---|
50 | * @return the singleton instance. |
---|
51 | * @generated |
---|
52 | */ |
---|
53 | public ResourceLocator getPluginResourceLocator() { |
---|
54 | return plugin; |
---|
55 | } |
---|
56 | |
---|
57 | /** |
---|
58 | * Returns the singleton instance of the Eclipse plugin. |
---|
59 | * <!-- begin-user-doc --> |
---|
60 | * <!-- end-user-doc --> |
---|
61 | * @return the singleton instance. |
---|
62 | * @generated |
---|
63 | */ |
---|
64 | public static Implementation getPlugin() { |
---|
65 | return plugin; |
---|
66 | } |
---|
67 | |
---|
68 | /** |
---|
69 | * The actual implementation of the Eclipse <b>Plugin</b>. |
---|
70 | * <!-- begin-user-doc --> |
---|
71 | * <!-- end-user-doc --> |
---|
72 | * @generated |
---|
73 | */ |
---|
74 | public static class Implementation extends EclipsePlugin { |
---|
75 | /** |
---|
76 | * Creates an instance. |
---|
77 | * <!-- begin-user-doc --> |
---|
78 | * <!-- end-user-doc --> |
---|
79 | * @generated |
---|
80 | */ |
---|
81 | public Implementation() { |
---|
82 | super(); |
---|
83 | |
---|
84 | // Remember the static instance. |
---|
85 | // |
---|
86 | plugin = this; |
---|
87 | } |
---|
88 | } |
---|
89 | |
---|
90 | } |
---|