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 178253 Details for
Bug 324557
ScrollingGraphicalViewer should respect HandleBounds in reveal()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Little change to make that work...
patch.txt (text/plain), 1.25 KB, created by
Hasan Ceylan
on 2010-09-06 06:10:19 EDT
(
hide
)
Description:
Little change to make that work...
Filename:
MIME Type:
Creator:
Hasan Ceylan
Created:
2010-09-06 06:10:19 EDT
Size:
1.25 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gef >Index: src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.gef/src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java,v >retrieving revision 1.15 >diff -u -r1.15 ScrollingGraphicalViewer.java >--- src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java 19 May 2010 20:27:55 -0000 1.15 >+++ src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java 6 Sep 2010 09:21:36 -0000 >@@ -22,6 +22,7 @@ > > import org.eclipse.gef.EditPart; > import org.eclipse.gef.GraphicalEditPart; >+import org.eclipse.gef.handles.HandleBounds; > > /** > * A Graphical Viewer implementation which uses a >@@ -88,7 +89,9 @@ > super.reveal(part); > Viewport port = getFigureCanvas().getViewport(); > IFigure target = ((GraphicalEditPart) part).getFigure(); >- Rectangle exposeRegion = target.getBounds().getCopy(); >+ Rectangle exposeRegion = target instanceof HandleBounds ? >+ ((HandleBounds) target).getHandleBounds().getCopy() : >+ target.getBounds().getCopy(); > target = target.getParent(); > while (target != null && target != port) { > target.translateToParent(exposeRegion);
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 Raw
Actions:
View
Attachments on
bug 324557
:
178251
| 178253