Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to programatically customize perspective
How to programatically customize perspective [message #329904] Thu, 10 July 2008 09:44 Go to next message
Eclipse UserFriend
Originally posted by: ianmayo.tesco.net

Hi all,
I've got an workbench-based application that uses it's own perspective.

I'm struggling in how to hide a number of main menubar menus
programatically. I know I can go into "customize perspective" and hide
the commands individually, but I can't redistribute these settings - I'd
really like to be able to do it programatically.

Can anybody help me out?

Particularly I'd like to be able to hide the "External tools", "Search",
and "Resource navigation" command groups.

thanks in advance,
Ian
Re: How to programatically customize perspective [message #329928 is a reply to message #329904] Thu, 10 July 2008 17:43 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I think your options are:

1) use http://wiki.eclipse.org/Product_Customization to remove the
actionSet definitions

2) use activities/capabilities to hide those action sets (there should
be a large number of articles about this).

3) if you're in an RCP app, have your
org.eclipse.ui.application.WorkbenchWindowAdvisor use
org.eclipse.ui.IWorkbenchPage.hideActionSet(String) to remove those
action sets.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Sorting contributed commands in a Menu
Next Topic:Re: ShowInMenu
Goto Forum:
  


Current Time: Thu Aug 15 04:20:35 GMT 2024

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

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

Back to the top