Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Disabling default menu bar programmatically
Disabling default menu bar programmatically [message #196824] Wed, 18 February 2004 04:17 Go to next message
Eclipse UserFriend
Originally posted by: ajing.sg.systemaccess.com

Hi Eclipse Gurus,

I'm not sure if this is the correct newsgroup but anyway my problem is
this:

Im creating my own perspective and i want to disable the default
actionsets in the menu bar like File, Edit, Navigate etc. Can i do it
programmatically?
If not, in which plugin.xml should i modify in order to remove this?

Your help is greatly appreciated. Thanks in advance.

Regards,
Ajing
Re: Disabling default menu bar programmatically [message #196874 is a reply to message #196824] Wed, 18 February 2004 07:58 Go to previous messageGo to next message
Eclipse UserFriend
Are you writing a custom application with eclipse as base? Then you should
look at RCP...

"Ajing" <ajing@sg.systemaccess.com> schrieb im Newsbeitrag
news:c0vajd$2ip$1@eclipse.org...
> Hi Eclipse Gurus,
>
> I'm not sure if this is the correct newsgroup but anyway my problem is
> this:
>
> Im creating my own perspective and i want to disable the default
> actionsets in the menu bar like File, Edit, Navigate etc. Can i do it
> programmatically?
> If not, in which plugin.xml should i modify in order to remove this?
>
> Your help is greatly appreciated. Thanks in advance.
>
> Regards,
> Ajing
>
Re: Disabling default menu bar programmatically [message #196925 is a reply to message #196874] Wed, 18 February 2004 09:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ajing.sg.systemaccess.com

Hi Martin,
Actually Im not into RCP. I just want to have a customized perspective
(including customizing the menu bar). I
still need to use Eclipse's other powerful perspective. Like for example,
i have my own model in the Navigator or Package Explorer. Though im into
creating Java Projects, I just want to have a perspective in such a way
that it will follow my model. If the user wants to see the sources that
was generated by my perspective, he can go to the java perspective. Is
that possible.

Many thanks to your reply...

Martin Klinke wrote:

> Are you writing a custom application with eclipse as base? Then you should
> look at RCP...

> "Ajing" <ajing@sg.systemaccess.com> schrieb im Newsbeitrag
> news:c0vajd$2ip$1@eclipse.org...
> > Hi Eclipse Gurus,
> >
> > I'm not sure if this is the correct newsgroup but anyway my problem is
> > this:
> >
> > Im creating my own perspective and i want to disable the default
> > actionsets in the menu bar like File, Edit, Navigate etc. Can i do it
> > programmatically?
> > If not, in which plugin.xml should i modify in order to remove this?
> >
> > Your help is greatly appreciated. Thanks in advance.
> >
> > Regards,
> > Ajing
> >
Re: Disabling default menu bar programmatically [message #197013 is a reply to message #196925] Wed, 18 February 2004 10:51 Go to previous messageGo to next message
Eclipse UserFriend
The Eclipse User Interface Guideluines say the following:

"The Workbench's main menu bar usually contains the File, Edit, Navigate,
Project, Window, Help top-level menus. Other top-level menus that are in
between the Edit and Project menu are typically context specific, based on
the current active perspective, front most editor (whether active or not),
and active view.. "

Link: http://www.eclipse.org/articles/Article-UI-Guidelines/Conten ts.html

The principle of a plugin is to contribute, not to customize. I.e. your
perspective can contribute menu items, but it can't take existing ones away
as far as I know. Besides, think of the consequences if plugin A could
remove plugin B's menu items and vice versa!
In your first post you were asking which plugin.xml you had to modify in
order to remove the menu items. Did you mean to modify the plugin.xml of
another plugin? If yes please give me more information about the background
of your plugin. Will it be used only by a limited user group e.g. at your
company? Because otherwise everybody who would like to integrate your plugin
would have to do these changes in order to see what you intended to show and
would then always lack the removed menu items...

I would appreciate hearing from you.

"Ajing" <ajing@sg.systemaccess.com> schrieb im Newsbeitrag
news:c0vrkk$or4$1@eclipse.org...
>
> Hi Martin,
> Actually Im not into RCP. I just want to have a customized perspective
> (including customizing the menu bar). I
> still need to use Eclipse's other powerful perspective. Like for example,
> i have my own model in the Navigator or Package Explorer. Though im into
> creating Java Projects, I just want to have a perspective in such a way
> that it will follow my model. If the user wants to see the sources that
> was generated by my perspective, he can go to the java perspective. Is
> that possible.
>
> Many thanks to your reply...
>
> Martin Klinke wrote:
>
> > Are you writing a custom application with eclipse as base? Then you
should
> > look at RCP...
>
> > "Ajing" <ajing@sg.systemaccess.com> schrieb im Newsbeitrag
> > news:c0vajd$2ip$1@eclipse.org...
> > > Hi Eclipse Gurus,
> > >
> > > I'm not sure if this is the correct newsgroup but anyway my problem
is
> > > this:
> > >
> > > Im creating my own perspective and i want to disable the default
> > > actionsets in the menu bar like File, Edit, Navigate etc. Can i do it
> > > programmatically?
> > > If not, in which plugin.xml should i modify in order to remove this?
> > >
> > > Your help is greatly appreciated. Thanks in advance.
> > >
> > > Regards,
> > > Ajing
> > >
>
>
Re: Disabling default menu bar programmatically [message #197450 is a reply to message #197013] Wed, 18 February 2004 21:26 Go to previous message
Eclipse UserFriend
Originally posted by: ajing.sg.systemaccess.com

Thanks for the reply. it was a mind opener for me. Base from your reply
and posted article, it seems that i need to re-conceptualize on what im
about to do. The plugin that im thinking of is gonna only be use
internally. Only for our development purposes.

Thanks for the info, i was enlightend


Martin Klinke wrote:

> The Eclipse User Interface Guideluines say the following:

> "The Workbench's main menu bar usually contains the File, Edit, Navigate,
> Project, Window, Help top-level menus. Other top-level menus that are in
> between the Edit and Project menu are typically context specific, based on
> the current active perspective, front most editor (whether active or not),
> and active view.. "

> Link: http://www.eclipse.org/articles/Article-UI-Guidelines/Conten ts.html

> The principle of a plugin is to contribute, not to customize. I.e. your
> perspective can contribute menu items, but it can't take existing ones away
> as far as I know. Besides, think of the consequences if plugin A could
> remove plugin B's menu items and vice versa!
> In your first post you were asking which plugin.xml you had to modify in
> order to remove the menu items. Did you mean to modify the plugin.xml of
> another plugin? If yes please give me more information about the background
> of your plugin. Will it be used only by a limited user group e.g. at your
> company? Because otherwise everybody who would like to integrate your plugin
> would have to do these changes in order to see what you intended to show and
> would then always lack the removed menu items...

> I would appreciate hearing from you.

> "Ajing" <ajing@sg.systemaccess.com> schrieb im Newsbeitrag
> news:c0vrkk$or4$1@eclipse.org...
> >
> > Hi Martin,
> > Actually Im not into RCP. I just want to have a customized perspective
> > (including customizing the menu bar). I
> > still need to use Eclipse's other powerful perspective. Like for example,
> > i have my own model in the Navigator or Package Explorer. Though im into
> > creating Java Projects, I just want to have a perspective in such a way
> > that it will follow my model. If the user wants to see the sources that
> > was generated by my perspective, he can go to the java perspective. Is
> > that possible.
> >
> > Many thanks to your reply...
> >
> > Martin Klinke wrote:
> >
> > > Are you writing a custom application with eclipse as base? Then you
> should
> > > look at RCP...
> >
> > > "Ajing" <ajing@sg.systemaccess.com> schrieb im Newsbeitrag
> > > news:c0vajd$2ip$1@eclipse.org...
> > > > Hi Eclipse Gurus,
> > > >
> > > > I'm not sure if this is the correct newsgroup but anyway my problem
> is
> > > > this:
> > > >
> > > > Im creating my own perspective and i want to disable the default
> > > > actionsets in the menu bar like File, Edit, Navigate etc. Can i do it
> > > > programmatically?
> > > > If not, in which plugin.xml should i modify in order to remove this?
> > > >
> > > > Your help is greatly appreciated. Thanks in advance.
> > > >
> > > > Regards,
> > > > Ajing
> > > >
> >
> >
Previous Topic:Problems running perspective example
Next Topic:DeferedTreeContentManager
Goto Forum:
  


Current Time: Sun May 11 06:30:57 EDT 2025

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

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

Back to the top