Skip to content
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

Refactored Window class #8374

Merged
merged 41 commits into from
Feb 12, 2018
Merged

Refactored Window class #8374

merged 41 commits into from
Feb 12, 2018

Conversation

vzhukovs
Copy link
Contributor

@vzhukovs vzhukovs commented Jan 19, 2018

What does this PR do?

  • Clean up the interface of Window class;
  • Move GWT specific functionality to bridge (CompositeWindowView) which is responsible only for construct window object on the view;
  • Better handling key press events on the windows;
  • Adopted Window implementations to use new interface of Window class;
  • Move utility methods such as detecting whether widget is in focus to DomUtils utility class.

Signed-off-by: Vladyslav Zhukovskyi vzhukovs@redhat.com

What issues does this PR fix or reference?

#7200

Release Notes

Docs PR

- Clean up the interface of Window class;
- Move GWT specific functionality to bridge (CompositeWindowView) which is responsible only for construct window object on the view;
- Better handling key press events on the windows;
- Adopted Window implementations to use new interface of Window class;
- Move utility methods such as detecting whether widget is in focus to DomUtils utility class.

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@benoitf benoitf added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jan 19, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs vzhukovs removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jan 19, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 19, 2018
@benoitf benoitf added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jan 19, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

# Conflicts:
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/factory/json/ImportFromConfigViewImpl.java
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/resources/selector/SelectPathViewImpl.java
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/upload/file/UploadFileViewImpl.java
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/upload/folder/UploadFolderFromZipViewImpl.java
#	ide/che-core-ide-ui/src/main/resources/org/eclipse/che/ide/ui/window/CompositeWindowView.css
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/checkout/CheckoutReferenceViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/compare/CompareViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/fetch/FetchViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/history/HistoryViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/merge/MergeViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/pull/PullViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/push/PushToRemoteViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/remote/RemoteViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/reset/commit/ResetToCommitViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/reset/files/ResetFilesViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/revert/RevertCommitViewImpl.java
#	plugins/plugin-help/che-plugin-help-ext-client/src/main/java/org/eclipse/che/ide/ext/help/client/about/AboutViewImpl.java
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

# Conflicts:
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/factory/json/ImportFromConfigViewImpl.java
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/resources/selector/SelectPathViewImpl.java
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/upload/file/UploadFileViewImpl.java
#	ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/upload/folder/UploadFolderFromZipViewImpl.java
#	ide/che-core-ide-ui/src/main/resources/org/eclipse/che/ide/ui/window/CompositeWindowView.css
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/checkout/CheckoutReferenceViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/compare/CompareViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/fetch/FetchViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/history/HistoryViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/merge/MergeViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/pull/PullViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/push/PushToRemoteViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/remote/RemoteViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/reset/commit/ResetToCommitViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/reset/files/ResetFilesViewImpl.java
#	plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/revert/RevertCommitViewImpl.java
#	plugins/plugin-help/che-plugin-help-ext-client/src/main/java/org/eclipse/che/ide/ext/help/client/about/AboutViewImpl.java
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 22, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 23, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 23, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 23, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 23, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 23, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Jan 23, 2018
@vzhukovs
Copy link
Contributor Author

vzhukovs commented Feb 6, 2018

ci-test

@codenvy-ci
Copy link

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:8374
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

# Conflicts:
#	plugins/plugin-java/che-plugin-java-ext-lang-client/src/main/java/org/eclipse/che/ide/ext/java/client/navigation/filestructure/FileStructurePresenter.java
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@eclipse-che eclipse-che deleted a comment from codenvy-ci Feb 7, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Feb 7, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Feb 7, 2018
@vzhukovs
Copy link
Contributor Author

vzhukovs commented Feb 7, 2018

ci-build

@eclipse-che eclipse-che deleted a comment from codenvy-ci Feb 7, 2018
@codenvy-ci
Copy link

@@ -36,7 +35,7 @@

private static final CommandEditorViewImplUiBinder UI_BINDER =
GWT.create(CommandEditorViewImplUiBinder.class);
private static final Window.Resources WINDOW_RESOURCES = GWT.create(Window.Resources.class);
// private static final Window.Resources WINDOW_RESOURCES = GWT.create(Window.Resources.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -53,7 +56,7 @@ public void setDelegate(final ActionDelegate delegate) {
}

@Override
protected void onEnterClicked() {
public void onEndPress(NativeEvent evt) {
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong method name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

import '*'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

width: 56px;
height: 56px;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@ashumilova ashumilova removed their request for review February 8, 2018 12:15
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs
Copy link
Contributor Author

ci-build

@codenvy-ci
Copy link

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs vzhukovs merged commit ab62845 into master Feb 12, 2018
@vzhukovs vzhukovs deleted the che#7200 branch February 12, 2018 13:23
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
No open projects
IDE
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

5 participants