Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Flow of execution - from a tool to a view update
Flow of execution - from a tool to a view update [message #187554] Wed, 13 July 2005 14:21 Go to next message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Hi again,

The more I read, the less I understand how to work with GEF. I beg your
help, please don't ask me to search the forum, I've already done so on the
last 2 hours. I'm trying to understand the flow of execution of an
operation requested by the user.
Suppose I have a figure being shown on the editor. I want to provide a
filter tool in the pallete which make it possible to apply a small
decoration on the displayed figure. From what I understood so far, I have
to create my own Tool and put it on the Pallete. This tool, when selected
will create a request a send it to the figure edit part. The figure edit
part will forward the request to the installed edit policies. One of the
installed edit policies will handle the request creating a command to
execute it. This command will change the model properly applying the
requested filter. The model then notifies its listener that a change has
been occurred and this listener (an edit part) changes the figure which
represents the model. Is there any mistake on my understanding? If not,
then I'm glad that at least I can think I know how to do that in theory :)

The problem is how to translate that to code :(

How do I know when the tool is selected so that I can send a request to
the edit part?
Do I have to create my own request, like a ApplyFilterRequest?
How to send the request to the edit part?
Am I really lost?

As you can see, my main problem is how to tie those concepts together. I
would be extremely glad if one of the kind developers out there reading my
post feel pity of me and give some free tips :)

Thanks very much to the developers who give me some tips...
And thanks to the ones who just read it :)

Best Regards
Cleverson Schmidt
Re: Flow of execution - from a tool to a view update [message #187581 is a reply to message #187554] Wed, 13 July 2005 17:07 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The purpose of the palette is to change the mode of the mouse in the
graphical view. If you want clicking on a button to immediately invoke some
action, you should put an action on the toolbar for this. For an example,
look at the IncrementDecrementAction in the logic example.

"Cleverson Schmidt" <cleversons@gmail.com> wrote in message
news:3b32684a5d454eabf7e6649b89312a8c$1@www.eclipse.org...
> Hi again,
>
> The more I read, the less I understand how to work with GEF. I beg your
> help, please don't ask me to search the forum, I've already done so on the
> last 2 hours. I'm trying to understand the flow of execution of an
> operation requested by the user.
> Suppose I have a figure being shown on the editor. I want to provide a
> filter tool in the pallete which make it possible to apply a small
> decoration on the displayed figure. From what I understood so far, I have
> to create my own Tool and put it on the Pallete. This tool, when selected
> will create a request a send it to the figure edit part. The figure edit
> part will forward the request to the installed edit policies. One of the
> installed edit policies will handle the request creating a command to
> execute it. This command will change the model properly applying the
> requested filter. The model then notifies its listener that a change has
> been occurred and this listener (an edit part) changes the figure which
> represents the model. Is there any mistake on my understanding? If not,
> then I'm glad that at least I can think I know how to do that in theory :)
>
> The problem is how to translate that to code :(
>
> How do I know when the tool is selected so that I can send a request to
> the edit part?
> Do I have to create my own request, like a ApplyFilterRequest?
> How to send the request to the edit part?
> Am I really lost?
>
> As you can see, my main problem is how to tie those concepts together. I
> would be extremely glad if one of the kind developers out there reading my
> post feel pity of me and give some free tips :)
>
> Thanks very much to the developers who give me some tips...
> And thanks to the ones who just read it :)
>
> Best Regards
> Cleverson Schmidt
Previous Topic:Sticky ToolEntry
Next Topic:DND within editor and natively
Goto Forum:
  


Current Time: Tue Dec 03 08:46:19 GMT 2024

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

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

Back to the top