| Summary: | [M2x IDE Integration] Export "org.eclipse.sphinx.emf.mwe.components" of org.eclipse.sphinx.emf.mwe | ||
|---|---|---|---|
| Product: | [Automotive] Sphinx | Reporter: | Lan Phan <quoclan> |
| Component: | Core | Assignee: | Stephan Eberle <stephaneberle9> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | idydieng, r.sezestre, sorina_gabi |
| Version: | 0.7.0 | ||
| Target Milestone: | 0.7.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Lan Phan
Another thing, there is a bug with org.eclipse.sphinx.emf.mwe.components.ModelLoader#invokeInternal() method:
Collection<IModelDescriptor> models = ModelDescriptorRegistry.INSTANCE.getModels(project);
If we call getModels(), it'll always return empty collection. But when I run it in debug mode, it's ok --> there is some background jobs run --> we need to add this code before calling getModels():
try {
// waiting for finishing some jobs
Job.getJobManager().join(IExtendedPlatformConstants.FAMILY_LONG_RUNNING, new NullProgressMonitor());
} catch (Exception ex) {
// Ignore exception
}
Fixed as proposed in description and comment #0. I tried the proposed solution, but still is not ok, the size of collection after "getModels()" is 0.(checked also in debug mode). Mass-closing Resolved tickets |