View | Details | Raw Unified | Return to bug 247544 | Differences between
and this patch

Collapse All | Expand All

(-)UI/org/eclipse/rse/internal/ui/view/SystemViewPart.java (-1 / +3 lines)
Lines 33-38 Link Here
33
 * David Dykstal (IBM) - [216858] Need the ability to Import/Export RSE connections for sharing
33
 * David Dykstal (IBM) - [216858] Need the ability to Import/Export RSE connections for sharing
34
 * Kevin Doyle 	 (IBM) - [186769] Enable Contributions to Drop Down menu of Remote Systems view -> Preferences
34
 * Kevin Doyle 	 (IBM) - [186769] Enable Contributions to Drop Down menu of Remote Systems view -> Preferences
35
 * David McKnight (IBM)  - [244807] System view does not handle restore from cache
35
 * David McKnight (IBM)  - [244807] System view does not handle restore from cache
36
 * David McKnight (IBM)  - [247544] [performance] Restoring Selection on Restart can cause the UI to freeze
36
 *******************************************************************************/
37
 *******************************************************************************/
37
38
38
package org.eclipse.rse.internal.ui.view;
39
package org.eclipse.rse.internal.ui.view;
Lines 1023-1030 Link Here
1023
		Object elements[] = ((IStructuredSelection) systemView.getSelection()).toArray();
1024
		Object elements[] = ((IStructuredSelection) systemView.getSelection()).toArray();
1024
		if ((elements != null) && (elements.length > 0))
1025
		if ((elements != null) && (elements.length > 0))
1025
		{
1026
		{
1027
			int MAX_SELECTION = 1;
1026
			IMemento selectionMem = memento.createChild(TAG_SELECTION);
1028
			IMemento selectionMem = memento.createChild(TAG_SELECTION);
1027
			for (int i = 0; i < elements.length; i++)
1029
			for (int i = 0; i < elements.length && i < MAX_SELECTION; i++)
1028
			{
1030
			{
1029
				Object o = elements[i];
1031
				Object o = elements[i];
1030
				ISystemViewElementAdapter adapter = systemView.getViewAdapter(o);
1032
				ISystemViewElementAdapter adapter = systemView.getViewAdapter(o);

Return to bug 247544