| /******************************************************************************* |
| * Copyright (c) 2018 Obeo. |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Obeo - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.sirius.server.frontend.workflow.internal; |
| |
| import org.eclipse.emf.common.EMFPlugin; |
| import org.eclipse.emf.common.util.ResourceLocator; |
| |
| /** |
| * The plugin of the bundle. |
| * |
| * @author sbegaudeau |
| */ |
| public class SiriusServerWorkflowFrontendPlugin extends EMFPlugin { |
| /** |
| * The identifier of the plugin. |
| */ |
| public static final String PLUGIN_ID = "org.eclipse.sirius.server.frontend.workflow"; //$NON-NLS-1$ |
| |
| /** |
| * The sole instance of the plugin. |
| */ |
| public static final SiriusServerWorkflowFrontendPlugin INSTANCE = new SiriusServerWorkflowFrontendPlugin(); |
| |
| /** |
| * The sole instance of the bundle activator. |
| */ |
| private static Implementation plugin; |
| |
| /** |
| * The constructor. |
| */ |
| public SiriusServerWorkflowFrontendPlugin() { |
| super(new ResourceLocator[0]); |
| } |
| |
| @Override |
| public ResourceLocator getPluginResourceLocator() { |
| return plugin; |
| } |
| |
| /** |
| * Returns the singleton instance of the Eclipse plugin. |
| * |
| * @return the singleton instance. |
| */ |
| public static Implementation getPlugin() { |
| return plugin; |
| } |
| |
| /** |
| * The bundle activator. |
| * |
| * @author sbegaudeau |
| */ |
| public static class Implementation extends EclipsePlugin { |
| |
| /** |
| * The constructor. |
| */ |
| public Implementation() { |
| SiriusServerWorkflowFrontendPlugin.plugin = this; |
| } |
| } |
| } |