Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Replacing options in 'File->New'
Replacing options in 'File->New' [message #65825] Fri, 06 June 2003 17:47 Go to next message
David Bailey is currently offline David BaileyFriend
Messages: 45
Registered: July 2009
Member
I have created a navigator similar to the ResourceNavigator or
PackageExplorer.
I also have created (or plan to create) a collection of 'New' actions for
the creation of various new thingies of one kind and another.

It is simple to add these actions to the context menu for my navigator,
but I'm having difficulty figuring out how to replace the actions which
appear under 'File->New' with mine. This is clearly possible, as JDT does
it.

I read an earlier post which suggests that it might be necessary to define
a custom perspective to do this sort of thing. Is this the case, or can I
do what I want using the org.eclipse.ui.actionSets and
org.eclipse.ui.actionSetPartAssociations extension points?

Thanks,

--dave
Re: Replacing options in 'File->New' [message #65897 is a reply to message #65825] Fri, 06 June 2003 18:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

Only the perspective can determine what will go into the File > New submenu.

You can open a bug report against Platform - UI to consider having
views/editors contribute to that submenu - kinda like we allow for action
sets using actionSetPartAssociations

Simon :-)

"David Bailey" <david.bailey@lawson.com> wrote in message
news:bbqk3m$jel$1@rogue.oti.com...
>
> I have created a navigator similar to the ResourceNavigator or
> PackageExplorer.
> I also have created (or plan to create) a collection of 'New' actions for
> the creation of various new thingies of one kind and another.
>
> It is simple to add these actions to the context menu for my navigator,
> but I'm having difficulty figuring out how to replace the actions which
> appear under 'File->New' with mine. This is clearly possible, as JDT does
> it.
>
> I read an earlier post which suggests that it might be necessary to define
> a custom perspective to do this sort of thing. Is this the case, or can I
> do what I want using the org.eclipse.ui.actionSets and
> org.eclipse.ui.actionSetPartAssociations extension points?
>
> Thanks,
>
> --dave
>
Re: Replacing options in 'File->New' [message #66030 is a reply to message #65825] Fri, 06 June 2003 22:39 Go to previous message
Eclipse UserFriend
Originally posted by: knut_radloff.oti.com

You can add to the New menu on a per perspective basis. See org.eclipse.ui.perspectiveExtensions extension point, newWizardShortcut.

Since you created a navigator-like view you may be interested in the General Purpose Navigator item on the 3.0 plan.You can add your
comments on what you would like to see to make implementing Navigator views easier to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=36961
The bug will also include a link to an initial problem description and requirements document shortly (Monday at the latest).
The idea is to avoid having multiple navigator-like views and consolidating different model presentations and actions into one view.
Your input is welcome!

Knut

"David Bailey" <david.bailey@lawson.com> wrote in message news:bbqk3m$jel$1@rogue.oti.com...
>
> I have created a navigator similar to the ResourceNavigator or
> PackageExplorer.
> I also have created (or plan to create) a collection of 'New' actions for
> the creation of various new thingies of one kind and another.
>
> It is simple to add these actions to the context menu for my navigator,
> but I'm having difficulty figuring out how to replace the actions which
> appear under 'File->New' with mine. This is clearly possible, as JDT does
> it.
>
> I read an earlier post which suggests that it might be necessary to define
> a custom perspective to do this sort of thing. Is this the case, or can I
> do what I want using the org.eclipse.ui.actionSets and
> org.eclipse.ui.actionSetPartAssociations extension points?
>
> Thanks,
>
> --dave
>
Previous Topic:contributing help
Next Topic:Opening Java Editor from Double Click
Goto Forum:
  


Current Time: Sat Oct 19 16:04:32 GMT 2024

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

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

Back to the top