Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Regarding EditPolicies and Commands and Requests
Regarding EditPolicies and Commands and Requests [message #220211] Thu, 27 July 2006 02:37 Go to next message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Hi,

I am trying to learn GEF and is confuse about EditPolicies, Commands and
Requests.

1) How are Request created?

I did not find any explicit creation of Request in a sample GEF example -
Shape. How does GEF knows which type of request to generate? e.g when I
drag and drop the figures etc? and which Command is to be return in
reponse to the Request?



2) How are the Commands called?

After installing the editpolicies, (I intend to write my own
editpolicies), how does GEF know which command to call?
For example, I have seen a createChangeConstraintCommand in the
ShapesXYLayoutEditPolicy in the Shape example, however I did not find any
explicit calling of the Command in any part of the code.

I read somewhere that the editpolicies are scan thru in order and the
appropriate Command is called. Is this true?



3) Where are the Commands returned to and who will eventually execute them?


Relly hope to clarify my doubts soon so I can get on to create my own
application. Thanks in advance guys.
Re: Regarding EditPolicies and Commands and Requests [message #220224 is a reply to message #220211] Thu, 27 July 2006 02:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Another question, is there a fix set of EditPolicies which I must extend
on? Or can I create my own editPolicies from scratch without extending any
of available on?
Re: Regarding EditPolicies and Commands and Requests [message #220232 is a reply to message #220211] Thu, 27 July 2006 02:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Is there also a fixed set of Requests? and is there also a default set of
Commands which will response to the set of Requests, and I can only extend
upon these Commands?
Re: Regarding EditPolicies and Commands and Requests [message #220240 is a reply to message #220232] Thu, 27 July 2006 04:26 Go to previous message
Sebu Thomas is currently offline Sebu ThomasFriend
Messages: 12
Registered: July 2009
Junior Member
Meo Kok Eng wrote:
> Is there also a fixed set of Requests? and is there also a default set
> of Commands which will response to the set of Requests, and I can only
> extend upon these Commands?
>
>
>
You will find answers to most of your questions here at
http://eclipsewiki.editme.com/GEF. Also look through the Javadoc for GEF.

Sebu.
Previous Topic:Setting editor dirty without commands
Next Topic:UndoablePropertySheetEntry
Goto Forum:
  


Current Time: Sat Apr 27 04:08:47 GMT 2024

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

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

Back to the top