Hi,
I don’t know if this is the right
place to put my question….
I’m also registered to the mailing
list of GEF but where to put the question is always a dilemma…
Well I was working on decorators on the
outline view of GEF. As the tree viewer which is populated in GEF is of of
gef.ui , I have a feeling that associating a label decorator is tough or rather
not possible?
I have been though all the examples like
Shapes, Logic etc but none of them use the decorator ext point.
I have created a Label decorator through
decorator ext point and when I try to identify through decorator Manager, it returns
null.
Has anyone worked in this regard? …please
get in touch and reply.
Thanks
Anu.
From:
gef-dev-bounces@xxxxxxxxxxx [mailto:gef-dev-bounces@xxxxxxxxxxx] On Behalf Of Siddharth Shankar
Sent: Friday, September 22, 2006
8:20 PM
To: GEF development
Subject: Re: [gef-dev] Difference
in Behavior between Drag and Drop [using TemplateTransferDropTargetListener]
and Click and Drop [using Creation Tool]
Hi Anthony,
Thanks for the reminder. I will take care to post my questions and at times the
answers (:)) to the designated newsgroup.
Cheers,
Siddharth
On 9/22/06, Anthony
Hunter <anthonyh@xxxxxxxxxx>
wrote:
Hi Siddharth,
A
reminder that these discussions need to take place in the GEF newsgroup
news://news.eclipse.org/eclipse.tools.gef .
Can
you please post your question there?
Cheers...
Anthony
Hi,
I encountered a minor bug in my aaplication probabaly because of
some error on my side and would be glad if any one of you can point that
out.The bug (difference in behavior when doing a drag and drop from palette and
when doing a click and drop from palette) is described below:
Say I have a Figure [A sub class of Shape] and there's an edit
part and model corresponding to this shape
The figure that i create also has a label within it.(The label is
added to the shape in the paintFigure method which has been subclassed)
Now in my edit part's perform request method the bounds of the
label is same as the bounds of the figure/ shape in case of drag and drop
(TemplateTransferDropTargetListener) which is what I desire but in case
of click and drop (Creation Tool) its not the same.
I have fixed it by doing the following:
While creating the shape I add the label to the Shape
In the paint figure method I set the size of the label to be the
same as that of shape
Although the above fix has so far wroked fine for me I wanted to know
why does the two approaches of drag and drop and click and drop behave
diffrently with regards to setting the bounds of the label and if there is some
better fix which I should incorporate
Thanks alot for your help in advance
--
Regards,
Siddharth _______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gef-dev
_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gef-dev
--
Thanks,
Siddharth