Table column pack API not working in expression view [message #1064050] |
Mon, 17 June 2013 12:27 |
Onkar Bavikar Messages: 2 Registered: May 2013 |
Junior Member |
|
|
I am trying to set column size according to the address size support.
Currently using column pack API but its no working.
Overriden below method from Exprssion view.Data is populated by DSF
@Override
public void updateComplete(IViewerUpdate update) {
IStatus status = update.getStatus();
if (!update.isCanceled()) {
if (status != null && !status.isOK()) {
showMessage(status.getMessage());
} else {
Tree tree = (Tree)(getViewer().getControl());
TreeColumn columns[] = tree.getColumns();
for (int i = 0; i < columns.length; i++) {
columns[i].pack();
}
showViewer();
tree = (Tree)(getViewer().getControl());
columns = tree.getColumns();
for (int i = 0; i < columns.length; i++) {
columns[i].pack();
}
}
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.05059 seconds