Bug 537193 - Multiple extensions of extension point: org.eclipse.sphinx.emf.workspace.editingDomains will corrupt the behaviour of Sphinx in an IDE
Summary: Multiple extensions of extension point: org.eclipse.sphinx.emf.workspace.edit...
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.11.0   Edit
Hardware: PC Windows 7
: P3 blocker with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-19 11:13 EDT by Zakir Meer CLA
Modified: 2024-05-06 23:27 EDT (History)
2 users (show)

See Also:


Attachments
Attached document contains the detailed description about the impact of multiple extension of org.eclipse.sphinx.emf.workspace.editingDomains (207.39 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-07-19 11:13 EDT, Zakir Meer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zakir Meer CLA 2018-07-19 11:13:59 EDT
Created attachment 275052 [details]
Attached document contains the detailed description about the impact of multiple extension of org.eclipse.sphinx.emf.workspace.editingDomains

Details:
If multiple extensions are defined for extension point: org.eclipse.sphinx.emf.workspace.editingDomains, following issues will happen:
	1) Sphinx framework throws an AssertionFailedException by logging message as: "Multiple registration of IWorkspaceEditingDomainMapping is not allowed"
	2) Wrong selection of DomainMapping class (specified in the extension) for creation of EditingDomain and ResourceSet by WorkspaceEditingDomainManager (in getEditingDomainMapping method))

Result of this exception is that, modelling projects which have been developed on Sphinx and integrated in an IDE "will not work as expected as only first encountered extension of org.eclipse.sphinx.emf.workspace.editingDomains is evaluated and the object of the associated class is used for creation of EditingDomain and ResultSet for all modelling projects"  

This looks like a major problem: As it is leading to an RuntimeException and corrupting the data (due to creation of wrong EditingDomain and ResourceSet)

** “In eclipse world” plugins are developed by different teams remotely and integrated in an IDE, it is impossible to restrict multiple definitions of org.eclipse.sphinx.emf.workspace.editingDomains extensions.



Note: A detailed
Comment 1 Balazs Grill CLA 2024-05-06 23:27:31 EDT
Closed stale issue before migration