Skip to content

Decompose checkInstanceLocation into focused helper methods#4146

Draft
vogella wants to merge 2 commits into
eclipse-platform:masterfrom
vogella:refactor-checkinstancelocation
Draft

Decompose checkInstanceLocation into focused helper methods#4146
vogella wants to merge 2 commits into
eclipse-platform:masterfrom
vogella:refactor-checkinstancelocation

Conversation

@vogella

@vogella vogella commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Refactors the long checkInstanceLocation method into a short orchestrator by extracting the already-set lock handling (lockExistingWorkspace), the prompt-retry loop (promptAndSetWorkspace), and the inline "workspace in use" dialog (openWorkspaceInUseDialog). Pure extraction, no behavior change. Stacked on #4140 (the two overlap in the same method), so this currently includes that commit as well; kept as a draft until #4140 merges, after which it rebases down to a single-commit extraction diff.

vogella added 2 commits June 26, 2026 10:32
The "already set" branch of checkInstanceLocation repeated hideSplash and
the generic "cannot be set" error dialog across a nested if/else. Collapse
to a single splash hide and one error path; behavior is unchanged.
Extract the already-set lock handling, the prompt-retry loop, and the
"workspace in use" dialog into lockExistingWorkspace, promptAndSetWorkspace,
and openWorkspaceInUseDialog, leaving checkInstanceLocation as a short
orchestrator. Pure extraction; behavior is unchanged.
@iloveeclipse

Copy link
Copy Markdown
Member

Please keep all methods extracted from protected methods also protected, so they could be overriden if needed.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   50m 45s ⏱️ -11s
 8 083 tests ±0   7 840 ✅ +1  243 💤 ±0  0 ❌  - 1 
20 151 runs  ±0  19 497 ✅ +1  654 💤 ±0  0 ❌  - 1 

Results for commit 08c2b7d. ± Comparison against base commit 8059976.

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.

3 participants