|
Re: Putting a Toolbar inside an EditorPart [message #432800 is a reply to message #432797] |
Fri, 26 March 2004 20:59 |
Eclipse User |
|
|
|
Originally posted by: paull.NOSPAMcodetelligence.com
I'm not exactly sure what you want to accomplish. Did you look at
contributeToToolBar() in your editor contributor?
Paul Lever
www.codetelligence.com
"David Havrda" <dhavrda@motive.com> wrote in message
news:c420q7$jcn$1@eclipse.org...
> I have a plug-in and I wish to put a ToolBar inside of an
Editor/EditorPart?
> I do NOT want to append menu items to the existing menu nor do I wish to
> have a context menu. I want a BAR style ToolBar to show up in my editor
> area. Any help would be appreciated. Below is a snippet of code I have
> tried. I found some of it elsewhere on the forums.
>
> This is a piece of code from the createPartControl(Composite parent)
method
> of my editor.
> properties is a Composite which is a child of parent arguement.
> Decorations decs = new Decorations(properties, SWT.DIALOG_TRIM);
>
> layout = new GridLayout();
>
> decs.setLayout(layout);
>
> decs.setBounds(20, 30, 200, 30);
>
> Menu menu = new Menu(decs, SWT.BAR);
>
> decs.setMenuBar(menu);
>
> MenuItem item = new MenuItem(menu, SWT.PUSH);
>
> item.setText("item");
>
>
|
|
|
|
Re: Putting a Toolbar inside an EditorPart [message #432803 is a reply to message #432801] |
Fri, 26 March 2004 21:31 |
Eclipse User |
|
|
|
Originally posted by: paull.NOSPAMcodetelligence.com
So are you looking for a floating toolbar? Not that I know how to do that.
Paul Lever
www.codetelligence.com
"David Havrda" <dhavrda@motive.com> wrote in message
news:c425va$p5j$1@eclipse.org...
> I want to have a toolbar actually reside in the editor area.
>
>
> "Paul L" <paull@NOSPAMcodetelligence.com> wrote in message
> news:c425cv$odv$1@eclipse.org...
> > I'm not exactly sure what you want to accomplish. Did you look at
> > contributeToToolBar() in your editor contributor?
> >
> > Paul Lever
> > www.codetelligence.com
> >
> > "David Havrda" <dhavrda@motive.com> wrote in message
> > news:c420q7$jcn$1@eclipse.org...
> > > I have a plug-in and I wish to put a ToolBar inside of an
> > Editor/EditorPart?
> > > I do NOT want to append menu items to the existing menu nor do I wish
to
> > > have a context menu. I want a BAR style ToolBar to show up in my
editor
> > > area. Any help would be appreciated. Below is a snippet of code I
have
> > > tried. I found some of it elsewhere on the forums.
> > >
> > > This is a piece of code from the createPartControl(Composite parent)
> > method
> > > of my editor.
> > > properties is a Composite which is a child of parent arguement.
> > > Decorations decs = new Decorations(properties, SWT.DIALOG_TRIM);
> > >
> > > layout = new GridLayout();
> > >
> > > decs.setLayout(layout);
> > >
> > > decs.setBounds(20, 30, 200, 30);
> > >
> > > Menu menu = new Menu(decs, SWT.BAR);
> > >
> > > decs.setMenuBar(menu);
> > >
> > > MenuItem item = new MenuItem(menu, SWT.PUSH);
> > >
> > > item.setText("item");
> > >
> > >
> >
> >
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04399 seconds