Java Code Examples for org.eclipse.emf.ecore.EPackage.getESubpackages()

The following are Jave code examples for showing how to use getESubpackages() of the org.eclipse.emf.ecore.EPackage class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ttc2017smartGrids   File: Task2Sync.java   View Source Code Vote up 5 votes
public static void recursiveLoad(EPackage pack, ResourceSet resSet) {
	pack.eClass();
	resSet.getPackageRegistry().put(pack.getNsURI(), pack);
	for (EPackage sub : pack.getESubpackages()) {
		recursiveLoad(sub, resSet);
	}
}
 
Example 2
Project: ttc2017smartGrids   File: Task1Sync.java   View Source Code Vote up 5 votes
public static void recursiveLoad(EPackage pack, ResourceSet resSet) {
	pack.eClass();
	resSet.getPackageRegistry().put(pack.getNsURI(), pack);
	for (EPackage sub : pack.getESubpackages()) {
		recursiveLoad(sub, resSet);
	}
}
 
Example 3
Project: rgse.ttc17.emoflon.tgg   File: Task2Sync.java   View Source Code Vote up 5 votes
public static void recursiveLoad(EPackage pack, ResourceSet resSet) {
	pack.eClass();
	resSet.getPackageRegistry().put(pack.getNsURI(), pack);
	for (EPackage sub : pack.getESubpackages()) {
		recursiveLoad(sub, resSet);
	}
}
 
Example 4
Project: rgse.ttc17.emoflon.tgg   File: Task1Sync.java   View Source Code Vote up 5 votes
public static void recursiveLoad(EPackage pack, ResourceSet resSet) {
	pack.eClass();
	resSet.getPackageRegistry().put(pack.getNsURI(), pack);
	for (EPackage sub : pack.getESubpackages()) {
		recursiveLoad(sub, resSet);
	}
}
 
Example 5
Project: Tarski   File: LoadItem.java   View Source Code Vote up 5 votes
private void loadEClasses(EPackage packageee) {
  for (EClassifier classifier : packageee.getEClassifiers()) {
    allEClasses.put(classifier.getName(), (EClass) classifier);
  }
  for (EPackage subPackage : packageee.getESubpackages()) {
    loadEClasses(subPackage);
  }
}