@PostConstruct
void createWidget(IWorkbenchWindow iwbw, Composite parent, MToolControl toolControl) {
IConfigurationElement ice = ((WorkbenchWindow) iwbw).getICEFor(toolControl);
if (ice == null)
return;
parent = new Composite(parent, SWT.NONE);
parent.setLayout(new RowLayout());
widget = (IWorkbenchWidget) Util.safeLoadExecutableExtension(ice,
IWorkbenchRegistryConstants.ATT_CLASS, IWorkbenchWidget.class);
widget.init(iwbw);
if (widget instanceof AbstractTrimWidget) {
((AbstractTrimWidget) widget).fill(parent, SWT.DEFAULT, getSide(toolControl));
} else {
widget.fill(parent);
}
}