Commit 64881335 authored by seinturi's avatar seinturi

Add a field in ComponentDesc to reference the code element that is the source...

Add a field in ComponentDesc to reference the code element that is the source for this component definition.
parent d0c45562
...@@ -48,7 +48,7 @@ extends org.ow2.frascati.tinfi.emf.EMFParserSupportImpl { ...@@ -48,7 +48,7 @@ extends org.ow2.frascati.tinfi.emf.EMFParserSupportImpl {
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
@Override @Override
protected ComponentDesc handleComponent( protected ComponentDesc<?> handleComponent(
String compositeName, Component sub, String controllerDesc ) String compositeName, Component sub, String controllerDesc )
throws IOException { throws IOException {
...@@ -58,7 +58,7 @@ extends org.ow2.frascati.tinfi.emf.EMFParserSupportImpl { ...@@ -58,7 +58,7 @@ extends org.ow2.frascati.tinfi.emf.EMFParserSupportImpl {
String name = sub.getName(); String name = sub.getName();
ComponentType subct = ecore2fractal(sub); ComponentType subct = ecore2fractal(sub);
Implementation implementation = sub.getImplementation(); Implementation implementation = sub.getImplementation();
ComponentDesc cdesc = null; ComponentDesc<?> cdesc = null;
if( implementation instanceof OsgiImplementation ) { if( implementation instanceof OsgiImplementation ) {
...@@ -71,8 +71,8 @@ extends org.ow2.frascati.tinfi.emf.EMFParserSupportImpl { ...@@ -71,8 +71,8 @@ extends org.ow2.frascati.tinfi.emf.EMFParserSupportImpl {
String id = "C"+(compidx++); String id = "C"+(compidx++);
cdesc = cdesc =
new ComponentDesc( new ComponentDesc<Object>(
id,name,name,subct,controllerDesc,contentDesc); id,name,name,subct,controllerDesc,contentDesc,null);
} }
else { else {
cdesc = super.handleComponent(compositeName,sub,controllerDesc); cdesc = super.handleComponent(compositeName,sub,controllerDesc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment