I want to add my custom view to the "Window" menu. This code is adding only opened views
IMenuManager pencereler = new MenuManager("sample");
pencereler.add(ContributionItemFactory.VIEWS_SHORTLIST.create(window));
viewMenu.add(pencereler);
If I open my custom view, it is added to this menu. However, I want to show my custom view always in this menu, not only after it has been opened.
So can I create "ContributionItem" from the view or is there any other way like adding some lines to "plugin.xml" or adding my view's id to any extension?