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

(-)UI/org/eclipse/rse/internal/ui/view/SystemTableViewPart.java (-16 / +19 lines)
Lines 21-26 Link Here
21
 * Xuan Chen        (IBM)        - [192716] Refresh Error in Table View after Renaming folder shown in table
21
 * Xuan Chen        (IBM)        - [192716] Refresh Error in Table View after Renaming folder shown in table
22
 * Xuan Chen        (IBM)        - [194838] Move the code for comparing two objects by absolute name to a common location
22
 * Xuan Chen        (IBM)        - [194838] Move the code for comparing two objects by absolute name to a common location
23
 * Kevin Doyle (IBM) - [193394] After Deleting the folder shown in Table get an error
23
 * Kevin Doyle (IBM) - [193394] After Deleting the folder shown in Table get an error
24
 * Kevin Doyle (IBM) - [197971] NPE when table has no input and doing commands in Systems View
24
 ********************************************************************************/
25
 ********************************************************************************/
25
26
26
package org.eclipse.rse.internal.ui.view;
27
package org.eclipse.rse.internal.ui.view;
Lines 1590-1612 Link Here
1590
	        } 
1591
	        } 
1591
	    }
1592
	    }
1592
	    
1593
	    
1593
	    Object currentObject = _currentItem.getObject();
1594
	    if (_currentItem != null) {
1595
	    	Object currentObject = _currentItem.getObject();
1594
	    
1596
	    
1595
	    // Update the input of the viewer to the closest item in the history
1597
		    // Update the input of the viewer to the closest item in the history
1596
	    // that still exists if the current viewer item has been deleted.
1598
		    // that still exists if the current viewer item has been deleted.
1597
	    if (c == currentObject || c.equals(currentObject) || isParentOf(c,currentObject))
1599
		    if (c == currentObject || c.equals(currentObject) || isParentOf(c,currentObject))
1598
        {
1600
	        {
1599
            if (_browseHistory.size() > 0)
1601
	            if (_browseHistory.size() > 0)
1600
            {
1602
	            {
1601
                _currentItem = (HistoryItem)_browseHistory.get(_browsePosition);
1603
	                _currentItem = (HistoryItem)_browseHistory.get(_browsePosition);
1602
                setInput(_currentItem.getObject(), null, false);
1604
	                setInput(_currentItem.getObject(), null, false);
1603
            }
1605
	            }
1604
            else
1606
	            else
1605
            {
1607
	            {
1606
                _currentItem = null;
1608
	                _currentItem = null;
1607
                setInput(RSECorePlugin.getTheSystemRegistry(), null, true);
1609
	                setInput(RSECorePlugin.getTheSystemRegistry(), null, true);
1608
            }
1610
	            }
1609
        }
1611
	        }
1612
	    }
1610
	}
1613
	}
1611
	
1614
	
1612
	protected boolean isParentOf(Object parent, Object child) {
1615
	protected boolean isParentOf(Object parent, Object child) {

Return to bug 197971