Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:25 Go to next message
Sumit Singh is currently offline Sumit SinghFriend
Messages: 141
Registered: October 2012
Location: Bangalore
Senior Member

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 464 times)
  • Attachment: Untitled.png
    (Size: 64.25KB, Downloaded 476 times)

[Updated on: Fri, 21 June 2013 11:26]

Report message to a 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 11:31 Go to previous message
Sumit Singh is currently offline Sumit SinghFriend
Messages: 141
Registered: October 2012
Location: Bangalore
Senior Member

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: Thu Mar 28 10:02:48 GMT 2024

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

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

Back to the top