|perspective shortcuts in menus (commands) without "other.." [message #544693]
||Mon, 05 July 2010 09:45
Registered: July 2010
I am looking for a possibility to
1. add perspecitves shortcuts to a menu using commands (e.g. to build something like the Eclispe "Window"-> "Show Perspective" menu.
Only possibility I found that far is to use ContributionItemFactory.PERSPECTIVES_SHORTLIST.create(window ); in ApplicationActionBarAdvisor.java
Is there an approach that uses commands only? It is a little bit "unaesthetic" to have two places in the quellcode to maintain menus.
2. Remove the "other.." entry from the PERSPECTIVE_SHORTLIST. Since I am restricting the user, based on his roles, to specific perspectives I obviously don't want him to see all other perspectives, but that's what this "other..." menu does: Show ALL perspectives...
thanks in advance
Chrisitan aka Mable
Powered by FUDForum
. Page generated in 0.01877 seconds