Move star icon to header of CommitMessageBlock

Move star icon from the change screen header to header of
CommitMessageBlock so we can remove the screen header.

Change-Id: Ic24be6b7de304d896f84ea77e10799c0e7907793
This commit is contained in:
Keunhong Park
2012-06-14 14:44:35 -06:00
committed by Shawn O. Pearce
parent 8ab61558d9
commit 5ea0bd7258
5 changed files with 44 additions and 15 deletions

View File

@@ -19,14 +19,15 @@ import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.PatchSetInfo;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwtexpui.globalkey.client.KeyCommandSet;
public class ChangeDescriptionBlock extends Composite {
private final ChangeInfoBlock infoBlock;
private final CommitMessageBlock messageBlock;
public ChangeDescriptionBlock() {
public ChangeDescriptionBlock(KeyCommandSet keysAction) {
infoBlock = new ChangeInfoBlock();
messageBlock = new CommitMessageBlock();
messageBlock = new CommitMessageBlock(keysAction);
final HorizontalPanel hp = new HorizontalPanel();
hp.add(infoBlock);
@@ -34,9 +35,9 @@ public class ChangeDescriptionBlock extends Composite {
initWidget(hp);
}
public void display(final Change chg, final PatchSetInfo info,
public void display(Change chg, Boolean starred, PatchSetInfo info,
final AccountInfoCache acc) {
infoBlock.display(chg, acc);
messageBlock.display(info.getMessage());
messageBlock.display(chg.getId(), starred, info.getMessage());
}
}