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 37887 Details for
Bug 120634
[variables] Toggle "Show static variables" causes expansion to be lost
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Potential hack
varviewstate.patch (text/plain), 2.51 KB, created by
Kevin Barnes
on 2006-04-06 11:14:03 EDT
(
hide
)
Description:
Potential hack
Filename:
MIME Type:
Creator:
Kevin Barnes
Created:
2006-04-06 11:14:03 EDT
Size:
2.51 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.debug.ui >Index: ui/org/eclipse/jdt/internal/debug/ui/actions/ShowStaticVariablesAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ShowStaticVariablesAction.java,v >retrieving revision 1.5 >diff -u -r1.5 ShowStaticVariablesAction.java >--- ui/org/eclipse/jdt/internal/debug/ui/actions/ShowStaticVariablesAction.java 24 Feb 2005 15:25:56 -0000 1.5 >+++ ui/org/eclipse/jdt/internal/debug/ui/actions/ShowStaticVariablesAction.java 6 Apr 2006 15:02:26 -0000 >@@ -12,10 +12,18 @@ > > > import org.eclipse.debug.core.DebugException; >+import org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer; >+import org.eclipse.debug.internal.ui.views.AbstractViewerState; >+import org.eclipse.debug.internal.ui.views.variables.VariablesView; > import org.eclipse.jdt.debug.core.IJavaVariable; > import org.eclipse.jdt.internal.debug.ui.IJDIPreferencesConstants; > import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin; >+import org.eclipse.jface.action.IAction; >+import org.eclipse.jface.preference.IPreferenceStore; >+import org.eclipse.jface.viewers.ISelection; >+import org.eclipse.jface.viewers.StructuredViewer; > import org.eclipse.jface.viewers.Viewer; >+import org.eclipse.jface.viewers.ViewerFilter; > > /** > * Shows non-final static variables >@@ -49,5 +57,14 @@ > } > } > return true; >- } >+ } >+ >+ public void run(IAction action) { >+// VariablesView view = (VariablesView) getView(); >+// AbstractViewerState state = view.getViewerState(); >+ super.run(action); >+// state.restoreState((AsynchronousTreeViewer) getStructuredViewer()); >+ } >+ >+ > } >#P org.eclipse.debug.ui >Index: ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java,v >retrieving revision 1.132 >diff -u -r1.132 VariablesView.java >--- ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java 3 Apr 2006 19:11:35 -0000 1.132 >+++ ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java 6 Apr 2006 15:02:27 -0000 >@@ -1466,7 +1466,7 @@ > * > * @return the memento of the expanded and selected items in the viewer > */ >- protected AbstractViewerState getViewerState() { >+ public AbstractViewerState getViewerState() { > return new ViewerState(getVariablesViewer()); > } >
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 120634
: 37887