Get the *.asr File from a given IResource

How is it possible to identify inside of a JavaFunction the corresponding *.asr file of the eclipse workspace for a any given IResource. Something like:
Result should somethin like:
file:/C:/Documents%20and%20Settings/dmei/workspace-aat1/ch.test/asrc/ch/test/presets/f0199fb0-7cc8-11e1-9889-37e1c30ea0b9.asr
Thanks
- Code: Select all
public java.lang.String ResourceFilePath(final ch.actifsource.core.javamodel.IResource resource) {
/* Begin Protected Region [[78244c52-2641-11e1-94ec-dfbbf5e511e0]] */
return XXXX (... File URL String to IResource)
/* End Protected Region [[78244c52-2641-11e1-94ec-dfbbf5e511e0]] */
}
Result should somethin like:
file:/C:/Documents%20and%20Settings/dmei/workspace-aat1/ch.test/asrc/ch/test/presets/f0199fb0-7cc8-11e1-9889-37e1c30ea0b9.asr
Thanks