Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How can I add figures to a GEF graphic editor programtically?
How can I add figures to a GEF graphic editor programtically? [message #241560] Tue, 19 February 2008 12:09 Go to next message
Eclipse UserFriend
Originally posted by: allenmacyoung.gmail.com

Hi all,

I have a GEF graphic editor for drawing some simple shapes. Other than drag&drop
the shapes from the palette, I want to add these shapes programtically. Say
click a button on the tool bar and some default shapes will be added to the
graphic editor. How can I implement this? Thanks.


allen
Re: How can I add figures to a GEF graphic editor programtically? [message #241564 is a reply to message #241560] Tue, 19 February 2008 16:25 Go to previous message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
Hi,

Nope, You just need change the model, and then notify listeners, Say
"Hei, I chnaged".

Cheers,
Xiangya

allen young 写道:
> Hi all,
>
> I have a GEF graphic editor for drawing some simple shapes. Other than
> drag&drop the shapes from the palette, I want to add these shapes
> programtically. Say click a button on the tool bar and some default
> shapes will be added to the graphic editor. How can I implement this?
> Thanks.
>
>
> allen
>
>
Previous Topic:how to contact Andreas Schosser
Next Topic:How do I remove all node from a Zest Graph?
Goto Forum:
  


Current Time: Fri Apr 26 05:42:44 GMT 2024

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

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

Back to the top