[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Thanks Mithun and All for advice on Creating Dynamic Palette
|
Create a new CreationToolEntry which is provided the right CreationFactory
that can create your model and then add that ToolEntry to the palette model.
That's all that is required.
BTW, you're familiar with the way one can customize a palette and show/hide
entries on it, right? Do what you're doing only if that doesn't address
what you want.
"Ved Gunjan" <gunjan_sir@xxxxxxxxx> wrote in message
news:42bca4e29c852c546d418632ba9429d2$1@xxxxxxxxxxxxxxxxxx
>
> hi!
> thanks mithin and everybody for the advice,but im still stuck in the
> implementation...
> The picture is still abstract to me as to how to go about the
> implementation.
> I will explain my situation once again....
> I have a view called Solution Explorer(name of the class implementing my
> view is CategoryView ) which shows me different categories say
> category1
> |-A
> |-B
> |-C
> category2
> category3
>
> Now this individual categories has my model objects,which needs to be
> added in the palette i.e say category1 has 3 model objects A,B,C, so
> when i right click on any one of it...say A,i should get a drop-down menu
> which has SendToPalette option.When i select/click on this option ,the
> model(in this case A)should be added to the palette.
>
> Now pleez any of the experts tel me how to go about it.I will really
> obliged.
>
> regards
> ved
>