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:
committed by
Shawn O. Pearce
parent
8ab61558d9
commit
5ea0bd7258
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user