Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Child menu of New menu is not showing In E4 RCP.
Child menu of New menu is not showing In E4 RCP. [message #1064850] Fri, 21 June 2013 07:25 Go to next message
Eclipse UserFriend
I'm creating RCP application based on E4 with compatibility layer. I'm reusing JavaScript Perspective in my Application.
I add File and New Menu in RCP using ApplicationActionBarAdvisor like following:


    protected void makeActions(IWorkbenchWindow window) {
        newMenuMgr = new MenuManager("&New", "new");
        newActionItem = ActionFactory.NEW.create(window);
    }

    protected void fillMenuBar(IMenuManager menuBar) {
        MenuManager fileMenu = new MenuManager("&File", "file");
        menuBar.add(fileMenu);
        newMenuMgr.add(newActionItem);
        fileMenu.add(newMenuMgr);
    } 


After that Application is look like following:

index.php/fa/15343/0/

My question is because JavaScript Perspective implements PerspectiveExtension point they why JavaScript Project and JavaScript file like in eclipse following is not showing for my application:

index.php/fa/15344/0/

Even i extends b]PerspectiveExtension [/b]point and implement it but still no helps.

So what i'm missing, because File->New->Other.. is showing.
  • Attachment: Untitled.png
    (Size: 28.73KB, Downloaded 542 times)
  • Attachment: Untitled.png
    (Size: 64.25KB, Downloaded 534 times)

[Updated on: Fri, 21 June 2013 07:26] by Moderator

Re: Child menu of New menu is not showing In E4 RCP. [message #1064851 is a reply to message #1064850] Fri, 21 June 2013 07:31 Go to previous message
Eclipse UserFriend
I Finds the answer my self just after i put this question here Wink
Rather then

newActionItem = ActionFactory.NEW.create(window);


we have to use following:
        newWizardItem = ContributionItemFactory.NEW_WIZARD_SHORTLIST.create(window);
Previous Topic:Passing parameters while creating a view in Eclipse RCP
Next Topic:Pulldown menu: display label of a command
Goto Forum:
  


Current Time: Sat Jul 12 06:12:09 EDT 2025

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

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

Back to the top