Lines 16-21
Link Here
|
16 |
* Kevin Doyle (IBM) - [192278] Removed handleKeyPressed |
16 |
* Kevin Doyle (IBM) - [192278] Removed handleKeyPressed |
17 |
* Kevin Doyle (IBM) - [189150] _selectionFlagsUpdated reset after clear action performed |
17 |
* Kevin Doyle (IBM) - [189150] _selectionFlagsUpdated reset after clear action performed |
18 |
* Kevin Doyle (IBM) - [195537] Use Hashlookup and ElementComparer |
18 |
* Kevin Doyle (IBM) - [195537] Use Hashlookup and ElementComparer |
|
|
19 |
* Kevin Doyle (IBM) - [189423] Scratchpad not completely updated after Delete. |
19 |
********************************************************************************/ |
20 |
********************************************************************************/ |
20 |
|
21 |
|
21 |
package org.eclipse.rse.internal.ui.view.scratchpad; |
22 |
package org.eclipse.rse.internal.ui.view.scratchpad; |
Lines 82-87
Link Here
|
82 |
import org.eclipse.rse.ui.actions.ISystemAction; |
83 |
import org.eclipse.rse.ui.actions.ISystemAction; |
83 |
import org.eclipse.rse.ui.actions.SystemRefreshAction; |
84 |
import org.eclipse.rse.ui.actions.SystemRefreshAction; |
84 |
import org.eclipse.rse.ui.internal.model.SystemRegistryUI; |
85 |
import org.eclipse.rse.ui.internal.model.SystemRegistryUI; |
|
|
86 |
import org.eclipse.rse.ui.internal.model.SystemScratchpad; |
85 |
import org.eclipse.rse.ui.messages.ISystemMessageLine; |
87 |
import org.eclipse.rse.ui.messages.ISystemMessageLine; |
86 |
import org.eclipse.rse.ui.messages.SystemMessageDialog; |
88 |
import org.eclipse.rse.ui.messages.SystemMessageDialog; |
87 |
import org.eclipse.rse.ui.model.ISystemShellProvider; |
89 |
import org.eclipse.rse.ui.model.ISystemShellProvider; |
Lines 464-478
Link Here
|
464 |
// -------------------------- |
466 |
// -------------------------- |
465 |
case ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_DELETED : |
467 |
case ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_DELETED : |
466 |
{ |
468 |
{ |
467 |
if (remoteResourceParent != null) |
469 |
// check if remoteResource is a root in Scratchpad and if so remove it |
468 |
{ |
470 |
SystemScratchpad scratchpad = SystemRegistryUI.getInstance().getSystemScratchPad(); |
469 |
internalRefresh(remoteResourceParent); |
471 |
if (scratchpad.contains(remoteResource)) |
470 |
} |
472 |
scratchpad.removeChild(remoteResource); |
471 |
else |
473 |
|
472 |
{ |
474 |
// find all references to the remote resource and remove them |
473 |
remove(remoteResource); |
475 |
Widget[] widgets = findItems(remoteResource); |
474 |
|
476 |
for (int i = 0; i < widgets.length; i++) |
475 |
} |
477 |
{ |
|
|
478 |
if (widgets[i] instanceof TreeItem) |
479 |
{ |
480 |
remove(getTreePathFromItem((TreeItem) widgets[i])); |
481 |
} |
482 |
} |
483 |
|
476 |
/* |
484 |
/* |
477 |
{ |
485 |
{ |
478 |
Object dchild = remoteResource; |
486 |
Object dchild = remoteResource; |