Bug 553878 - [Internationalization] - Invalid internationalization preference model URI
Summary: [Internationalization] - Invalid internationalization preference model URI
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Patrick Tessier CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-06 11:42 EST by Jeremie Tatibouet CLA
Modified: 2019-12-12 11:02 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremie Tatibouet CLA 2019-12-06 11:42:19 EST
If the URI passed to the international preference model provider has the the scheme file:/ then the computed URI is invalid.

Indeed the computed URI would follow the pattern

<absolute path to workspace>/.metadata/.plugins/org.eclipse.papyrus.infra.internationalization/<absolute path to project>

<absolute path to workspace>/.metadata/.plugins/org.eclipse.papyrus.infra.internationalization/<workspace relative path to project>

Fixing this issue requires to update InternationalizationPreferenceModelProviderManager::createDefaultInternationalizationPrefModelProvider(). In this operation the else clause of AbstractInternationalizationPreferenceModelProvider::getInternationalizationPreferenceModelURI(final URI userModelURI) must be changed
Comment 1 Eclipse Genie CLA 2019-12-10 17:30:50 EST
New Gerrit change created: https://git.eclipse.org/r/154251