Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Table column pack API not working in expression view(Tabl)
Table column pack API not working in expression view [message #1064050] Mon, 17 June 2013 08:27
Onkar Bavikar is currently offline 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();
}
}
}
}
Previous Topic:C++11 support when using Intel Compiler?
Next Topic:Launching the correct executable (Release vs Debug)
Goto Forum:
  


Current Time: Sat Apr 19 05:58:15 EDT 2014

Powered by FUDForum. Page generated in 0.04526 seconds