mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
[203105] Decouple recursive plugin activation of UI adapters
This commit is contained in:
parent
63a9b0186f
commit
5d63e5ce2c
3 changed files with 21 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [180519][api] declaratively register adapter factories
|
* Martin Oberhuber (Wind River) - [180519][api] declaratively register adapter factories
|
||||||
|
* Martin Oberhuber (wind River) - [203105] Decouple recursive plugin activation of UI adapters
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.files.core;
|
package org.eclipse.rse.internal.subsystems.files.core;
|
||||||
|
@ -47,7 +48,12 @@ public class Activator extends AbstractUIPlugin {
|
||||||
// make sure that required adapters factories are loaded
|
// make sure that required adapters factories are loaded
|
||||||
//(will typically activate org.eclipse.rse.files.ui)
|
//(will typically activate org.eclipse.rse.files.ui)
|
||||||
//TODO Check that this does not fire up the UI if we want to be headless
|
//TODO Check that this does not fire up the UI if we want to be headless
|
||||||
Platform.getAdapterManager().loadAdapter(new RemoteFileEmpty(), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
|
//Decouple from the current Thread
|
||||||
|
new Thread("files.ui adapter loader") { //$NON-NLS-1$
|
||||||
|
public void run() {
|
||||||
|
Platform.getAdapterManager().loadAdapter(new RemoteFileEmpty(), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}.start();
|
||||||
// Others (RemoteSearchResultSet, RemoteSearchResult,
|
// Others (RemoteSearchResultSet, RemoteSearchResult,
|
||||||
// RemoteFileSystemConfigurationAdapter will be available
|
// RemoteFileSystemConfigurationAdapter will be available
|
||||||
// automatically once the plugin is loaded
|
// automatically once the plugin is loaded
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [180519][api] declaratively register rse.processes.ui adapter factories
|
* Martin Oberhuber (Wind River) - [180519][api] declaratively register rse.processes.ui adapter factories
|
||||||
|
* Martin Oberhuber (wind River) - [203105] Decouple recursive plugin activation of UI adapters
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.processes.core;
|
package org.eclipse.rse.internal.subsystems.processes.core;
|
||||||
|
@ -44,8 +45,13 @@ public class Activator extends AbstractUIPlugin {
|
||||||
// make sure that required adapters factories are loaded
|
// make sure that required adapters factories are loaded
|
||||||
//(will typically activate org.eclipse.rse.processes.ui)
|
//(will typically activate org.eclipse.rse.processes.ui)
|
||||||
//TODO Check that this does not fire up the UI if we want to be headless
|
//TODO Check that this does not fire up the UI if we want to be headless
|
||||||
Platform.getAdapterManager().loadAdapter(new RemoteProcessImpl(null,null),
|
//Decouple from the current Thread
|
||||||
|
new Thread("processes.ui adapter loader") { //$NON-NLS-1$
|
||||||
|
public void run() {
|
||||||
|
Platform.getAdapterManager().loadAdapter(new RemoteProcessImpl(null,null),
|
||||||
"org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
|
"org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}.start();
|
||||||
//others will be loaded automatically when the processes.ui plugin is activated
|
//others will be loaded automatically when the processes.ui plugin is activated
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [180519] declaratively register rse.shells.ui. adapter factories
|
* Martin Oberhuber (Wind River) - [180519] declaratively register rse.shells.ui. adapter factories
|
||||||
|
* Martin Oberhuber (wind River) - [203105] Decouple recursive plugin activation of UI adapters
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.shells.core;
|
package org.eclipse.rse.internal.subsystems.shells.core;
|
||||||
|
@ -46,7 +47,12 @@ public class Activator extends AbstractUIPlugin {
|
||||||
// make sure that required adapters factories are loaded
|
// make sure that required adapters factories are loaded
|
||||||
//(will typically activate org.eclipse.rse.shells.ui)
|
//(will typically activate org.eclipse.rse.shells.ui)
|
||||||
//TODO Check that this does not fire up the UI if we want to be headless
|
//TODO Check that this does not fire up the UI if we want to be headless
|
||||||
Platform.getAdapterManager().loadAdapter(new RemoteOutput(null,""), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$ //$NON-NLS-2$
|
//Decouple from the current Thread
|
||||||
|
new Thread("shells.ui adapter loader") { //$NON-NLS-1$
|
||||||
|
public void run() {
|
||||||
|
Platform.getAdapterManager().loadAdapter(new RemoteOutput(null,""), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
|
}
|
||||||
|
}.start();
|
||||||
// Others (IRemoteError, ShellServiceSubSystemConfigurationAdapter
|
// Others (IRemoteError, ShellServiceSubSystemConfigurationAdapter
|
||||||
// will be available automatically once the shells.ui plugin is loaded
|
// will be available automatically once the shells.ui plugin is loaded
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue