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

CHE-3369 Git history panel is not opened #3414

Merged
merged 5 commits into from
Dec 19, 2016
Merged

CHE-3369 Git history panel is not opened #3414

merged 5 commits into from
Dec 19, 2016

Conversation

vitaliy-guliy
Copy link
Contributor

@vitaliy-guliy vitaliy-guliy commented Dec 16, 2016

Fix appearing of the git history panel when the part is hidden.
Fix appearing of the git history panel after restoring the IDE state.
Fix the behavior of any hidden panel after restoring the IDE state.

#3369

}

TabItem tab = getTabByPart(part);
onTabClicked(tab);
Copy link
Contributor

Choose a reason for hiding this comment

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

tab is always non null ?
because signature of onTabClicked is requiring notNull but getTabByPart can return null
public void onTabClicked(@NotNull TabItem selectedTab) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

        if (containsPart(part)) {
            TabItem tab = getTabByPart(part);
            onTabClicked(tab);
            return;
        }

Yes, the case is confuses a little bit. But here tab must be not null because of there is a verification before.

if (partStackJSON.hasKey("SIZE")) {
double size = partStackJSON.getNumber("SIZE");

// Size of the part must not be less 100 pixels.
Copy link
Contributor

Choose a reason for hiding this comment

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

comment is for <100 but code is == 0 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed!

@codenvy-ci
Copy link

@ashumilova ashumilova added this to the 5.0.0-M9 milestone Dec 19, 2016
@vitaliy-guliy vitaliy-guliy merged commit c743fb7 into master Dec 19, 2016
@vitaliy-guliy vitaliy-guliy deleted the CHE-3369 branch December 19, 2016 08:21
@codenvy-ci
Copy link

Build # 1361 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1361/ to view the results.

benoitf pushed a commit that referenced this pull request Dec 19, 2016
* CHE-3369 Git history panel is not opened

* CHE-3369 Git history panel is not opened

* CHE-3369 Git history panel is not opened
benoitf pushed a commit that referenced this pull request Dec 20, 2016
* CHE-3369 Git history panel is not opened

* CHE-3369 Git history panel is not opened

* CHE-3369 Git history panel is not opened
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
* CHE-3369 Git history panel is not opened

* CHE-3369 Git history panel is not opened

* CHE-3369 Git history panel is not opened
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.

5 participants