Tool Entry vs. Tool [message #247808] |
Wed, 18 March 2009 21:26  |
Eclipse User |
|
|
|
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--B_3320274385_1517872
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: 8bit
Hi all,
Can someone help me better understand what is the difference between a tool
entry and tool. Especially, I would like to know how tool element are
managed?
I red somewhere that, tool are created when toolEntry are clicked/selected
in their palette. But I also read that tool get activated. Indeed the
editing domain check the active tool to forward event to. Therefore I
|
|
|
|
Re: Tool Entry vs. Tool [message #247835 is a reply to message #247810] |
Thu, 19 March 2009 10:44  |
Eclipse User |
|
|
|
Thanks for the reply,
But I don't think that you did CLEARLY clarify :-) the situation namely :
Explaining The link between the tool and the tool entry. If I understand you
well a toolEntry is related to a figue through his EditPart. However the
mystery comes out when the following interaction happen: the figure is
clicked that is clicked by the user and relates afterall to a tool? (magical
steps)
Therefore the question that comes down is what is the link between a
toolEntry, ToolEntry-figure and a tool? What or who does hold tools
instances. Is it the EditDomain only? How does it get its tools from the
ToolEntry of the palette viewer?
Again the same question, Each time you select a toolEntry, What does
happens: do you create a new tool each time.
Please, does anyone never interested himself on uderstanding that aspect of
GEF? Please help?
The tool creator?
On 3/19/09 3:33 AM, in article gpsav1$nok$1@build.eclipse.org, "David BY
Chan" <lifesting@gmail.com> wrote:
> Daniel OKOUYA wrote:
>> Hi all,
>>
>> Can someone help me better understand what is the difference between a
>> tool entry and tool. Especially, I would like to know how tool element
>> are managed?
>> I red somewhere that, tool are created when toolEntry are
>> clicked/selected in their palette. But I also read that tool get
>> activated. Indeed the editing domain check the active tool to forward
>> event to. Therefore I¹m wondering are tool created each time a tool
>> entry is selected or once and then managed by an object such as the
>> EditingDomain ? Finaly what is the exact difference or relation between
>> a tool Entry and a Tool. Who does create, holds and manages them ? For
>> one tool entry how many tool can it be?
>>
>> Please can some one give me some architecture pointers here or just help
>> to clarify the semantic?
>>
>>
>> Many thanks,
>> Maatari
> Palette follows the MVC pattern, PaletteEntry(ToolEntry inherits it)
> acts as Model and there must be a PaletteEditPart created for it, what
> you seen in Palette is the figure of PaletteEditPart. You can get a
> ToolEntry selection if you clicked a ToolEntryEditPart.
>
> Tool defined the *behavior* of a ToolEntry that will be used by
> EditDomain to decide how to do responding to mouse/keyboard event.
>
> Sometimes Tool will generate a Request according to event and forward it
> to selected EditPart in DiagramViewer, querying command through
> Editpart's EditPolicies.
|
|
|
Powered by
FUDForum. Page generated in 0.23017 seconds