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: 139
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 184 times)
  • Attachment: Untitled.png
    (Size: 64.25KB, Downloaded 189 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: 139
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: Fri Dec 19 20:26:49 GMT 2014

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

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