Hide warning when reconfiguring upstream from local to remote branch
commit41e8c5f785c464147fa381c86239d81924a59b65
authorMichael.Keppler <Michael.Keppler@gmx.de>
Sun, 30 Oct 2016 08:25:06 +0000 (30 09:25 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 2 Nov 2016 22:10:35 +0000 (2 23:10 +0100)
treeb16a4c00543f66616716d690169f528cb4925af6
parent54e713d2384c884aa98166a2ae76da36652eabe7
Hide warning when reconfiguring upstream from local to remote branch

When using a local branch as upstream, the branch creation dialog showed
a warning that using a local branch as upstream is not recommended. This
warning was not removed when reconfiguring upstream to a remote branch.

This regression was introduced with the fix for bug 440097. That one
removed the line "setMessage(null)". This fix reintroduces that line,
but as "setMessage(initialMessageWhenThePageWasCreated)" instead. This
avoids the previously experienced wrong height calculation of the
dialog, I have tested that extensively.

Bug: 452212
Change-Id: I849c483b5a8a42a80191c4105b102fe4cd5377c4
Signed-off-by: Michael.Keppler <Michael.Keppler@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/CreateBranchPage.java