[8] Review request for 8010721: [macosx] In JDK7 the menu bar disappears when a Dialog is shown (original) (raw)
Vladislav Karnaukhov Vladislav.Karnaukhov at oracle.com
Wed Apr 3 03:20:35 PDT 2013
- Previous message: [8] Review request for 8010721: [macosx] In JDK7 the menu bar disappears when a Dialog is shown
- Next message: [8] Review request for 8010721: [macosx] In JDK7 the menu bar disappears when a Dialog is shown
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Anthony, all,
thanks for the review; please see inline.
Please find a new version here: http://cr.openjdk.java.net/~vkarnauk/8010721/jdk8/webrev.03/
On 4/2/2013 01:42 PM, Anthony Petrov wrote:
Hi Vladislav,
541 [CMenuBar activate:self.javaMenuBar modallyDisabled:NO]; Should this call be wrapped in an if (self.javaMenuBar != NULL) check? The same question about line 543 and the opposite->javaMenuBar correspondingly. "activate" is a static function and there's a null check inside. We can pass the parameter without additional null check.
Also, are we sure that "opposite" is always non-null? What happens if you switch to another app, and then click on the dialog making it a key window again? Agreed. I added a null check for "opposite" variable.
-- best regards, Anthony On 4/1/2013 16:48, Vladislav Karnaukhov wrote: Hello Sergey, all,
please review a new version: http://cr.openjdk.java.net/~vkarnauk/8010721/jdk8/webrev.02/ I agree that previous one was too complex and error-prone. The current version is much lighter and addresses various use-cases with different windows types and modality. Regards, - Vlad On 3/28/2013 07:49 PM, Sergey Bylokhov wrote: Not sure that now it looks better.
On 3/28/13 7:23 PM, Vladislav Karnaukhov wrote: Hello Leonid, all,
thanks for the review and could you please review a new version: http://cr.openjdk.java.net/~vkarnauk/8010721/jdk8/webrev.01/ This version is implemented completely via JNF; I removed all changes from Java part. Regards, - Vlad On 27.03.13 18:10, Leonid Romanov wrote: Hi, For 1, perhaps you could use AWTWindow's javaPlatformWindow to get to corresponding LWWindowPeer, which has peerType field.
On Mar 27, 2013, at 5:45 PM, Vladislav Karnaukhov<Vladislav.Karnaukhov at oracle.com> wrote:
Hello,
please review a fix for 8010721. bug: http://bugs.sun.com/viewbug.do?bugid=8010721 webrev: http://cr.openjdk.java.net/~vkarnauk/8010721/jdk8/webrev.00/ This implementation handles a scenario when a modal dialog is shown: in this case we dim main window' menu bar items (if any). However, there are 2 issues that I'd like to discuss: 1. Apple JDK always hides the menu bar when a new form doesn't have any. My realization keeps the main form' menu bar if a new form is shown. I wasn't able to determine a way to distinguish a Frame from a Dialog: both of them are AWTWindow. 2. Could you please provide ideas for tests (if we need them here)? When a modal dialog is being shown, can we access the menu bar to check if items became dimmed? Regards, - Vlad
- Previous message: [8] Review request for 8010721: [macosx] In JDK7 the menu bar disappears when a Dialog is shown
- Next message: [8] Review request for 8010721: [macosx] In JDK7 the menu bar disappears when a Dialog is shown
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]