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

Add help context for the find/replace overlay #2171

Conversation

Wittmaxi
Copy link

@Wittmaxi Wittmaxi commented Jul 8, 2024

Adds a help context for the find/replace overlay which links to the help context for the dialog.

related to
eclipse-platform/eclipse.platform.ui#2045

@Wittmaxi
Copy link
Author

Wittmaxi commented Jul 8, 2024

grafik

Comment on lines 514 to 515
<description>Overlay to find and replace specified text.</description>
<topic label="Find/Replace with regular expressions" href="reference/ref-regex-find-replace.htm" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Please correct indentation (and maybe also fix the one in the context where this was copied from).

Copy link
Author

Choose a reason for hiding this comment

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

Can you please check that the indentation is wrong in the IDE as well? Sometimes github shows some indentation wrong. This is what I see in the IDE:

grafik

Copy link
Contributor

Choose a reason for hiding this comment

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

The indentation is inconsistent, which is why different viewers render different visible indentations. One line uses whitespaces and one uses tabs. In the IDE, by accident, the number of whitespaces aligns with the tab size (you could even tell the IDE to render tabs differently and would then also see a difference):
image

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I didn't see that!
I have changed all tabs into four spaces

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks. Unfortunately, just transforming tabs into whitespaces is not correct, as there have been combinations of whitespaces and tabs which still behaves like a single tab (e.g. 1 whitespace + 1 tab behaves like 1 tab). So there are now places with too many whitespaces.

Copy link
Author

Choose a reason for hiding this comment

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

It looks like Eclipse has no autoformat for XML by default (??!)
I copied the file into vscode (which also doesn't autoformat XMLs by default?! I used the RedHat XML extension) and formatted it there.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, if I am not mistaken, both require (additional) extensions to (auto-)format XMLs.

@Wittmaxi Wittmaxi force-pushed the MW_help_context_find_replace_overlay branch 2 times, most recently from 177ad21 to 32cebf4 Compare July 8, 2024 09:35
@HeikoKlare HeikoKlare force-pushed the MW_help_context_find_replace_overlay branch 2 times, most recently from f02586a to 6e7f00a Compare July 9, 2024 09:22
Adds a help context for the find/replace overlay which links to the help
context for the dialog.

related to
eclipse-platform/eclipse.platform.ui#2045
@HeikoKlare HeikoKlare force-pushed the MW_help_context_find_replace_overlay branch from 6e7f00a to 4405b07 Compare July 9, 2024 11:08
@HeikoKlare HeikoKlare merged commit c3795f3 into eclipse-platform:master Jul 9, 2024
3 of 4 checks passed
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.

2 participants