-
Notifications
You must be signed in to change notification settings - Fork 1
Replacing setTextValue → setText, setText2Value → setText2, setDescriptionValue → setDescription #36
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
Replacing setTextValue → setText, setText2Value → setText2, setDescriptionValue → setDescription #36
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,7 +124,7 @@ public GitUpdateProcess( | |
| public GitUpdateResult update(UpdateMethod updateMethod) { | ||
| LOG.info("update started|" + updateMethod); | ||
| LocalizeValue oldText = myProgressIndicator.getTextValue(); | ||
| myProgressIndicator.setTextValue(LocalizeValue.localizeTODO("Updating...")); | ||
| myProgressIndicator.setText(LocalizeValue.localizeTODO("Updating...")); | ||
|
|
||
|
Comment on lines
124
to
128
|
||
| for (GitRepository repository : myRepositories) { | ||
| repository.update(); | ||
|
|
@@ -146,7 +146,7 @@ public GitUpdateResult update(UpdateMethod updateMethod) { | |
| try (AccessToken ignored = DvcsUtil.workingTreeChangeStarted(myProject, "VCS Update")) { | ||
| result = updateImpl(updateMethod); | ||
| } | ||
| myProgressIndicator.setTextValue(oldText); | ||
| myProgressIndicator.setText(oldText); | ||
| return result; | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The progress indicator text is restored only on the success/failure path inside the
tryblock. IfProcessCanceledExceptionis thrown, the method returns without resetting the text tooriginalText, which can leave stale "Merging..." in the UI if the indicator is reused. Consider restoringoriginalTextin afinallyblock (or in the cancel path) before returning.