Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Integrating custom layout algorithms
Integrating custom layout algorithms [message #188134] Tue, 19 July 2005 10:56 Go to next message
Eclipse UserFriend
Originally posted by: esat.cs.bilkent.edu.tr

Hi,
I am trying to integrate a previosly written layout algorithm into GEF logic
example. I am a newbie to GEF environment.
There are some isues:
-first of all how i can trigger such a layout to be applied on an existing
circuit that is drawn by using tools in Palette? I cannot find a sutiable
triggering button in the palette . They are used for special purposes such
as selection or tools.
-What steps i have to follow after such a trigger? For example after double
clicking, a REQ_OPEN request is generated. How can i handle it? I can't find
any strict delegating procedure that i have to follow.(e.g. request handled,
command generated, model triggered, property change event is sent and
finally edit part is on the job)

any ideas wouldbe very helpful, thanks for your attention...
Re: Integrating custom layout algorithms [message #188245 is a reply to message #188134] Tue, 19 July 2005 15:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

"Esat Belviranli" <esat@cs.bilkent.edu.tr> wrote in message
news:dbim97$6v6$1@news.eclipse.org...
> Hi,
> I am trying to integrate a previosly written layout algorithm into GEF
logic
> example. I am a newbie to GEF environment.
> There are some isues:
> -first of all how i can trigger such a layout to be applied on an existing
> circuit that is drawn by using tools in Palette? I cannot find a sutiable
> triggering button in the palette . They are used for special purposes such
> as selection or tools.

Use an action for that. On the menu bar and/or toolbar.

> -What steps i have to follow after such a trigger? For example after
double
> clicking, a REQ_OPEN request is generated. How can i handle it? I can't
find
> any strict delegating procedure that i have to follow.(e.g. request
handled,
> command generated, model triggered, property change event is sent and
> finally edit part is on the job)

For that layout change action, you wouldn't need to do anything. Changing
the layout would cause the figure to revalidate.

You should look at the help available on your documentation page. You might
also find the Draw2d/GEF Help Contents in Eclipse helpful.

>
> any ideas wouldbe very helpful, thanks for your attention...
>
>
Re: Integrating custom layout algorithms [message #188252 is a reply to message #188134] Tue, 19 July 2005 15:52 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

"Esat Belviranli" <esat@cs.bilkent.edu.tr> wrote in message
news:dbim97$6v6$1@news.eclipse.org...
> Hi,
> I am trying to integrate a previosly written layout algorithm into GEF
logic
> example. I am a newbie to GEF environment.
> There are some isues:
> -first of all how i can trigger such a layout to be applied on an existing
> circuit that is drawn by using tools in Palette? I cannot find a sutiable
> triggering button in the palette . They are used for special purposes such
> as selection or tools.
> -What steps i have to follow after such a trigger? For example after
double
> clicking, a REQ_OPEN request is generated. How can i handle it? I can't
find
> any strict delegating procedure that i have to follow.(e.g. request
handled,
> command generated, model triggered, property change event is sent and
> finally edit part is on the job)

BTW, the event flow that you mention is pretty much how it happens. The
tools send the request to the specific editpart. The editpolicies installed
on that editpart get a chance to handle the request (by returning a
command). The editpolicies will also get a chance to show some feedback.
The command and feedback are generally continuously updated while the action
hasn't been committed.

REQ_OPEN and REQ_DIRECT_EDIT are slightly different, however. Search the
newsgroup for the whys and the hows.

>
> any ideas wouldbe very helpful, thanks for your attention...
>
>
Previous Topic:Multipage GEF editor problem with palette
Next Topic:MouseMotionListener in a layout
Goto Forum:
  


Current Time: Thu Dec 26 17:28:04 GMT 2024

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

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

Back to the top