Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357428 - [M2x IDE Integration] Export "org.eclipse.sphinx.emf.mwe.components" of org.eclipse.sphinx.emf.mwe
Summary: [M2x IDE Integration] Export "org.eclipse.sphinx.emf.mwe.components" of org.e...
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 19:45 EDT by Lan Phan CLA
Modified: 2021-07-14 02:14 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lan Phan CLA 2011-09-12 19:45:22 EDT
Build Identifier: 

Please export package 'components' of org.eclipse.sphinx.emf.mwe

Reproducible: Always
Comment 1 Lan Phan CLA 2011-09-13 04:09:33 EDT
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
}
Comment 2 Stephan Eberle CLA 2011-09-14 00:15:44 EDT
Fixed as proposed in description and comment #0.
Comment 3 Sorina Cosma CLA 2013-11-06 04:11:55 EST
I tried the proposed solution, but still is not ok, the size of collection after "getModels()" is 0.(checked also in debug mode).
Comment 4 Balazs Grill CLA 2021-07-14 02:14:40 EDT
Mass-closing Resolved tickets