IFileEditorInput file = (IFileEditorInput) getEditorInput();
setPartName(file.getName());
setTitleToolTip(file.getToolTipText());
ParserFactory factory = ParserFactory.getDefaultParserFactory();
if (factory != null) {
ISourceParser sourceParser = factory.newParser();
Component root = designer.getRoot();
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);
}