Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 652 Bytes
import org.eclipse.emf.common.util.URI
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
import org.eclipse.emf.ecore.resource.Resource
import java.util.HashMap
import fr.istic.VideoGenStandaloneSetup
import fr.istic.videoGen.VideoGeneratorModel
class VideoGenHelper {
def loadVideoGenerator(URI uri) {
var res = new ResourceSetImpl().getResource(uri, true);
res.contents.get(0) as VideoGeneratorModel
def saveVideoGenerator(URI uri, VideoGeneratorModel videoGen) {
var Resource rs = new ResourceSetImpl().createResource(uri);
rs.getContents.add(videoGen); HashMap());
You can’t perform that action at this time.