Skip to main content


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 12:27
Onkar Bavikar is currently offline Onkar BavikarFriend
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 20 02:32:17 GMT 2024

Powered by FUDForum. Page generated in 0.02903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top