提交 17a10e36 编写于 作者: S Serge Rider

OLC redesign - use ViewerColumnController


Former-commit-id: fea7bbc2
上级 d847a884
......@@ -147,6 +147,9 @@ public class ViewerColumnController {
private void recreateColumns()
{
final Control control = viewer.getControl();
control.setRedraw(false);
try {
boolean needRefresh = false;
for (ColumnInfo columnInfo : columns) {
if (columnInfo.column != null) {
......@@ -165,11 +168,10 @@ public class ViewerColumnController {
}
if (!allSized) {
repackColumns();
viewer.getControl().addControlListener(new ControlAdapter() {
control.addControlListener(new ControlAdapter() {
@Override
public void controlResized(ControlEvent e)
{
viewer.getControl().removeControlListener(this);
public void controlResized(ControlEvent e) {
control.removeControlListener(this);
repackColumns();
}
});
......@@ -184,6 +186,9 @@ public class ViewerColumnController {
}
}
}
} finally {
control.setRedraw(true);
}
}
public void repackColumns()
......
......@@ -929,7 +929,7 @@ public abstract class ObjectListControl<OBJECT_TYPE> extends ProgressPageControl
if (prop != null) {
return ObjectViewerRenderer.getCellString(cellValue, prop.isNameProperty());
} else {
return "?";
return "";
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册