| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.pcm.core.presentation; |
| 8 | |
| 9 | import org.eclipse.emf.common.EMFPlugin; |
| 10 | import org.eclipse.emf.common.ui.EclipseUIPlugin; |
| 11 | import org.eclipse.emf.common.util.ResourceLocator; |
| 12 | |
| 13 | import de.uka.ipd.sdq.identifier.provider.IdentifierEditPlugin; |
| 14 | import de.uka.ipd.sdq.probfunction.provider.ProbabilityFunctionEditPlugin; |
| 15 | import de.uka.ipd.sdq.stoex.provider.StoexEditPlugin; |
| 16 | import de.uka.ipd.sdq.units.provider.UnitsEditPlugin; |
| 17 | |
| 18 | /** |
| 19 | * This is the central singleton for the Pcm editor plugin. |
| 20 | * <!-- begin-user-doc --> |
| 21 | * <!-- end-user-doc --> |
| 22 | * @generated |
| 23 | */ |
| 24 | public final class PcmEditorPlugin extends EMFPlugin { |
| 25 | /** |
| 26 | * <!-- begin-user-doc --> |
| 27 | * <!-- end-user-doc --> |
| 28 | * @generated |
| 29 | */ |
| 30 | public static final String copyright = "Copyright 2008 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 31 | |
| 32 | /** |
| 33 | * Keep track of the singleton. |
| 34 | * <!-- begin-user-doc --> |
| 35 | * <!-- end-user-doc --> |
| 36 | * @generated |
| 37 | */ |
| 38 | public static final PcmEditorPlugin INSTANCE = new PcmEditorPlugin(); |
| 39 | |
| 40 | /** |
| 41 | * Keep track of the singleton. |
| 42 | * <!-- begin-user-doc --> |
| 43 | * <!-- end-user-doc --> |
| 44 | * @generated |
| 45 | */ |
| 46 | private static Implementation plugin; |
| 47 | |
| 48 | /** |
| 49 | * Create the instance. |
| 50 | * <!-- begin-user-doc --> |
| 51 | * <!-- end-user-doc --> |
| 52 | * @generated |
| 53 | */ |
| 54 | public PcmEditorPlugin() { |
| 55 | super |
| 56 | (new ResourceLocator [] { |
| 57 | IdentifierEditPlugin.INSTANCE, |
| 58 | ProbabilityFunctionEditPlugin.INSTANCE, |
| 59 | StoexEditPlugin.INSTANCE, |
| 60 | UnitsEditPlugin.INSTANCE, |
| 61 | }); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Returns the singleton instance of the Eclipse plugin. |
| 66 | * <!-- begin-user-doc --> |
| 67 | * <!-- end-user-doc --> |
| 68 | * @return the singleton instance. |
| 69 | * @generated |
| 70 | */ |
| 71 | @Override |
| 72 | public ResourceLocator getPluginResourceLocator() { |
| 73 | return plugin; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Returns the singleton instance of the Eclipse plugin. |
| 78 | * <!-- begin-user-doc --> |
| 79 | * <!-- end-user-doc --> |
| 80 | * @return the singleton instance. |
| 81 | * @generated |
| 82 | */ |
| 83 | public static Implementation getPlugin() { |
| 84 | return plugin; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * The actual implementation of the Eclipse <b>Plugin</b>. |
| 89 | * <!-- begin-user-doc --> |
| 90 | * <!-- end-user-doc --> |
| 91 | * @generated |
| 92 | */ |
| 93 | public static class Implementation extends EclipseUIPlugin { |
| 94 | /** |
| 95 | * Creates an instance. |
| 96 | * <!-- begin-user-doc --> |
| 97 | * <!-- end-user-doc --> |
| 98 | * @generated |
| 99 | */ |
| 100 | public Implementation() { |
| 101 | super(); |
| 102 | |
| 103 | // Remember the static instance. |
| 104 | // |
| 105 | plugin = this; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | } |