Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add a static figure in the canvas
Add a static figure in the canvas [message #213954] Thu, 18 December 2008 11:25 Go to next message
Eclipse UserFriend
Hello, I want to add a static figure in the TOP-LEFT side of the canvas.
How can I do it? I think I can do it modifying the canvas EditPart, but I
don't know where to add the new figure to the canvas.

Anybody can help me please? Thanks!!!

Marc.
Re: Add a static figure in the canvas [message #213970 is a reply to message #213954] Thu, 18 December 2008 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Hello Marc,

Looks like the same task was already solved by UML2Tools project implementing
UML2 diagrams based on GMF (http://www.eclipse.org/modeling/mdt/?project=uml2tools).

-----------------
Alex Shatalin
Re: Add a static figure in the canvas [message #213978 is a reply to message #213970] Thu, 18 December 2008 12:30 Go to previous messageGo to next message
Eclipse UserFriend
Hello Alex!

Where can I found this task? The URL you send me is the general for
UML2Tools.

Thanks!

Marc.



Alex Shatalin wrote:

> Hello Marc,

> Looks like the same task was already solved by UML2Tools project
implementing
> UML2 diagrams based on GMF
(http://www.eclipse.org/modeling/mdt/?project=uml2tools).

> -----------------
> Alex Shatalin
Re: Add a static figure in the canvas [message #214001 is a reply to message #213978] Thu, 18 December 2008 18:41 Go to previous messageGo to next message
Eclipse UserFriend
Well Alex, now I know what you said. Some UML2 Diagrams have a Package
figure in the Top-Left corner of the canvas. This is a View of a Package
element (with an EditPart associated), declared in the gmfmap. I want to
put programatically a static image, like an icon, without having an
element associated to.

I think canvas is a figure, a rectangle figure, that can house Views
(Figures) and other kind of figures (circles, lines...). So I want to add
a static figure (a simple image or icon) in this possition permanently.
Perhaps when creating the figure canvas? I don't know where certainly...

Any suggestions?

Marc


Marc wrote:

> Alex Shatalin wrote:

>> Hello Marc,

>> Looks like the same task was already solved by UML2Tools project
> implementing
>> UML2 diagrams based on GMF
> (http://www.eclipse.org/modeling/mdt/?project=uml2tools).

>> -----------------
>> Alex Shatalin
Re: Add a static figure in the canvas [message #214009 is a reply to message #214001] Thu, 18 December 2008 18:51 Go to previous messageGo to next message
Eclipse UserFriend
Have a look at the Taipan example in CVS:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmf/exa mples/?root=Mode
ling_Project

- Rich


On 12/18/08 6:41 PM, in article
c35268a0ab2e868e6138966f5d89f117$1@www.eclipse.org, "Marc"
<mgil@prodevelop.es> wrote:

> Well Alex, now I know what you said. Some UML2 Diagrams have a Package
> figure in the Top-Left corner of the canvas. This is a View of a Package
> element (with an EditPart associated), declared in the gmfmap. I want to
> put programatically a static image, like an icon, without having an
> element associated to.
>
> I think canvas is a figure, a rectangle figure, that can house Views
> (Figures) and other kind of figures (circles, lines...). So I want to add
> a static figure (a simple image or icon) in this possition permanently.
> Perhaps when creating the figure canvas? I don't know where certainly...
>
> Any suggestions?
>
> Marc
>
>
> Marc wrote:
>
>> Alex Shatalin wrote:
>
>>> Hello Marc,
>
>>> Looks like the same task was already solved by UML2Tools project
>> implementing
>>> UML2 diagrams based on GMF
>> (http://www.eclipse.org/modeling/mdt/?project=uml2tools).
>
>>> -----------------
>>> Alex Shatalin
>
Re: Add a static figure in the canvas [message #214033 is a reply to message #214009] Fri, 19 December 2008 05:17 Go to previous message
Eclipse UserFriend
Thanks a lot Richard :D It was what I want to do!!

Marc.
Previous Topic:StackOverflow Problem
Next Topic:Pre connected children nodes possible?
Goto Forum:
  


Current Time: Fri May 16 06:32:05 EDT 2025

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

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

Back to the top