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 |