Bug 126761 - MSLResource requires referenced resources to encode and decode urls
Summary: MSLResource requires referenced resources to encode and decode urls
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 major
Target Milestone: ---   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed, performance
Depends on:
Blocks: 128973
  Show dependency tree
 
Reported: 2006-02-07 12:58 EST by Maneesh CLA
Modified: 2010-07-19 12:24 EDT (History)
1 user (show)

See Also:


Attachments
Fix for this and Bug 128973 (30.18 KB, patch)
2006-02-22 12:32 EST, Christian Damus CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maneesh CLA 2006-02-07 12:58:31 EST
I have a resource implementing MResource, and EObjects in this resource are referenced by other MSLResource. 

When a MSLResource references another MSLResource, references are encoded properly. But when the referenced is MResource, it becomes imperative for the implementor of the MResource to encode the reference to EObject's fragment and to decode before resolving.
Comment 1 Christian Damus CLA 2006-02-22 12:32:37 EST
Created attachment 35160 [details]
Fix for this and Bug 128973

Multi-project patch fixing this bug and Bug 128973.  The following changes are made:

  - moved the support for special URI fragments (including a "query" portion
    for qualified names) into the MSLResource implementation in the
    compatibility layer.  GMFResource now does not do any fragment handling
  - MSLResource now encodes fragments when saving and decodes them when loading
    (except for the "fragment query" part)
  - MResourceFactory (the compatibility resource factory) class now implements
    IExtendedResourceFactory to provide the name and qualified name support
    required by EMFCoreUtil for proxies
  - for non-compatibility resources, EMFCoreUtil now provides empty strings
    for proxy names and qualified names, as formerly only occurred when the
    fragment query was absent
  - MSLResource now saves fragment queries in the EMF way (book-ended by ?s)
    while still supporting the single ? legacy format
Comment 2 Vishy Ramaswamy CLA 2006-02-22 12:53:58 EST
Reviewed and applied patch
Comment 3 Eclipse Webmaster CLA 2010-07-19 12:24:52 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime EMF was the original product and component for this bug