Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 73387 Details for
Bug 189423
[scratchpad][refresh] Scratchpad not completely updated after Delete.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Rewrote code to handle Remote Delete Refresh
patch.txt (text/plain), 2.51 KB, created by
Kevin Doyle
on 2007-07-09 16:29:20 EDT
(
hide
)
Description:
Rewrote code to handle Remote Delete Refresh
Filename:
MIME Type:
Creator:
Kevin Doyle
Created:
2007-07-09 16:29:20 EDT
Size:
2.51 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.ui >Index: UI/org/eclipse/rse/internal/ui/view/scratchpad/SystemScratchpadView.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/scratchpad/SystemScratchpadView.java,v >retrieving revision 1.14 >diff -u -r1.14 SystemScratchpadView.java >--- UI/org/eclipse/rse/internal/ui/view/scratchpad/SystemScratchpadView.java 9 Jul 2007 18:16:18 -0000 1.14 >+++ UI/org/eclipse/rse/internal/ui/view/scratchpad/SystemScratchpadView.java 9 Jul 2007 20:08:26 -0000 >@@ -16,6 +16,7 @@ > * Kevin Doyle (IBM) - [192278] Removed handleKeyPressed > * Kevin Doyle (IBM) - [189150] _selectionFlagsUpdated reset after clear action performed > * Kevin Doyle (IBM) - [195537] Use Hashlookup and ElementComparer >+ * Kevin Doyle (IBM) - [189423] Scratchpad not completely updated after Delete. > ********************************************************************************/ > > package org.eclipse.rse.internal.ui.view.scratchpad; >@@ -82,6 +83,7 @@ > import org.eclipse.rse.ui.actions.ISystemAction; > import org.eclipse.rse.ui.actions.SystemRefreshAction; > import org.eclipse.rse.ui.internal.model.SystemRegistryUI; >+import org.eclipse.rse.ui.internal.model.SystemScratchpad; > import org.eclipse.rse.ui.messages.ISystemMessageLine; > import org.eclipse.rse.ui.messages.SystemMessageDialog; > import org.eclipse.rse.ui.model.ISystemShellProvider; >@@ -464,15 +466,21 @@ > // -------------------------- > case ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_DELETED : > { >- if (remoteResourceParent != null) >- { >- internalRefresh(remoteResourceParent); >- } >- else >- { >- remove(remoteResource); >- >- } >+ // check if remoteResource is a root in Scratchpad and if so remove it >+ SystemScratchpad scratchpad = SystemRegistryUI.getInstance().getSystemScratchPad(); >+ if (scratchpad.contains(remoteResource)) >+ scratchpad.removeChild(remoteResource); >+ >+ // find all references to the remote resource and remove them >+ Widget[] widgets = findItems(remoteResource); >+ for (int i = 0; i < widgets.length; i++) >+ { >+ if (widgets[i] instanceof TreeItem) >+ { >+ remove(getTreePathFromItem((TreeItem) widgets[i])); >+ } >+ } >+ > /* > { > Object dchild = remoteResource;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
mober.at+eclipse
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 189423
: 73387