Java Code Examples for com.intellij.ui.mac.foundation.MacUtil#adjustFocusTraversal()

The following examples show how to use com.intellij.ui.mac.foundation.MacUtil#adjustFocusTraversal() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MultiSelectDialog.java    From AndroidStringsOneTabTranslation with Apache License 2.0 6 votes vote down vote up
protected void _init(Project project,
                     String title,
                     String message,
                     @Nullable String checkboxText,
                     boolean checkboxStatus,
                     @Nullable DoNotAskOption doNotAskOption) {
    setTitle(title);
    if (Messages.isMacSheetEmulation()) {
        setUndecorated(true);
    }
    propertiesComponent = PropertiesComponent.getInstance(project);
    myMessage = message;
    myCheckboxText = checkboxText;
    myChecked = checkboxStatus;
    setButtonsAlignment(SwingConstants.RIGHT);
    setDoNotAskOption(doNotAskOption);
    init();
    if (Messages.isMacSheetEmulation()) {
        MacUtil.adjustFocusTraversal(myDisposable);
    }
}
 
Example 2
Source File: Messages.java    From consulo with Apache License 2.0 6 votes vote down vote up
protected void _init(String title,
                     String message,
                     @Nonnull String[] options,
                     int defaultOptionIndex,
                     int focusedOptionIndex,
                     @Nullable Icon icon,
                     @Nullable DoNotAskOption doNotAskOption) {
  setTitle(title);
  if (isMacSheetEmulation()) {
    setUndecorated(true);
  }
  myMessage = message;
  myOptions = options;
  myDefaultOptionIndex = defaultOptionIndex;
  myFocusedOptionIndex = focusedOptionIndex;
  myIcon = icon;
  setButtonsAlignment(SwingConstants.CENTER);
  setDoNotAskOption(doNotAskOption);
  init();
  if (isMacSheetEmulation()) {
    MacUtil.adjustFocusTraversal(myDisposable);
  }
}
 
Example 3
Source File: GoogleAlertDialog.java    From AndroidStringsOneTabTranslation with Apache License 2.0 5 votes vote down vote up
protected void _init(String title, String message) {
    setTitle(title);
    mMessage = message;
    if (Messages.isMacSheetEmulation()) {
        setUndecorated(true);
    }

    setButtonsAlignment(SwingConstants.RIGHT);
    setDoNotAskOption(null);
    init();
    if (Messages.isMacSheetEmulation()) {
        MacUtil.adjustFocusTraversal(myDisposable);
    }
}
 
Example 4
Source File: AddFilterRuleDialog.java    From AndroidStringsOneTabTranslation with Apache License 2.0 5 votes vote down vote up
protected void _init(String title,
                     @Nullable DoNotAskOption doNotAskOption) {
    setTitle(title);
    if (Messages.isMacSheetEmulation()) {
        setUndecorated(true);
    }

    setButtonsAlignment(SwingConstants.RIGHT);
    setDoNotAskOption(doNotAskOption);
    init();
    if (Messages.isMacSheetEmulation()) {
        MacUtil.adjustFocusTraversal(myDisposable);
    }
}