Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » using uml figures in GMF editor
using uml figures in GMF editor [message #476281] Thu, 08 January 2009 20:54 Go to next message
Marcin Cylke is currently offline Marcin CylkeFriend
Messages: 61
Registered: July 2009
Member
Hello
I'd like to use some of the UML figures (like class or package figures) in
my GMF editor. Could you direct me to some howtos about this subject?

The thing I figured out is that I should use a Custom Figure and point it
to one of uml2 classes. However I still haven't found out where they are
located.

Any help appreciated.

Best regards
Marcin
Re: using uml figures in GMF editor [message #476282 is a reply to message #476281] Tue, 13 January 2009 11:05 Go to previous messageGo to next message
Marco Mosconi is currently offline Marco MosconiFriend
Messages: 60
Registered: July 2009
Member
Hi Marcin,

the GMF sources of the UML2Tools project include the complete .gmfgraph
models, you can get them from CVS:
:pserver:anonymous@dev.eclipse.org:/cvsroot/modeling
just checkout the following project:
org.eclipse.mdt/org.eclipse.uml2tools/plugins/org.eclipse.um l2.diagram.def

HTH,
Marco

Marcin Cylke schrieb:
> Hello
> I'd like to use some of the UML figures (like class or package figures)
> in my GMF editor. Could you direct me to some howtos about this subject?
>
> The thing I figured out is that I should use a Custom Figure and point
> it to one of uml2 classes. However I still haven't found out where they
> are located.
>
> Any help appreciated.
>
> Best regards
> Marcin
>
Re: using uml figures in GMF editor [message #476283 is a reply to message #476282] Tue, 13 January 2009 13:50 Go to previous messageGo to next message
Marcin Cylke is currently offline Marcin CylkeFriend
Messages: 61
Registered: July 2009
Member
Marco Mosconi wrote:

Hello

> the GMF sources of the UML2Tools project include the complete .gmfgraph
> models, you can get them from CVS:
> :pserver:anonymous@dev.eclipse.org:/cvsroot/modeling
> just checkout the following project:
> org.eclipse.mdt/org.eclipse.uml2tools/plugins/org.eclipse.um l2.diagram.def

Do You suggest to copy those figures into my gmfgraph files? I wouldn't
like to do this. Can I reference any of those figures from my file?

In the sources you've pointed I haven't been able to find a referencing
gmfgraph files. I was searching for something like inclusion of
classDiagram_packages.gmfgraph into usecaseDiagram.gmfgraph and use of one
of classDiagram_packages figures in usecaseDiagram.gmfgraph. Where can it
be found?

Bye
Marcin
[SOLVED] Re: using uml figures in GMF editor [message #476284 is a reply to message #476283] Tue, 13 January 2009 14:13 Go to previous messageGo to next message
Marcin Cylke is currently offline Marcin CylkeFriend
Messages: 61
Registered: July 2009
Member
Ok, Sorry for unnecessary noise on the group.

I've just found the solution to this. My mistake was passing paths without
'platform' prefix to "load resource" dialog. I need to pass something like:

platform:/resource/org.eclipse.uml2.diagram.def/structures/c lassDiagram_interfaces.gmfgraph

So, my problem is solved.

bye
Marcin
Re: using uml figures in GMF editor [message #623484 is a reply to message #476281] Tue, 13 January 2009 11:05 Go to previous messageGo to next message
Marco Mosconi is currently offline Marco MosconiFriend
Messages: 60
Registered: July 2009
Member
Hi Marcin,

the GMF sources of the UML2Tools project include the complete .gmfgraph
models, you can get them from CVS:
:pserver:anonymous@dev.eclipse.org:/cvsroot/modeling
just checkout the following project:
org.eclipse.mdt/org.eclipse.uml2tools/plugins/org.eclipse.um l2.diagram.def

HTH,
Marco

Marcin Cylke schrieb:
> Hello
> I'd like to use some of the UML figures (like class or package figures)
> in my GMF editor. Could you direct me to some howtos about this subject?
>
> The thing I figured out is that I should use a Custom Figure and point
> it to one of uml2 classes. However I still haven't found out where they
> are located.
>
> Any help appreciated.
>
> Best regards
> Marcin
>
Re: using uml figures in GMF editor [message #623485 is a reply to message #476282] Tue, 13 January 2009 13:50 Go to previous messageGo to next message
Marcin Cylke is currently offline Marcin CylkeFriend
Messages: 61
Registered: July 2009
Member
Marco Mosconi wrote:

Hello

> the GMF sources of the UML2Tools project include the complete .gmfgraph
> models, you can get them from CVS:
> :pserver:anonymous@dev.eclipse.org:/cvsroot/modeling
> just checkout the following project:
> org.eclipse.mdt/org.eclipse.uml2tools/plugins/org.eclipse.um l2.diagram.def

Do You suggest to copy those figures into my gmfgraph files? I wouldn't
like to do this. Can I reference any of those figures from my file?

In the sources you've pointed I haven't been able to find a referencing
gmfgraph files. I was searching for something like inclusion of
classDiagram_packages.gmfgraph into usecaseDiagram.gmfgraph and use of one
of classDiagram_packages figures in usecaseDiagram.gmfgraph. Where can it
be found?

Bye
Marcin
[SOLVED] Re: using uml figures in GMF editor [message #623486 is a reply to message #476283] Tue, 13 January 2009 14:13 Go to previous messageGo to next message
Marcin Cylke is currently offline Marcin CylkeFriend
Messages: 61
Registered: July 2009
Member
Ok, Sorry for unnecessary noise on the group.

I've just found the solution to this. My mistake was passing paths without
'platform' prefix to "load resource" dialog. I need to pass something like:

platform:/resource/org.eclipse.uml2.diagram.def/structures/c lassDiagram_interfaces.gmfgraph

So, my problem is solved.

bye
Marcin
Re: [SOLVED] Re: using uml figures in GMF editor [message #673776 is a reply to message #476284] Tue, 24 May 2011 17:40 Go to previous messageGo to next message
Juan Manuel is currently offline Juan ManuelFriend
Messages: 3
Registered: April 2011
Junior Member
I am also triying to reuse existing figures from UML2 by adding the gmfgraph as you pointed out, but when generating the code of my diagram editor dependencies arise.

I did as you and added the gmfgraph from "classDiagram_packages.gmfgraph" through the "load resource" in the gmfmap so that I can use it in the mapping and linked my node to use the package figure from the UML2 plugin, which is now accesible from my mapping model. I have added almost a dozen of plugins following dependencies from the CVS, but it seems that I will need to download the whole CVS section dedicated to modelling so that I can build without errors. Obviously the diagram when is launched does not work propperly and the package node fails.

I have also the problem of the doSwith method witch is not accesible: "The method doSwitch(EObject) from the type UMLSwitch<Object> is not visible".

Maybe I am missing some basic concept in order to reuse these figures from UML2 plugin and I imagine there should be other way easier for including existing figures from other gmfgraph, isn't it?

Maybe someone has the link to the discussion it is refered in the wiki as GMFGraph_Hints#I_need_a_figure_that_is_similar_to_UML_package (I can not put links as this is my first message) or any other howto on this issue.

Sorry if this is too basic but I am starting and tried looking for it before asking (I already looked for this issue in the forum and I found this thread).

Any help would be appreciated.
Re: [SOLVED] Re: using uml figures in GMF editor [message #677094 is a reply to message #673776] Tue, 07 June 2011 14:55 Go to previous messageGo to next message
Juan Manuel is currently offline Juan ManuelFriend
Messages: 3
Registered: April 2011
Junior Member
At the end I discarded this option, as UML2Tools are not supported in Helios. I have tried to install de support for them in Helios manually (as indicted in other thread of the forum) and it still remains not working.

I will try to reuse the gmfgraph figure descriptos from the CVS and that's all. Using them directly through "load source" seems to be a waste of time from Helios.

Re: [SOLVED] Re: using uml figures in GMF editor [message #677120 is a reply to message #677094] Tue, 07 June 2011 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Ralf Zozmann

Am 07.06.2011 16:55, schrieb Juan Manuel:
> At the end I discarded this option, as UML2Tools are not supported in
> Helios. ...

Hi Juan,

i'm not understanding your problem, but have you seen the thread
news://news.eclipse.org:119/imv6mh$hk0$1@news.eclipse.org ?

Regards
Ralf
Re: [SOLVED] Re: using uml figures in GMF editor [message #683897 is a reply to message #677120] Tue, 14 June 2011 16:00 Go to previous messageGo to next message
Juan Manuel is currently offline Juan ManuelFriend
Messages: 3
Registered: April 2011
Junior Member
Hi,

What I was trying was to reuse the figure descriptor for package class from UML2Tools in my own GMF editor. I tried using "load resource" as pointed here but the dependencies that Eclipse requested are never acomplished, at least using Helios as far as I have been able to follow.

I guess it is related with the lack of support for UML2Tools in Helios but I am just guessing.

About the link you posted, how can I follow it? As a URL it seems to be broken or at least it doesn't work.
Re: [SOLVED] Re: using uml figures in GMF editor [message #685474 is a reply to message #683897] Fri, 17 June 2011 15:14 Go to previous message
Eclipse UserFriend
Originally posted by: Ralf Zozmann

Am 14.06.2011 18:00, schrieb Juan Manuel:
> Hi,
>
> [...]
> I guess it is related with the lack of support for UML2Tools in Helios
> but I am just guessing.
>
> About the link you posted, how can I follow it? As a URL it seems to be
> broken or at least it doesn't work.

Hi Juan,

on my computer clicking the link (in my previous post) open Firefox and
shows me the thread...
There is described how you can install UML2Tools in helios from the
actual update site (interim site). You need the latest uml2tools version
(0.10.0) from the update site
http://download.eclipse.org/modeling/mdt/uml2tools/updates/interim/ and
to fulfill the dependencies also a new GMF 1.5 version (is for Eclipse
3.7 :-( but works in 3.6) from update site
http://download.eclipse.org/modeling/gmp/updates/milestones/

Greetings
Ralf
Previous Topic:Abstract methods italic - static methods underlined
Next Topic:I'm worried - UML2Tools vs Papyrus
Goto Forum:
  


Current Time: Sun Nov 23 00:04:39 GMT 2014

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

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