| /** |
| * Copyright (c)2020 CEA LIST, Committer Name, and others. |
| * |
| * All rights reserved. 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: |
| * CEA LIST - Initial API and implementation |
| * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr |
| * Gabriel Pedroza (CEA LIST) gabriel.pedroza@cea.fr |
| * |
| */ |
| package org.eclipse.papyrus.pdp4eng.req.ui; |
| |
| import org.eclipse.ui.IStartup; |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| import org.osgi.framework.BundleContext; |
| |
| |
| |
| |
| public class Activator extends AbstractUIPlugin implements IStartup{ |
| // The plug-in ID |
| public static final String pluginId = "org.eclipse.papyrus.pdp4eng.req.ui"; |
| // The shared instance |
| private static Activator plugin; |
| |
| @Override |
| public void start(BundleContext context) throws Exception { |
| super.start(context); |
| Activator.plugin = this; |
| |
| } |
| |
| @Override |
| public void stop(BundleContext context) throws Exception { |
| Activator.plugin = null; |
| super.stop(context); |
| |
| } |
| |
| @Override |
| public void earlyStartup() { |
| // TODO Auto-generated method stub |
| |
| } |
| /** |
| * Returns the shared instance |
| * |
| * @return the shared instance |
| */ |
| public static Activator getDefault() { |
| return Activator.plugin; |
| } |
| |
| } |