if (root != null) {
WidgetAdapter rootAdapter = WidgetAdapter.getWidgetAdapter(root);
JavaUtil.hideMenu();
String lnfCN = getLnfClassname();
rootAdapter.setPreferredLookAndFeel(lnfCN); //$NON-NLS-1$
ICompilationUnit unit = sourceParser.generate(rootAdapter, monitor);
rootAdapter.setPreferredLookAndFeel(null); //$NON-NLS-1$
if (unit != null) {
designer.initNamespaceWithUnit(unit);
designer.setLnfChanged(false);
}