lttng: Remove RSE-specific workaround utility class
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 23 Apr 2015 19:36:07 +0000 (15:36 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 27 Apr 2015 17:07:00 +0000 (13:07 -0400)
This class provided workarounds for an RSE-related bug.
Since we do not use RSE anymore, this class is now unused.

Change-Id: Ia206ca869faece7611cdffcce01233b2004ce9d9
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/46379
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/Workaround_Bug449362.java [deleted file]

diff --git a/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/Workaround_Bug449362.java b/org.eclipse.tracecompass.lttng2.control.ui/src/org/eclipse/tracecompass/internal/lttng2/control/ui/views/Workaround_Bug449362.java
deleted file mode 100644 (file)
index 31e6db7..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2014 Wind River Systems, Inc. and others
- *
- * 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:
- *   Markus Schorn - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.tracecompass.internal.lttng2.control.ui.views;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.tracecompass.internal.lttng2.control.ui.Activator;
-import org.eclipse.ui.IStartup;
-
-/**
- * Collection of workarounds needed for dealing with the RSE adapter.
- */
-public class Workaround_Bug449362 {
-
-    private static final String RSE_ADAPTER_ID = "org.eclipse.ptp.remote.RSERemoteServices"; //$NON-NLS-1$
-
-    private static boolean fTriggeredRSEStartup = false;
-
-    private Workaround_Bug449362() {
-        // utility class
-    }
-
-    /**
-     * Trigger the startup of RSE, if necessary.
-     *
-     * @param adapterID
-     *            the id of the adapter that will be initialized
-     * @return <code>false</code> if the startup cannot be triggered, although
-     *         it should be.
-     */
-    public static boolean triggerRSEStartup(String adapterID) {
-        if (fTriggeredRSEStartup || !RSE_ADAPTER_ID.equals(adapterID)) {
-            return true;
-        }
-
-        IExtensionPoint ep = Platform.getExtensionRegistry().getExtensionPoint("org.eclipse.ui.startup"); //$NON-NLS-1$
-        if (ep == null) {
-            return false;
-        }
-        for (IConfigurationElement elem : ep.getConfigurationElements()) {
-            String clazz = elem.getAttribute("class"); //$NON-NLS-1$
-            if (clazz != null && clazz.endsWith("RSEUIStartup")) { //$NON-NLS-1$
-                try {
-                    Object ext = elem.createExecutableExtension("class"); //$NON-NLS-1$
-                    if (ext instanceof IStartup) {
-                        ((IStartup) ext).earlyStartup();
-                        fTriggeredRSEStartup = true;
-                        return true;
-                    }
-                } catch (CoreException e) {
-                    Activator.getDefault().logError(e.getMessage(), e);
-                }
-            }
-        }
-        return false;
-    }
-
-}
This page took 0.035228 seconds and 5 git commands to generate.