Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Palette and Tree View
Palette and Tree View [message #199914] Wed, 19 October 2005 23:17 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
> >
> >
>
>
Previous Topic:scrolling - how do i get the right position withi a figure
Next Topic:GEF for standard SWT
Goto Forum:
  


Current Time: Thu Apr 25 21:01:59 GMT 2024

Powered by FUDForum. Page generated in 0.03445 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top