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 68791 Details for
Bug 189150
Incorrect Right Click Menu in Scratchpad after Clear Action Used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
After performing a clear operation the selection is set to null
patch.txt (text/plain), 4.17 KB, created by
Kevin Doyle
on 2007-05-25 11:27:46 EDT
(
hide
)
Description:
After performing a clear operation the selection is set to null
Filename:
MIME Type:
Creator:
Kevin Doyle
Created:
2007-05-25 11:27:46 EDT
Size:
4.17 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.11 >diff -u -r1.11 SystemScratchpadView.java >--- UI/org/eclipse/rse/internal/ui/view/scratchpad/SystemScratchpadView.java 23 May 2007 14:28:15 -0000 1.11 >+++ UI/org/eclipse/rse/internal/ui/view/scratchpad/SystemScratchpadView.java 25 May 2007 15:21:45 -0000 >@@ -13,6 +13,7 @@ > * Contributors: > * Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core > * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry >+ * Kevin Doyle (IBM) - [189150] _selectionFlagsUpdated reset after clear action performed > ********************************************************************************/ > > package org.eclipse.rse.internal.ui.view.scratchpad; >@@ -579,13 +580,12 @@ > > public void selectionChanged(SelectionChangedEvent event) > { >- >+ _selectionFlagsUpdated = false; > IStructuredSelection sel = (IStructuredSelection)event.getSelection(); > Object firstSelection = sel.getFirstElement(); > if (firstSelection == null) > return; > >- _selectionFlagsUpdated = false; > ISystemViewElementAdapter adapter = getViewAdapter(firstSelection); > if (adapter != null) > { >@@ -1218,6 +1218,8 @@ > */ > protected boolean showRefresh() > { >+ if (!_selectionFlagsUpdated) >+ scanSelections(); > return _selectionShowRefreshAction; > } > >Index: UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearSelectedAction.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearSelectedAction.java,v >retrieving revision 1.4 >diff -u -r1.4 ClearSelectedAction.java >--- UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearSelectedAction.java 14 May 2007 13:04:58 -0000 1.4 >+++ UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearSelectedAction.java 25 May 2007 15:21:45 -0000 >@@ -13,6 +13,7 @@ > * Contributors: > * Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core > * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry >+ * Kevin Doyle (IBM) - [189150] setSelection(null) added to clear() > ********************************************************************************/ > > package org.eclipse.rse.internal.ui.view.scratchpad; >@@ -78,6 +79,7 @@ > _scratchPad.removeChild(iterator.next()); > } > RSECorePlugin.getTheSystemRegistry().fireEvent(new SystemResourceChangeEvent(_scratchPad, ISystemResourceChangeEvents.EVENT_REFRESH, _scratchPad)); >+ _view.setSelection(null); > //_view.updateActionStates(); > } > } >Index: UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearAction.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearAction.java,v >retrieving revision 1.4 >diff -u -r1.4 ClearAction.java >--- UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearAction.java 14 May 2007 13:04:58 -0000 1.4 >+++ UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearAction.java 25 May 2007 15:21:45 -0000 >@@ -13,6 +13,7 @@ > * Contributors: > * Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core > * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry >+ * Kevin Doyle (IBM) - [189150] setSelection(null) added to clear() > ********************************************************************************/ > > >@@ -54,6 +55,7 @@ > { > _scratchPad.clearChildren(); > RSECorePlugin.getTheSystemRegistry().fireEvent(new SystemResourceChangeEvent(_scratchPad, ISystemResourceChangeEvents.EVENT_REFRESH, _scratchPad)); >+ _view.setSelection(null); > //_view.updateActionStates(); > } > } >\ No newline at end of file
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
Actions:
View
|
Diff
Attachments on
bug 189150
:
68791
|
70132
|
73047