View | Details | Raw Unified | Return to bug 203105
Collapse All | Expand All

(-)src/org/eclipse/rse/internal/subsystems/shells/core/Activator.java (-1 / +7 lines)
Lines 12-17 Link Here
12
 * 
12
 * 
13
 * Contributors:
13
 * Contributors:
14
 * Martin Oberhuber (Wind River) - [180519] declaratively register rse.shells.ui. adapter factories
14
 * Martin Oberhuber (Wind River) - [180519] declaratively register rse.shells.ui. adapter factories
15
 * Martin Oberhuber (wind River) - [203105] Decouple recursive plugin activation of UI adapters
15
 ********************************************************************************/
16
 ********************************************************************************/
16
17
17
package org.eclipse.rse.internal.subsystems.shells.core;
18
package org.eclipse.rse.internal.subsystems.shells.core;
Lines 46-52 Link Here
46
		// make sure that required adapters factories are loaded 
47
		// make sure that required adapters factories are loaded 
47
		//(will typically activate org.eclipse.rse.shells.ui)
48
		//(will typically activate org.eclipse.rse.shells.ui)
48
		//TODO Check that this does not fire up the UI if we want to be headless
49
		//TODO Check that this does not fire up the UI if we want to be headless
49
		Platform.getAdapterManager().loadAdapter(new RemoteOutput(null,""), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$ //$NON-NLS-2$
50
		//Decouple from the current Thread
51
		new Thread("shells.ui adapter loader") { //$NON-NLS-1$
52
			public void run() {
53
				Platform.getAdapterManager().loadAdapter(new RemoteOutput(null,""), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$ //$NON-NLS-2$
54
			}
55
		}.start();
50
		// Others (IRemoteError, ShellServiceSubSystemConfigurationAdapter 
56
		// Others (IRemoteError, ShellServiceSubSystemConfigurationAdapter 
51
		// will be available automatically once the shells.ui plugin is loaded
57
		// will be available automatically once the shells.ui plugin is loaded
52
	}
58
	}
(-)src/org/eclipse/rse/internal/subsystems/processes/core/Activator.java (-1 / +7 lines)
Lines 12-17 Link Here
12
 * 
12
 * 
13
 * Contributors:
13
 * Contributors:
14
 * Martin Oberhuber (Wind River) - [180519][api] declaratively register rse.processes.ui adapter factories
14
 * Martin Oberhuber (Wind River) - [180519][api] declaratively register rse.processes.ui adapter factories
15
 * Martin Oberhuber (wind River) - [203105] Decouple recursive plugin activation of UI adapters
15
 ********************************************************************************/
16
 ********************************************************************************/
16
17
17
package org.eclipse.rse.internal.subsystems.processes.core;
18
package org.eclipse.rse.internal.subsystems.processes.core;
Lines 44-51 Link Here
44
		// make sure that required adapters factories are loaded 
45
		// make sure that required adapters factories are loaded 
45
		//(will typically activate org.eclipse.rse.processes.ui)
46
		//(will typically activate org.eclipse.rse.processes.ui)
46
		//TODO Check that this does not fire up the UI if we want to be headless
47
		//TODO Check that this does not fire up the UI if we want to be headless
47
		Platform.getAdapterManager().loadAdapter(new RemoteProcessImpl(null,null), 
48
		//Decouple from the current Thread
49
		new Thread("processes.ui adapter loader") { //$NON-NLS-1$
50
			public void run() {
51
				Platform.getAdapterManager().loadAdapter(new RemoteProcessImpl(null,null), 
48
				"org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
52
				"org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
53
			}
54
		}.start();
49
		//others will be loaded automatically when the processes.ui plugin is activated
55
		//others will be loaded automatically when the processes.ui plugin is activated
50
	}
56
	}
51
57
(-)src/org/eclipse/rse/internal/subsystems/files/core/Activator.java (-1 / +7 lines)
Lines 13-18 Link Here
13
 * 
13
 * 
14
 * Contributors:
14
 * Contributors:
15
 * Martin Oberhuber (Wind River) - [180519][api] declaratively register adapter factories
15
 * Martin Oberhuber (Wind River) - [180519][api] declaratively register adapter factories
16
 * Martin Oberhuber (wind River) - [203105] Decouple recursive plugin activation of UI adapters
16
 *******************************************************************************/
17
 *******************************************************************************/
17
18
18
package org.eclipse.rse.internal.subsystems.files.core;
19
package org.eclipse.rse.internal.subsystems.files.core;
Lines 47-53 Link Here
47
		// make sure that required adapters factories are loaded 
48
		// make sure that required adapters factories are loaded 
48
		//(will typically activate org.eclipse.rse.files.ui)
49
		//(will typically activate org.eclipse.rse.files.ui)
49
		//TODO Check that this does not fire up the UI if we want to be headless
50
		//TODO Check that this does not fire up the UI if we want to be headless
50
		Platform.getAdapterManager().loadAdapter(new RemoteFileEmpty(), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
51
		//Decouple from the current Thread
52
		new Thread("files.ui adapter loader") { //$NON-NLS-1$
53
			public void run() {
54
				Platform.getAdapterManager().loadAdapter(new RemoteFileEmpty(), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
55
			}
56
		}.start();
51
		// Others (RemoteSearchResultSet, RemoteSearchResult, 
57
		// Others (RemoteSearchResultSet, RemoteSearchResult, 
52
		// RemoteFileSystemConfigurationAdapter will be available
58
		// RemoteFileSystemConfigurationAdapter will be available
53
		// automatically once the plugin is loaded
59
		// automatically once the plugin is loaded

Return to bug 203105