| package org.eclipse.papyrus.cdo.security.properties; |
| |
| import org.eclipse.papyrus.infra.constraints.constraints.EMFInstanceOfConstraint; |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| import org.osgi.framework.BundleContext; |
| |
| public class Activator extends AbstractUIPlugin { |
| |
| // The plug-in ID |
| public static final String PLUGIN_ID = "org.eclipse.papyrus.cdo.security.properties"; //$NON-NLS-1$ |
| |
| private static Activator plugin; |
| |
| public Activator() { |
| super(); |
| // Artificially force Java dependency to org.eclipse.papyrus.infra.constraints.constraints.EMFInstanceOfConstraint because used in properties |
| Class<EMFInstanceOfConstraint> clazz = org.eclipse.papyrus.infra.constraints.constraints.EMFInstanceOfConstraint.class; |
| } |
| |
| @Override |
| public void start(BundleContext context) throws Exception { |
| super.start(context); |
| plugin = this; |
| |
| } |
| |
| @Override |
| public void stop(BundleContext context) throws Exception { |
| plugin = null; |
| super.stop(context); |
| } |
| |
| public static Activator getDefault() { |
| return plugin; |
| } |
| |
| } |