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 52865 Details for
Bug 162595
Debug view should call IDebugContextListener.contextChanged() if parent of the selected item sends IModelDelta.CONTENT.
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]
Patch to LaunchViewUpdatePolicy.java@@1.14
contextChanged.patch (text/plain), 1.93 KB, created by
Pawel Piech
on 2006-10-27 13:01:47 EDT
(
hide
)
Description:
Patch to LaunchViewUpdatePolicy.java@@1.14
Filename:
MIME Type:
Creator:
Pawel Piech
Created:
2006-10-27 13:01:47 EDT
Size:
1.93 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.debug.ui >Index: ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java,v >retrieving revision 1.14 >diff -u -r1.14 LaunchViewUpdatePolicy.java >--- ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java 25 Oct 2006 19:55:07 -0000 1.14 >+++ ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java 27 Oct 2006 16:59:25 -0000 >@@ -51,7 +51,25 @@ > if ((delta.getFlags() & IModelDelta.SELECT) == 0) { > // a content change without select or selection is a possible activation > fView.possibleContextChange(delta.getElement(), DebugContextEvent.ACTIVATED); >- } >+ } else { >+ // Check if current selection is a child of the node that is changed. >+ // If so call listeners with IDebugContextListener.contextChanged(). >+ ISelection selection = viewer.getSelection(); >+ if (selection instanceof IStructuredSelection ) { >+ Object element = ((IStructuredSelection)selection).getFirstElement(); >+ if (element != null) { >+ TreePath[] paths = viewer.getTreePaths(element); >+ for (int i = 0; i < paths.length; i++) { >+ for (int j = 0; j < paths[i].getSegmentCount(); j++) { >+ if (element.equals(paths[i].getSegment(j))) { >+ fView.possibleContextChange(element, DebugContextEvent.STATE); >+ return; >+ } >+ } >+ } >+ } >+ } >+ } > } > >
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 162595
: 52865