Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsPlugin.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsPlugin.java182
1 files changed, 91 insertions, 91 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsPlugin.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsPlugin.java
index 51d81175e5f..ba03676e051 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsPlugin.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsPlugin.java
@@ -1,91 +1,91 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.ats.internal;
-
-import org.eclipse.osee.ats.config.AtsCacheManager;
-import org.eclipse.osee.ats.util.AtsNotifyUsers;
-import org.eclipse.osee.ats.util.AtsPreSaveCacheRemoteEventHandler;
-import org.eclipse.osee.framework.core.services.CmAccessControl;
-import org.eclipse.osee.framework.core.util.ServiceDependencyTracker;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.plugin.core.IActionReportingService;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActivator;
-import org.eclipse.osee.framework.ui.skynet.ats.IOseeAtsService;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * The main plugin class to be used in the desktop.
- *
- * @author Donald G. Dunne
- */
-public class AtsPlugin extends OseeUiActivator {
- public static final String PLUGIN_ID = "org.eclipse.osee.ats";
-
- private static AtsPlugin pluginInstance;
-
- private ServiceRegistration service1;
- private ServiceRegistration service2;
-
- private ServiceDependencyTracker tracker;
- private AtsCmAccessControlRegHandler cmAccessHandler;
-
- public AtsPlugin() {
- super();
- AtsPlugin.pluginInstance = this;
- AtsPreSaveCacheRemoteEventHandler.start();
- AtsCacheManager.start();
- AtsNotifyUsers.getInstance();
- }
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- service1 =
- context.registerService(IActionReportingService.class.getName(), new AtsActionReportingServiceImpl(), null);
- service2 = context.registerService(IOseeAtsService.class.getName(), new OseeAtsServiceImpl(), null);
-
- // TODO Uncomment to re-enable ATS CM Access providing
- // if (OseeInfo.isEnabled("atsAccessEnabled")) {
- cmAccessHandler = new AtsCmAccessControlRegHandler();
- // tracker = new ServiceDependencyTracker(context, cmAccessHandler);
- // tracker.open();
- // }
- }
-
- @Override
- public void stop(BundleContext context) throws Exception {
- if (tracker != null) {
- Lib.close(tracker);
- }
- if (service1 != null) {
- service1.unregister();
- }
- if (service2 != null) {
- service2.unregister();
- }
- super.stop(context);
- }
-
- @Override
- protected String getPluginName() {
- return PLUGIN_ID;
- }
-
- public static AtsPlugin getInstance() {
- return pluginInstance;
- }
-
- public CmAccessControl getCmService() {
- return cmAccessHandler.getCmService();
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osee.ats.internal;
+
+import org.eclipse.osee.ats.config.AtsCacheManager;
+import org.eclipse.osee.ats.util.AtsNotifyUsers;
+import org.eclipse.osee.ats.util.AtsPreSaveCacheRemoteEventHandler;
+import org.eclipse.osee.framework.core.services.CmAccessControl;
+import org.eclipse.osee.framework.core.util.ServiceDependencyTracker;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.plugin.core.IActionReportingService;
+import org.eclipse.osee.framework.ui.plugin.OseeUiActivator;
+import org.eclipse.osee.framework.ui.skynet.ats.IOseeAtsService;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * The main plugin class to be used in the desktop.
+ *
+ * @author Donald G. Dunne
+ */
+public class AtsPlugin extends OseeUiActivator {
+ public static final String PLUGIN_ID = "org.eclipse.osee.ats";
+
+ private static AtsPlugin pluginInstance;
+
+ private ServiceRegistration service1;
+ private ServiceRegistration service2;
+
+ private ServiceDependencyTracker tracker;
+ private AtsCmAccessControlRegHandler cmAccessHandler;
+
+ public AtsPlugin() {
+ super();
+ AtsPlugin.pluginInstance = this;
+ AtsPreSaveCacheRemoteEventHandler.start();
+ AtsCacheManager.start();
+ AtsNotifyUsers.getInstance();
+ }
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ service1 =
+ context.registerService(IActionReportingService.class.getName(), new AtsActionReportingServiceImpl(), null);
+ service2 = context.registerService(IOseeAtsService.class.getName(), new OseeAtsServiceImpl(), null);
+
+ // TODO Uncomment to re-enable ATS CM Access providing
+ // if (OseeInfo.isEnabled("atsAccessEnabled")) {
+ cmAccessHandler = new AtsCmAccessControlRegHandler();
+ // tracker = new ServiceDependencyTracker(context, cmAccessHandler);
+ // tracker.open();
+ // }
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ if (tracker != null) {
+ Lib.close(tracker);
+ }
+ if (service1 != null) {
+ service1.unregister();
+ }
+ if (service2 != null) {
+ service2.unregister();
+ }
+ super.stop(context);
+ }
+
+ @Override
+ protected String getPluginName() {
+ return PLUGIN_ID;
+ }
+
+ public static AtsPlugin getInstance() {
+ return pluginInstance;
+ }
+
+ public CmAccessControl getCmService() {
+ return cmAccessHandler.getCmService();
+ }
+}

Back to the top