}
@Override
public List<Package> getPackages() {
// make sure we're complete
AbstractModelLoader modelLoader = getModelLoader();
if(!packagesLoaded){
synchronized(modelLoader.getLock()){
if(!packagesLoaded){
String name = getNameAsString();
for(String pkg : jarPackages){
// special case for the language module to hide stuff
if(!name.equals(AbstractModelLoader.CEYLON_LANGUAGE) || pkg.startsWith(AbstractModelLoader.CEYLON_LANGUAGE))
modelLoader.findOrCreatePackage(this, pkg);
}
packagesLoaded = true;
}
}
}