-
Notifications
You must be signed in to change notification settings - Fork 116
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
Bug 571572 - UI for setting the location of the toolchain.xml files #114 #1643
Bug 571572 - UI for setting the location of the toolchain.xml files #114 #1643
Conversation
f176848
to
d0427d0
Compare
org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMaven.java
Outdated
Show resolved
Hide resolved
d0427d0
to
aa6e2b5
Compare
aa6e2b5
to
1390386
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@G-Ork thank you for this contribution.
It looks really good and is a good enhancement for M2E.
I have some remarks below.
In general, especially in the preferences, there is now (and even before) a lot of code-duplication. But this can also be cleaned up in a follow-up change.
org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/Messages.java
Outdated
Show resolved
Hide resolved
org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/IMavenToolbox.java
Outdated
Show resolved
Hide resolved
...2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
Outdated
Show resolved
Hide resolved
...2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
Outdated
Show resolved
Hide resolved
df8b825
to
5af6148
Compare
and show all warnings in case multiple user-setting files cannot be read.
5af6148
to
85aabd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@G-Ork I have now applied all the requested changes by myself and added a separate first commit where I did the unifications.
With that this is ready for submission.
What would be great, if you could add a test-case in a follow-up PR to verify that it works as expected and is ensured to continue to work in the future.
@HannesWell Thank you for for doing the cleanup. I will care for a test the next days. I have also a strong wish to change the design of that page. I do not like the vertical stacked layout (label, input). I would group in global and user settings and make the layout horizontal (label -> input -> button(s)). I guess we separate this in two PRs? |
Thanks for working on the test. Yes please split that into two separate PRs. |
Looks good in general. But regarding Icons vs Text, it is quite common in the eclipse UI to use texts on buttons instead of icons. For the sake of consistency we should probably keep that. |
It's used sometimes in Platform though (eg Project > Properties > Resources has icons for navigate or copy). |
I do not insist on icons. So the next is just my opinion and not serious attempt to argument for icons: The use of icons and the constants for common icons is not well documented. I guess this this the main reason for the plain designs. @mickaelistria I think accessibility is not the problem. The button will get tooltip. |
That could be the case, but I'm not sure. But I suggest you create a PR from your current changes and we discuss it there. :) |
I've added the text field to configure the user toolchains definition. Its just for the convenience.
Other changes:
Sorry i've crushed the previous PR #1639 by lack of git skills :)
Fixes #114