Skip to content

Package: ViewEditPlugin

ViewEditPlugin

nameinstructionbranchcomplexitylinemethod
ViewEditPlugin()
M: 0 C: 9
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getPlugin()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPluginResourceLocator()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
static {...}
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * EclipseSource Muenchen GmbH - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.spi.model.provider;
15:
16: import org.eclipse.emf.common.EMFPlugin;
17: import org.eclipse.emf.common.util.ResourceLocator;
18: import org.eclipse.emf.ecore.provider.EcoreEditPlugin;
19:
20: /**
21: * This is the central singleton for the View edit plugin.
22: * <!-- begin-user-doc -->
23: *
24: * @since 1.2
25: * <!-- end-user-doc -->
26: * @generated
27: */
28: public final class ViewEditPlugin extends EMFPlugin {
29:         /**
30:          * Keep track of the singleton.
31:          * <!-- begin-user-doc -->
32:          * <!-- end-user-doc -->
33:          *
34:          * @generated
35:          */
36:         public static final ViewEditPlugin INSTANCE = new ViewEditPlugin();
37:
38:         /**
39:          * Keep track of the singleton.
40:          * <!-- begin-user-doc -->
41:          * <!-- end-user-doc -->
42:          *
43:          * @generated
44:          */
45:         private static Implementation plugin;
46:
47:         /**
48:          * Create the instance.
49:          * <!-- begin-user-doc -->
50:          * <!-- end-user-doc -->
51:          *
52:          * @generated
53:          */
54:         public ViewEditPlugin() {
55:                 super(new ResourceLocator[] {
56:                         EcoreEditPlugin.INSTANCE,
57:                 });
58:         }
59:
60:         /**
61:          * Returns the singleton instance of the Eclipse plugin.
62:          * <!-- begin-user-doc -->
63:          * <!-- end-user-doc -->
64:          *
65:          * @return the singleton instance.
66:          * @generated
67:          */
68:         @Override
69:         public ResourceLocator getPluginResourceLocator() {
70:                 return plugin;
71:         }
72:
73:         /**
74:          * Returns the singleton instance of the Eclipse plugin.
75:          * <!-- begin-user-doc -->
76:          * <!-- end-user-doc -->
77:          *
78:          * @return the singleton instance.
79:          * @generated
80:          */
81:         public static Implementation getPlugin() {
82:                 return plugin;
83:         }
84:
85:         /**
86:          * The actual implementation of the Eclipse <b>Plugin</b>.
87:          * <!-- begin-user-doc -->
88:          * <!-- end-user-doc -->
89:          *
90:          * @generated
91:          */
92:         public static class Implementation extends EclipsePlugin {
93:                 /**
94:                  * Creates an instance.
95:                  * <!-- begin-user-doc -->
96:                  * <!-- end-user-doc -->
97:                  *
98:                  * @generated
99:                  */
100:                 public Implementation() {
101:                         super();
102:
103:                         // Remember the static instance.
104:                         //
105:                         plugin = this;
106:                 }
107:         }
108:
109: }