8000 Set the "Dictionary" preference as part of the Oomph setup by ptziegler · Pull Request #847 · eclipse-windowbuilder/windowbuilder · GitHub
[go: up one dir, main page]

Skip to content

Set the "Dictionary" preference as part of the Oomph setup#847

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:spellcheck
Jul 25, 2024
Merged

Set the "Dictionary" preference as part of the Oomph setup#847
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:spellcheck

Conversation

@ptziegler
Copy link
Contributor
@ptziegler ptziegler commented Jul 22, 2024

The dictionary for spell-checking is located in org.eclipse.wb.core. When the workspace is created by the Oomph installer, this file should be used to avoid warnings caused by unknown technical terms.

@ptziegler ptziegler added this to the 1.17.0 milestone Jul 22, 2024
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.ui/spelling_user_dictionary"
value="${workspace.location|uri}/git/windowbuilder/org.eclipse.wb.core/dictionary.txt"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don’t think you should assume a relationship between the workspace location and the clone location. Is the value supposed to be a uri?

Copy link
Contributor

Choose a reason for hiding this comment

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

Use the clone location

rootFolder="${git.clone.windowbuilder.location}"

You can use |uri with that if the path should be converted to a uri.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using the clone location makes it look a lot cleaner. Thanks!

<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.ui/spelling_user_dictionary"
value="${workspace.location|uri}/git/windowbuilder/org.eclipse.wb.core/dictionary.txt"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the clone location

rootFolder="${git.clone.windowbuilder.location}"

You can use |uri with that if the path should be converted to a uri.

Copy link
Contributor
@merks merks left a comment

Choose a reason for hiding this comment

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

Better. :-)

@merks
Copy link
Contributor
merks commented Jul 22, 2024

FYI,, not that it really matters so much, but if you use ${git.clone.windowbuilder.location/org.eclipse.wb.core/dictionary.txt} the / will be converted to \ on Windows.

The dictionary for spell-checking is located in org.eclipse.wb.core.
When the workspace is created by the Oomph installer, this file should
be used to avoid warnings caused by unknown technical terms.
@ptziegler
Copy link
Contributor Author

FYI,, not that it really matters so much, but if you use ${git.clone.windowbuilder.location/org.eclipse.wb.core/dictionary.txt} the / will be converted to \ on Windows.

I suppose it's always good practice to avoid the chance of weird path-delimiter shenanigans. Thank you for your feedback!

@merks
Copy link
Contributor
merks commented Jul 25, 2024

It looks perfect now. 👍

@ptziegler ptziegler merged commit ce36bdb into eclipse-windowbuilder:master Jul 25, 2024
@ptziegler ptziegler deleted the spellcheck branch July 25, 2024 14:13
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

0