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 27837 Details for
Bug 108801
[Dialogs] Some dialogs always open on secondary monitor when using dual monitors
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]
experimental patch for JFace Window
Window.108801.patch (text/plain), 914 bytes, created by
Susan McCourt
on 2005-10-04 17:44:09 EDT
(
hide
)
Description:
experimental patch for JFace Window
Filename:
MIME Type:
Creator:
Susan McCourt
Created:
2005-10-04 17:44:09 EDT
Size:
914 bytes
patch
obsolete
>Index: Window.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jface/src/org/eclipse/jface/window/Window.java,v >retrieving revision 1.35 >diff -u -r1.35 Window.java >--- Window.java 13 May 2005 15:08:57 -0000 1.35 >+++ Window.java 4 Oct 2005 21:42:05 -0000 >@@ -941,10 +941,13 @@ > Rectangle result = new Rectangle(preferredSize.x, preferredSize.y, > preferredSize.width, preferredSize.height); > >- Monitor mon = getClosestMonitor(getShell().getDisplay(), Geometry >- .centerPoint(result)); >+ Monitor monitor = shell.getDisplay().getPrimaryMonitor(); >+ Composite parent = shell.getParent(); >+ if (parent != null) { >+ monitor = parent.getMonitor(); >+ } > >- Rectangle bounds = mon.getClientArea(); >+ Rectangle bounds = monitor.getClientArea(); > > if (result.height > bounds.height) { > result.height = bounds.height;
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 108801
: 27837