public DefaultCamelContext getCamelContext() {
return camelContext;
}
public void createBrowserUI(UIComposite root) {
UIFactory ui = root.getFactory();
UIComposite splitter = ui.newHorizontalSplitPanel(root, new GridLayoutData(GridLayoutData.ALIGN_CENTER, GridLayoutData.ALIGN_CENTER));
UITable tree = createEndpointTableUI(splitter);
BeanForm selectionForm = new BeanForm();
UITable table = ui.newTable(splitter, new UITable.TableUIInfo(new GridLayoutData(GridLayoutData.ALIGN_FILL, GridLayoutData.ALIGN_FILL, true, true)));
selectionForm.add(table, new UITable.TableBindingInfo(selectionForm.detailList("exchanges", Collection.class)));
ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
public String getLabel(Object object) {
Exchange exchange = (Exchange) object;
return exchange.getIn().getBody(String.class);
}
}));
ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
public String getLabel(Object object) {
Exchange exchange = (Exchange) object;
return exchange.getIn().getHeaders().toString();
}
}));