parser.setSource(unit);
CompilationUnit cunit = (CompilationUnit) parser.createAST(null);
parseEventListener(cunit, beanAdapter);
initDesignedWidget(cunit, bean);
parsePropertyValue(lnf, cunit, beanAdapter);
beanAdapter.clearDirty();
return beanAdapter;
}
} else {
throw new ParserException("This is not a swing class!");
}