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 74572 Details for
Bug 194899
[Scratchpad] Remove All should do a full reset of the scratchpad
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Reset the views input if the view's input is not SystemScratchpad
patch.txt (text/plain), 1.65 KB, created by
Kevin Doyle
on 2007-07-25 10:54:34 EDT
(
hide
)
Description:
Reset the views input if the view's input is not SystemScratchpad
Filename:
MIME Type:
Creator:
Kevin Doyle
Created:
2007-07-25 10:54:34 EDT
Size:
1.65 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.ui >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.5 >diff -u -r1.5 ClearAction.java >--- UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearAction.java 4 Jul 2007 17:51:00 -0000 1.5 >+++ UI/org/eclipse/rse/internal/ui/view/scratchpad/ClearAction.java 25 Jul 2007 14:48:36 -0000 >@@ -14,6 +14,7 @@ > * 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() >+ * Kevin Doyle (IBM) - [194899] Remove All should do a full reset of the scratchpad > ********************************************************************************/ > > >@@ -53,9 +54,14 @@ > // clear contents of the current command viewer > private void clear() > { >- _scratchPad.clearChildren(); >+ // Reset the SystemScratchpad >+ _scratchPad.clearChildren(); >+ // Set the input of the view to SystemScratchpad if it has changed >+ if (_view.getInput() != _scratchPad) { >+ _view.setInput(_scratchPad); >+ } >+ // Refresh the Scratchpad and update action states > 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
Flags:
mober.at+eclipse
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 194899
: 74572