Skip to content

Decompose checkInstanceLocation into focused helper methods#4146

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:refactor-checkinstancelocation
Open

Decompose checkInstanceLocation into focused helper methods#4146
vogella wants to merge 1 commit 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.

@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

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±  0     855 suites  ±0   40m 51s ⏱️ - 12m 33s
 8 095 tests ±  0   7 852 ✅ ±  0  243 💤 ± 0  0 ❌ ±0 
19 884 runs   - 303  19 290 ✅  - 243  594 💤  - 60  0 ❌ ±0 

Results for commit 8c6bfa3. ± Comparison against base commit 0aaee1a.

♻️ This comment has been updated with latest results.

@vogella vogella marked this pull request as ready for review July 1, 2026 09:28
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.
@vogella vogella force-pushed the refactor-checkinstancelocation branch from 08c2b7d to 8c6bfa3 Compare July 2, 2026 18:10
@vogella vogella requested a review from Copilot July 2, 2026 18:12

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@vogella

vogella commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

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

done

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