| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.pcm.core.entity.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 | |
| 17 | /** |
| 18 | * This is the central singleton for the PalladioComponentModel editor plugin. |
| 19 | * <!-- begin-user-doc --> |
| 20 | * <!-- end-user-doc --> |
| 21 | * @generated |
| 22 | */ |
| 23 | public final class PalladioComponentModelEditorPlugin extends EMFPlugin { |
| 24 | /** |
| 25 | * <!-- begin-user-doc --> |
| 26 | * <!-- end-user-doc --> |
| 27 | * @generated |
| 28 | */ |
| 29 | public static final String copyright = "Copyright 2007 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 30 | |
| 31 | /** |
| 32 | * Keep track of the singleton. |
| 33 | * <!-- begin-user-doc --> |
| 34 | * <!-- end-user-doc --> |
| 35 | * @generated |
| 36 | */ |
| 37 | public static final PalladioComponentModelEditorPlugin INSTANCE = new PalladioComponentModelEditorPlugin(); |
| 38 | |
| 39 | /** |
| 40 | * Keep track of the singleton. |
| 41 | * <!-- begin-user-doc --> |
| 42 | * <!-- end-user-doc --> |
| 43 | * @generated |
| 44 | */ |
| 45 | private static Implementation plugin; |
| 46 | |
| 47 | /** |
| 48 | * Create the instance. |
| 49 | * <!-- begin-user-doc --> |
| 50 | * <!-- end-user-doc --> |
| 51 | * @generated |
| 52 | */ |
| 53 | public PalladioComponentModelEditorPlugin() { |
| 54 | super |
| 55 | (new ResourceLocator [] { |
| 56 | IdentifierEditPlugin.INSTANCE, |
| 57 | ProbabilityFunctionEditPlugin.INSTANCE, |
| 58 | StoexEditPlugin.INSTANCE, |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Returns the singleton instance of the Eclipse plugin. |
| 64 | * <!-- begin-user-doc --> |
| 65 | * <!-- end-user-doc --> |
| 66 | * @return the singleton instance. |
| 67 | * @generated |
| 68 | */ |
| 69 | @Override |
| 70 | public ResourceLocator getPluginResourceLocator() { |
| 71 | return plugin; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Returns the singleton instance of the Eclipse plugin. |
| 76 | * <!-- begin-user-doc --> |
| 77 | * <!-- end-user-doc --> |
| 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 | * @generated |
| 90 | */ |
| 91 | public static class Implementation extends EclipseUIPlugin { |
| 92 | /** |
| 93 | * Creates an instance. |
| 94 | * <!-- begin-user-doc --> |
| 95 | * <!-- end-user-doc --> |
| 96 | * @generated |
| 97 | */ |
| 98 | public Implementation() { |
| 99 | super(); |
| 100 | |
| 101 | // Remember the static instance. |
| 102 | // |
| 103 | plugin = this; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | } |