Commit a9e38618 authored by Dominique Marcadet's avatar Dominique Marcadet

use finaliseLoad on resourceSet to build explicit links

parent 8604a965
......@@ -55,7 +55,7 @@ public class SclResourceImpl extends XMLResourceImpl implements IRiseClipseResou
}
@Override
public void finalizeLoad( boolean ignore_unresolved_reference ) {
public void finalizeLoad( IRiseClipseConsole console ) {
if( getContents().size() > 0 ) {
ExplicitLinkResolver scl = ( ExplicitLinkResolver ) getContents().get( 0 );
scl.resolveLinks();
......
......@@ -38,4 +38,22 @@ public class SclResourceSetImpl extends RiseClipseResourceSet {
super( strictContent, console );
}
/* (non-Javadoc)
* @see fr.centralesupelec.edf.riseclipse.util.RiseClipseResourceSet#finalizeLoad(fr.centralesupelec.edf.riseclipse.util.IRiseClipseConsole)
*/
@Override
public void finalizeLoad( IRiseClipseConsole console ) {
buildExplicitLinks( console );
}
private void buildExplicitLinks( IRiseClipseConsole console ) {
for( Resource resource : getResources() ) {
if( resource instanceof SclResourceImpl ) {
SCL scl = ( SCL ) resource.getContents().get( 0 );
scl.resolveLinks();
}
}
}
}
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