Regarding EditPolicies and Commands and Requests [message #220211] |
Thu, 27 July 2006 02:37 |
Eclipse User |
|
|
|
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.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds