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

(-)UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearAction.java (-2 / +8 lines)
Lines 14-19 Link Here
14
 * Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
14
 * Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
15
 * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
15
 * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
16
 * Kevin Doyle (IBM) - [189150] setSelection(null) added to clear()
16
 * Kevin Doyle (IBM) - [189150] setSelection(null) added to clear()
17
 * Kevin Doyle (IBM) - [194899] Remove All should do a full reset of the scratchpad
17
 ********************************************************************************/
18
 ********************************************************************************/
18
19
19
20
Lines 53-61 Link Here
53
	// clear contents of the current command viewer
54
	// clear contents of the current command viewer
54
	private void clear()
55
	private void clear()
55
	{
56
	{
56
	    _scratchPad.clearChildren();
57
		// Reset the SystemScratchpad
58
		_scratchPad.clearChildren();
59
		// Set the input of the view to SystemScratchpad if it has changed
60
		if (_view.getInput() != _scratchPad) {
61
			_view.setInput(_scratchPad);
62
		}
63
		// Refresh the Scratchpad and update action states
57
	    RSECorePlugin.getTheSystemRegistry().fireEvent(new SystemResourceChangeEvent(_scratchPad, ISystemResourceChangeEvents.EVENT_REFRESH, _scratchPad));
64
	    RSECorePlugin.getTheSystemRegistry().fireEvent(new SystemResourceChangeEvent(_scratchPad, ISystemResourceChangeEvents.EVENT_REFRESH, _scratchPad));
58
	    _view.setSelection(null);
65
	    _view.setSelection(null);
59
	    //_view.updateActionStates();
60
	}
66
	}
61
}
67
}

Return to bug 194899