Skip to content

Fix: Update name-relative fields even when project name is empty#2348

Open
vlakn wants to merge 1 commit into
eclipse-pde:masterfrom
vlakn:fix_name_modify_listener_of_feature_spec_page
Open

Fix: Update name-relative fields even when project name is empty#2348
vlakn wants to merge 1 commit into
eclipse-pde:masterfrom
vlakn:fix_name_modify_listener_of_feature_spec_page

Conversation

@vlakn
Copy link
Copy Markdown

@vlakn vlakn commented May 28, 2026

Problem

When the project name field was left empty (or otherwise invalid), the feature name and version fields were not being updated automatically. This broke the "auto-fill" behaviour that derives name-relative field values from the project name during the initial wizard state.

before

Fix

Moved the updateNameRelativeFields() call to before the early-return guard, so that name-relative fields are always refreshed when fUpdateName is true, regardless of whether the rest of the page is currently valid.

after

Copy link
Copy Markdown
Contributor

@r-mennig r-mennig left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Before
public void setUp() {
fDisplay = Display.getDefault();
fDisplay.syncExec(() -> fShell = new Shell(fDisplay));
Copy link
Copy Markdown
Contributor

@r-mennig r-mennig May 29, 2026

Choose a reason for hiding this comment

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

Calling Display.syncExec() here and further below shouldn't be necessary since the test is already running in the UI thread.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for your review! I removed the unnecessary Display.syncExec() calls.

@vlakn vlakn force-pushed the fix_name_modify_listener_of_feature_spec_page branch 2 times, most recently from eee162d to f2633eb Compare May 29, 2026 09:09
@vlakn vlakn force-pushed the fix_name_modify_listener_of_feature_spec_page branch from f2633eb to 6670661 Compare June 1, 2026 13:43
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Test Results

  126 files  ±0    126 suites  ±0   35m 45s ⏱️ +30s
3 510 tests ±0  3 456 ✅ +40   54 💤 ±0  0 ❌  - 40 
9 333 runs  ±0  9 203 ✅ +40  130 💤 ±0  0 ❌  - 40 

Results for commit 6670661. ± Comparison against base commit 30b4e72.

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