-
Notifications
You must be signed in to change notification settings - Fork 22
Feature/push channel support #289
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
base: master
Are you sure you want to change the base?
Feature/push channel support #289
Conversation
org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPull.java
Outdated
Show resolved
Hide resolved
org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPull.java
Outdated
Show resolved
Hide resolved
org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPull.java
Outdated
Show resolved
Hide resolved
org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPull.java
Outdated
Show resolved
Hide resolved
org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPull.java
Outdated
Show resolved
Hide resolved
org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPull.java
Outdated
Show resolved
Hide resolved
} catch (Exception e) { | ||
Display.getDefault().asyncExec(() -> { | ||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); | ||
MessageDialog.openError(shell, "Error", e.getMessage()); //$NON-NLS-1$ |
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.
Same comment like in AbapGitWizardPull class.
Can reuse the title here.
try { | ||
getContainer().run(true, true, new IRunnableWithProgress() { | ||
Job pullJob = new Job("Pull Repository"){ //$NON-NLS-1$ |
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.
Same comment like in AbapGitWizardPull class.
Can reuse the title here
Set<IRepositoryModifiedObjects> pageOverwriteObjects = this.pageOverwriteObjectsSelection.getSelectedObjects(); | ||
Set<IRepositoryModifiedObjects> pagePackageWarningObjects = this.pagePackageWarningObjectsSelection.getSelectedObjects(); |
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.
Same comment like in AbapGitWizardPull class.
Can rename the variable names.
return Status.OK_STATUS; | ||
|
||
} catch (ResourceException e) { | ||
showErrorMessage(e.getMessage()); |
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.
I don't think we need to show the error message explicitly.
It will be taken care of by the Jobs API, once we return the Error Status, like you have done in line 192.
return Status.OK_STATUS; | ||
|
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.
Can we refresh the repositories view after the job is finished ?
I am not very sure.
Push Channel Support for long running jobs:
Backlog link : https://jira.tools.sap/browse/ADTIRA-1494
Changes Made: