Palette and Tree View [message #199914] |
Wed, 19 October 2005 23:17 |
Eclipse User |
|
|
|
Originally posted by: mcheng.cisco.com
Hi,
I have a need to create a Palette and Tree Viewer. And be able to drag the
object from the palette to the tree viewer to create new object in the tree.
I am new to GEF, read through some docs. I think I can create a
PaletteView which derives from ViewPart and create PaletteViewer,
PaletteRoot, etc. But I also like to have the flyout palette which is
attached to the view and can hide automatically or pin down. Since there is
no EditPart in this particular scenario, can you recommend the proper GEF
class to create the palette? Any examples will be very helpful.
Thanks,
Mike
|
|
|
Re: Palette and Tree View [message #199958 is a reply to message #199914] |
Thu, 20 October 2005 08:08 |
Eclipse User |
|
|
|
Originally posted by: greg.gigon.tugulu.com
You can look at GraphicalEditorWithFlyOutPalette :)
I hope You'll find your answers there :)
Cheers,Greg
mike cheng wrote:
> Hi,
>
> I have a need to create a Palette and Tree Viewer. And be able to drag the
> object from the palette to the tree viewer to create new object in the tree.
>
> I am new to GEF, read through some docs. I think I can create a
> PaletteView which derives from ViewPart and create PaletteViewer,
> PaletteRoot, etc. But I also like to have the flyout palette which is
> attached to the view and can hide automatically or pin down. Since there is
> no EditPart in this particular scenario, can you recommend the proper GEF
> class to create the palette? Any examples will be very helpful.
>
> Thanks,
> Mike
>
>
|
|
|
Re: Palette and Tree View [message #199966 is a reply to message #199958] |
Thu, 20 October 2005 08:09 |
Eclipse User |
|
|
|
Originally posted by: greg.gigon.tugulu.com
At source code :)
Offcourse :)
Greg
Greg wrote:
> You can look at GraphicalEditorWithFlyOutPalette :)
>
> I hope You'll find your answers there :)
>
> Cheers,Greg
>
> mike cheng wrote:
>
>> Hi,
>>
>> I have a need to create a Palette and Tree Viewer. And be able to
>> drag the
>> object from the palette to the tree viewer to create new object in the
>> tree.
>>
>> I am new to GEF, read through some docs. I think I can create a
>> PaletteView which derives from ViewPart and create PaletteViewer,
>> PaletteRoot, etc. But I also like to have the flyout palette which is
>> attached to the view and can hide automatically or pin down. Since
>> there is
>> no EditPart in this particular scenario, can you recommend the proper GEF
>> class to create the palette? Any examples will be very helpful.
>>
>> Thanks,
>> Mike
>>
>>
|
|
|
Re: Palette and Tree View [message #200044 is a reply to message #199914] |
Thu, 20 October 2005 13:43 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
PaletteView already is provided in GEF.
See TemplateTransferDragSource, etc.
"mike cheng" <mcheng@cisco.com> wrote in message
news:dj6k5j$p3v$1@news.eclipse.org...
> Hi,
>
> I have a need to create a Palette and Tree Viewer. And be able to drag
> the
> object from the palette to the tree viewer to create new object in the
> tree.
>
> I am new to GEF, read through some docs. I think I can create a
> PaletteView which derives from ViewPart and create PaletteViewer,
> PaletteRoot, etc. But I also like to have the flyout palette which is
> attached to the view and can hide automatically or pin down. Since there
> is
> no EditPart in this particular scenario, can you recommend the proper GEF
> class to create the palette? Any examples will be very helpful.
>
> Thanks,
> Mike
>
>
|
|
|
Re: Palette and Tree View [message #200194 is a reply to message #199958] |
Fri, 21 October 2005 00:03 |
Eclipse User |
|
|
|
Originally posted by: mcheng.cisco.com
Hi Greg,
Thanks for your quick reply.
I thought I couldn't use GraphicalEditorWithFlyoutPalette because I want to
attach the FlyoutPalette within a tree view which derives from the viewPart,
not graphical editor view.
Thanks,
Mike
"Greg" <greg.gigon@tugulu.com> wrote in message
news:dj7j9f$qvn$1@news.eclipse.org...
> You can look at GraphicalEditorWithFlyOutPalette :)
>
> I hope You'll find your answers there :)
>
> Cheers,Greg
>
> mike cheng wrote:
> > Hi,
> >
> > I have a need to create a Palette and Tree Viewer. And be able to drag
the
> > object from the palette to the tree viewer to create new object in the
tree.
> >
> > I am new to GEF, read through some docs. I think I can create a
> > PaletteView which derives from ViewPart and create PaletteViewer,
> > PaletteRoot, etc. But I also like to have the flyout palette which is
> > attached to the view and can hide automatically or pin down. Since
there is
> > no EditPart in this particular scenario, can you recommend the proper
GEF
> > class to create the palette? Any examples will be very helpful.
> >
> > Thanks,
> > Mike
> >
> >
|
|
|
Re: Palette and Tree View [message #200199 is a reply to message #200044] |
Fri, 21 October 2005 00:41 |
Eclipse User |
|
|
|
Originally posted by: mcheng.cisco.com
Hi Randy,
I took a look at PaletteView API. Looks like this is what I need to use.
Do you know any examples to show how to use it? Another question is this is
a palette view which has its own standalone window or can it be attached to
the tree view (view part) as well?
Thanks,
Mike
"Randy Hudson" <none@us.ibm.com> wrote in message
news:dj86tk$pkc$1@news.eclipse.org...
> PaletteView already is provided in GEF.
> See TemplateTransferDragSource, etc.
>
> "mike cheng" <mcheng@cisco.com> wrote in message
> news:dj6k5j$p3v$1@news.eclipse.org...
> > Hi,
> >
> > I have a need to create a Palette and Tree Viewer. And be able to drag
> > the
> > object from the palette to the tree viewer to create new object in the
> > tree.
> >
> > I am new to GEF, read through some docs. I think I can create a
> > PaletteView which derives from ViewPart and create PaletteViewer,
> > PaletteRoot, etc. But I also like to have the flyout palette which is
> > attached to the view and can hide automatically or pin down. Since
there
> > is
> > no EditPart in this particular scenario, can you recommend the proper
GEF
> > class to create the palette? Any examples will be very helpful.
> >
> > Thanks,
> > Mike
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.09719 seconds