[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.uml] Re: pathmap problems

hi Kenn,
 
Thanks for your answer. I did not register a pathmap variable in my application but did register a uri mapper using the extension point
org.eclipse.emf.ecore.uri_mapping , i think this only helps in loading , as in it simply looks for a "source", which in my case is
"pathmap://REPOSITORY_PROFILES/" and replaces it with the physical location to load the profiles up properly but i think i needed to
register an actual pathmap variable "REPOSITORY_PROFILES" using org.eclispe.gmf.runtime.emf.core.Pathmaps, I think this is what
the PathmapManager looks at to denormalize as you said. Is that the correct then.
 
Regards,
Saurabh
 
 
 
 
 
 
 
 
 
 
"Kenn Hussey" <khussey@xxxxxxxxxx> wrote in message news:elt28m$7b3$1@xxxxxxxxxxxxxxxxx...
> Simply resolving a proxy (loading a model) should not cause it's URI to
> change... its original URI may be normalized in order to create an input
> stream on the actual file's location, but the URI of the resource should
> stay the same unless something special is happening. I see from the file
> extension (.epx) that you are using Rational Software Achitect/Modeler...
> For example, looking at the PathmapManager class in GMF, it looks as though
> the URI of resources are being updated to their denormalized/normalized form
> when they are added/removed from a resource set... is it possible that you
> are removing the profile from resource set before saving the model (assuming
> you are using a GMF-based editing domain and resource set)?
>
> Kenn
>
> "EMf" <
sbhola@xxxxxxxxxxx> wrote in message
>
news:elpifb$qml$2@xxxxxxxxxxxxxxxxx...
> > thanks,
> > Is there a way i can tell it not to normalize. i am not loading the
> > profile,
> > i think it get's loaded when i load the resource. I have this EMf model
> > which has reference to all UML models (proxies resolved to true) , i am
> > iterating through this model and that in turn resolves all the references
> > ,
> > i maintain the list of ll these and i get loaded models which i present in
> > a
> > View, if something changes, I iterate and save all the modevs. i just call
> > model.eResource().save() to save the models.Any pointers?
> >
> >
> > "Kenn Hussey" <
khussey@xxxxxxxxxx> wrote in message
> >
news:elpf6r$l4m$1@xxxxxxxxxxxxxxxxx...
> >> Saurabh,
> >>
> >> It sounds like the application you are using to load the profile is
> > changing
> >> the URI of the resource containing it to its normalized form...
> >>
> >> Kenn
> >>
> >> "EMf" <
sbhola@xxxxxxxxxxx> wrote in message
> >>
news:elpe28$fnu$2@xxxxxxxxxxxxxxxxx...
> >> > Hi,
> >> >
> >> >
> >> >
> >> > I have a problem with saving UML2 resources, The below snippets show
> > that
> >> > when i create the resource i have a
> >> > pathmap://REPOSITORY_PROFILES/Conceptual.epx#_ entry in the header.
> >> > When
> > i
> >> > call model.eResource().save(null) on the same resource, it changes the
> >> > pathmap:// references to bundleentry://1562/profiles/Conceptual.epx#_ ,
> >> > does
> >> > anyone know why this happens and what can i do to resolve this?? Any
> >> > pointers will be appreciated.
> >> >
> >> >
> >> >
> >> > Saurabh
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> >
> >> > <xmi:XMI xmi:version="2.1"
> > xmlns:xmi="
http://schema.omg.org/spec/XMI/2.1"
> >> > xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
> >> > xmlns:Conceptual="
http:///schemas/Conceptual/_rBANIHpaEduTGcoxZEYJpA/20"
> >> > xmlns:ecore="
http://www.eclipse.org/emf/2002/Ecore"
> >> > xmlns:uml="
http://www.eclipse.org/uml2/2.0.0/UML"
> >> >
> > xsi:schemaLocation="
http:///schemas/Conceptual/_rBANIHpaEduTGcoxZEYJpA/20
> >> > pathmap://REPOSITORY_PROFILES/Conceptual.epx#_rBANIXpaEduTGcoxZEYJpA">
> >> >
> >> > <uml:Model xmi:id="__6mrgYj7EduynbrtAY-s8w" name="IFW Conceptual
> >> > Model">
> >
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> >
> >> > <xmi:XMI xmi:version="2.1"
> > xmlns:xmi="
http://schema.omg.org/spec/XMI/2.1"
> >> > xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
> >> > xmlns:Conceptual="
http:///schemas/Conceptual/_rBANIHpaEduTGcoxZEYJpA/20"
> >> > xmlns:ecore="
http://www.eclipse.org/emf/2002/Ecore"
> >> > xmlns:uml="
http://www.eclipse.org/uml2/2.0.0/UML"
> >> >
> > xsi:schemaLocation="
http:///schemas/Conceptual/_rBANIHpaEduTGcoxZEYJpA/20
> >> > bundleentry://1562/profiles/Conceptual.epx#_rBANIXpaEduTGcoxZEYJpA">
> >> >
> >> > <uml:Model xmi:id="__6mrgYj7EduynbrtAY-s8w" name="IFW Conceptual
> >> > Model">
> >> >
> >> >
> >>
> >>
> >
> >
>
>