User Tools

Site Tools


padl_creator_c_eclipse

Differences

This shows you the differences between two versions of the page.


Previous revision
padl_creator_c_eclipse [2025/01/15 21:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== PADL Creator C++ (Eclipse) ======
 +
 +Using the CDT provided on top of Eclipse, this project provides a means to create a PADL model from C/C++ source code. Fetch the project ''PADL Creator C++ (Eclipse)'' from the SVN and use the usual idiom:
 +
 +<code>
 +try {
 + final ICodeLevelModelCreator creator =
 + new padl.creator.cppfile.eclipse.CPPCreator(aSourceDirectory);
 + codeLevelModel =
 + CPPFactoryEclipse.getInstance().createCodeLevelModel(aName);
 + codeLevelModel.create(creator);
 +}
 +catch (final CreationException e) {
 + e.printStackTrace(ProxyConsole.getInstance().errorOutput());
 +}
 +</code>
 +
 +:!: The ''padl.generator.helper.ModelGenerator'' interface in project ''[[PADL Generator]]'' hides the implementation details of creating a PADL model and should be used in most of the cases.