Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the static MessageDialog#openQuestion to UX guidelines from the OS #181

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

vogella
Copy link
Contributor

@vogella vogella commented Jun 30, 2022

Operating system Ui guidelines do not recommend the usage of the help /
question
icon in a dialog. This change adjusts the MessageDialog#openQuestion
accordingly.As this will affect all callers of this method, it has will
lead a consistency for callers, users which want / need to violate UX
guidelines of the OS can switch to the non static methods or use
PlainMessageDialog to construct their dialog in a way which they want.

The reasoning for this change is that platform is allowed to adjust its
UI to UX changes in the OS and that the UX of Eclipse is not considered
API.

For example check the screenshots in the Windows
guidelines for dialogs.

Operating System UI Guidelines

Windows UI guidence
https://docs.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/dialogs

Gnome UI guidence
https://developer.gnome.org/hig/patterns/feedback/dialogs.html

Mac UI guidence
https://developer.apple.com/design/human-interface-guidelines/components/presentation/alerts/

OS

Operating system Ui guidelines do not recommend the usage of the help /
question
icon in a dialog. This change adjusts the MessageDialog#openQuestion
accordingly.As this will affect all callers of this method, it has will
lead a consistency for callers, users which want / need to violate UX
guidelines of the OS can switch to the non static methods or use
PlainMessageDialog to construct their dialog in a way which they want.

The reasoning for this change is that platform is allowed to adjust its
UI to UX changes in the OS and that the UX of Eclipse is not considered
API.

For example check the screenshots in the Windows
guidelines for dialogs.

Operating System UI Guidelines

Windows UI guidence
https://docs.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/dialogs

Gnome UI guidence
https://developer.gnome.org/hig/patterns/feedback/dialogs.html

Mac UI guidence
https://developer.apple.com/design/human-interface-guidelines/components/presentation/alerts/
@vogella vogella requested a review from akurtakov June 30, 2022 13:55
@@ -246,7 +247,6 @@ private void init(String dialogTitle, Image dialogTitleImage, String dialogMessa
case QUESTION:
case QUESTION_WITH_CANCEL:
case CONFIRM: {
this.image = getQuestionImage();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should leave "CONFIRM" as is and jsut break at QUESTION/WITH_CANCEL? Or even use JFacePreferences to decide if icon should be shown or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see an example for confirmation dialog using a question / help icon in the guidelines https://docs.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/dialogs Check for section "Confirmation dialogs (OK/Cancel)".

@vogella vogella merged commit 29772f0 into master Jul 4, 2022
@vogella vogella deleted the openQuestion-without-icon branch July 4, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants