-
Notifications
You must be signed in to change notification settings - Fork 82
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
Correctly update location attributes in Target Editor #1256
base: master
Are you sure you want to change the base?
Correctly update location attributes in Target Editor #1256
Conversation
@HannesWell Might interest you as it is the indirect result of one of your comments |
4801ce1
to
3980d24
Compare
Sadly, this patch internally uses As an example, disabling
Ends up as
|
These were completely ignored before iar add test
Using a local variable and putIfAbsent makes the code more compact and legible
3980d24
to
78407cd
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.
It looks fine for me and a changed URL should of course be respected.
Test Results 291 files + 6 291 suites +6 1h 0m 14s ⏱️ + 10m 26s For more details on these errors, see this check. Results for commit afdb8e5. ± Comparison against base commit 00c9caf. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
I'll have a look at this tomorrow. |
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.
I have tried out your change and it updates the location's attribute. But at the same time it write the entire location element and all its nested children in one line.
I have not found out why this happens, I guess that modifying the XML element does not preserve existing white-space, but that has to be fixed before this can be submitted.
...ension.tests/src/org/eclipse/pde/genericeditor/extension/tests/Bug531602FormattingTests.java
Outdated
Show resolved
Hide resolved
...ension.tests/src/org/eclipse/pde/genericeditor/extension/tests/Bug531602FormattingTests.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/TargetDefinition.java
Outdated
Show resolved
Hide resolved
...ension.tests/src/org/eclipse/pde/genericeditor/extension/tests/Bug531602FormattingTests.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Hannes Wellmann <[email protected]>
@HannesWell I did notice this when creating this patch, see my comment above for more details. As mentioned, if fixing this is required then sadly this ticket will not land at all as I do not plan to fix the existing bug. |
Sorry, it looks like it was already a bit late yesterday. Ideally both would be fixed and I would be fine to keep this open until you or somebody else finds the time/motivation to fix the other issues. |
Fixes #1255