Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Difference between DomainURI and ModelURI
Difference between DomainURI and ModelURI [message #485588] Mon, 14 September 2009 00:38 Go to next message
Vanessa Aline is currently offline Vanessa AlineFriend
Messages: 11
Registered: July 2009
Junior Member
Hello,

I am new in GMF. I am trying do develop a new functionality in a plugin,
but I am very confuse.

I want to create a new diagram similar of an existing one, just changing
some elements.

I am trying to do this:
Resource r = OwlsDiagramEditorUtil.createDiagram(
URI.createURI(owlsComposite.getProcessURI()),
URI.createPlatformResourceURI(newDiagram.toOSString(), true),
new NullProgressMonitor());

Is it the better way to do this?
And what is the difference between DomainURI and ModelURI? I didn't
understand.


Thank you,
Vanessa Aline
Bacharelanda em Ciência da Computação - UFBA
Re: Difference between DomainURI and ModelURI [message #485869 is a reply to message #485588] Tue, 15 September 2009 11:25 Go to previous messageGo to next message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello Vanessa,

I think it's good idea to use OwlsDiagramEditorUtil.createDiagram.

> And what is the difference between DomainURI and ModelURI? I didn't
> understand.
diagramURI is a URI of EMF resource where newly created diagram should be
stored.
modelURI is a URI of EMF resource containing domain model.

-----------------
Alex Shatalin
Re: Difference between DomainURI and ModelURI [message #486260 is a reply to message #485869] Wed, 16 September 2009 22:34 Go to previous message
Vanessa Aline is currently offline Vanessa AlineFriend
Messages: 11
Registered: July 2009
Junior Member
Thanks Alex,
I will try to create the diagram.

Alex Shatalin escreveu:
> Hello Vanessa,
>
> I think it's good idea to use OwlsDiagramEditorUtil.createDiagram.
>
>> And what is the difference between DomainURI and ModelURI? I didn't
>> understand.
> diagramURI is a URI of EMF resource where newly created diagram should
> be stored.
> modelURI is a URI of EMF resource containing domain model.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:Save As menu item
Next Topic:To transform modelo_diagram in an image
Goto Forum:
  


Current Time: Thu Apr 25 11:43:56 GMT 2024

Powered by FUDForum. Page generated in 0.02794 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top