1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 13:05:22 +02:00

[229479][rseterminal][api] terminals.core should not force load terminals.ui (apply patch from Anna Dushistova)

This commit is contained in:
Martin Oberhuber 2008-05-02 22:51:37 +00:00
parent aa31092e08
commit 61fe39fc5f

View file

@ -6,13 +6,12 @@
*
* Contributors:
* Yu-Fen Kuo (MontaVista) - initial API and implementation
* Anna Dushistova(MontaVista) - [229479][rseterminal][api] terminals.core should not force load terminals.ui
********************************************************************************/
package org.eclipse.rse.internal.subsystems.terminals.core;
import org.eclipse.core.runtime.Platform;
import org.eclipse.rse.ui.SystemBasePlugin;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
/**
@ -40,25 +39,6 @@ public class Activator extends SystemBasePlugin {
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
// make sure that org.eclipse.rse.terminals.ui plugin is loaded
// Decouple from the current Thread
new Thread("terminals.ui adapter loader") { //$NON-NLS-1$
public void run() {
try {
Bundle bundle = Platform
.getBundle("org.eclipse.rse.terminals.ui");
if (bundle != null) {
bundle
.loadClass("org.eclipse.rse.internal.terminals.ui.TerminalServiceHelper");
}
} catch (ClassNotFoundException e) {
logError(e.getLocalizedMessage(), e);
}
}
}.start();
}
/*