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

(-)src/org/eclipse/rse/internal/remotecdt/RemoteCMainTab.java (-2 / +8 lines)
Lines 27-32 Link Here
27
import org.eclipse.rse.files.ui.dialogs.SystemRemoteFileDialog;
27
import org.eclipse.rse.files.ui.dialogs.SystemRemoteFileDialog;
28
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
28
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
29
import org.eclipse.rse.ui.RSESystemTypeAdapter;
29
import org.eclipse.rse.ui.RSESystemTypeAdapter;
30
import org.eclipse.rse.ui.RSEUIPlugin;
30
import org.eclipse.rse.ui.actions.SystemNewConnectionAction;
31
import org.eclipse.rse.ui.actions.SystemNewConnectionAction;
31
import org.eclipse.swt.SWT;
32
import org.eclipse.swt.SWT;
32
import org.eclipse.swt.events.ModifyEvent;
33
import org.eclipse.swt.events.ModifyEvent;
Lines 328-335 Link Here
328
	}
329
	}
329
	
330
	
330
	protected void updateConnectionPulldown() {
331
	protected void updateConnectionPulldown() {
331
		connectionCombo.removeAll();
332
	    connectionCombo.removeAll();
332
		IHost[] connections = RSECorePlugin.getTheSystemRegistry().getHostsBySubSystemConfigurationCategory("shells"); //$NON-NLS-1$
333
            // start RSEUIPlugin to make sure the SystemRegistry is initialized.
334
            boolean isRegistryActive = RSEUIPlugin.isTheSystemRegistryActive();
335
            if (isRegistryActive) {
336
                    IHost[] connections = RSECorePlugin.getTheSystemRegistry()
337
                                    .getHosts();
333
		for(int i = 0; i < connections.length; i++) {
338
		for(int i = 0; i < connections.length; i++) {
334
			IRSESystemType sysType = connections[i].getSystemType();
339
			IRSESystemType sysType = connections[i].getSystemType();
335
			RSESystemTypeAdapter a = (RSESystemTypeAdapter)sysType.getAdapter(RSESystemTypeAdapter.class);
340
			RSESystemTypeAdapter a = (RSESystemTypeAdapter)sysType.getAdapter(RSESystemTypeAdapter.class);
Lines 340-345 Link Here
340
		
345
		
341
		if(connections.length > 0)
346
		if(connections.length > 0)
342
			connectionCombo.select(connections.length - 1);
347
			connectionCombo.select(connections.length - 1);
348
            }
343
	}
349
	}
344
    
350
    
345
	protected void updateTargetProgFromConfig(ILaunchConfiguration config) {
351
	protected void updateTargetProgFromConfig(ILaunchConfiguration config) {

Return to bug 190613