-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support names for Updates repositories in product definition #824
Support names for Updates repositories in product definition #824
Conversation
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.
Thanks @jcompagner for this PR.
I had only time for a quick look yet, but it looks good so far.
But please revert all the changes in the launch config. Those are not related.
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/product/RepositoryInfo.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/dialogs/RepositoryResult.java
Outdated
Show resolved
Hide resolved
Test Results 270 files + 6 270 suites +6 1h 13m 56s ⏱️ + 23m 17s Results for commit 373e5aa. ± Comparison against base commit b3d1df7. This pull request removes 1 test.
♻️ This comment has been updated with latest results. |
1abed0e
to
629cbdc
Compare
3d6dc69
to
6af0930
Compare
6af0930
to
373e5aa
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.
Thanks @jcompagner for this PR.
I did a few cosmetic changes, unified the order of some elements, moved the URL and name trimming to the canonical constructor of the RepositoryResult
record and adjusted the reference to the P2-issue (since it is in another repo, the full URL is required).
Furthermore I improved the handling of empty names so that in case one leaves the name blank the name element is not written. This is especially important since no existing product has the name element and will therefore first have a null name read when being loaded the next time. Without consideration the name null
would be set and we would suddenly have many repos named null
. Long story short, if no name element exists none will be added automatically but one actively has to add a name. In order to remove an existing name, one can just clear the name field.
With that this is ready.
product file editor and then the repository section but also the category editor which uses the same stuff (code is very simular)
Indeed I'm tempted to unify this code as far as possible but this is something for follow up PRs.
In general I would also like to make the dialog to enter the name and the URL obsolete and let users just enter the name and URL in the table directly.
I also checked the processing of category.xml files in p2 and it looks like that is already handled, so nothing needs to be done for that part: |
2 editors are changed: product file editor and then the repository section but also the category editor which uses the same stuff (code is very simular)
UI part for eclipse-equinox/p2#345