Skip to content

Show warning dialog after refactoring operation if something isn't valid#10080

Merged
svor merged 2 commits into5730_java_ls_pocfrom
che-10034
Jun 20, 2018
Merged

Show warning dialog after refactoring operation if something isn't valid#10080
svor merged 2 commits into5730_java_ls_pocfrom
che-10034

Conversation

@svor
Copy link
Copy Markdown
Contributor

@svor svor commented Jun 18, 2018

Signed-off-by: Valeriy Svydenko vsvydenk@redhat.com

What does this PR do?

After preparing changes of refactoring operation it may have some error/warning status. So the main idea of current PR is to show warning dialog before applying changes.

What issues does this PR fix or reference?

#10034

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
@svor svor requested review from tolusha and tsmaeder June 18, 2018 08:40
@svor svor requested review from evidolob and vparfonov as code owners June 18, 2018 08:40
@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/branch Indicates that a PR will be merged into a branch other than master. labels Jun 18, 2018
undoChanges();
applyWorkspaceEditAction.applyWorkspaceEdit(edits);
RefactoringStatus refactoringStatus = result.getRefactoringStatus();
if (!FATAL.equals(refactoringStatus.getRefactoringSeverity())) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How do we inform the user that something went wrong in this case?

Copy link
Copy Markdown
Contributor Author

@svor svor Jun 20, 2018

Choose a reason for hiding this comment

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

added a way to show notification with an error message

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
@svor svor merged commit b30b7f2 into 5730_java_ls_poc Jun 20, 2018
@svor svor deleted the che-10034 branch June 20, 2018 08:49
@svor svor removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jun 20, 2018
tsmaeder pushed a commit that referenced this pull request Jun 26, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Jul 13, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Jul 27, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tolusha pushed a commit that referenced this pull request Aug 7, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Aug 22, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Aug 29, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tolusha pushed a commit that referenced this pull request Sep 5, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Sep 13, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Sep 20, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Sep 26, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 1, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 5, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 12, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 16, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
…lid (#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
(#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
(#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
tsmaeder pushed a commit that referenced this pull request Oct 17, 2018
(#10080)

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/branch Indicates that a PR will be merged into a branch other than master.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants