how to add submenu to "Open With" menu form org.eclipse.ui.menu extenstion point - eclipse

I am trying to add a popup item into "open with" menu of eclipse from org.eclipse.ui.menus extenstion point.
Basically I need to show this submenu on selection of particular type of object from the navigation view tree.
If anyone can guide me , it would be helpful . I have googled about it no specific answer

Related

JavaFX MenuBar: Separate mouse click on menu to show corresponding menu items

In JavaFX MenuBar, If we click on any menu then it shows corresponding menu items. Now If we don't move our mouse pointer from the clicked menu and drag it horizontally over other menus, then for each menu it shows corresponding menu items. It is the default functionality. But I don't want that.
I want to configure it in a way such that separate mouse click would be necessary to show corresponding menu items. So here If we click on any menu and drag mouse pointer horizontally over another menu then it should do nothing.
here, by saying mouse click, I meant click & release(not hold the click)
I searched in StackOverflow & google for any related questions or blog posts but found nothing. Any suggestions will be highly appreciated. Thank you.

How to remove "Compare with - each other" pop up menu item from package explorer

I have one plugin for eclipse project explorer. I want to modify the pop up menu in project explorer.
I added one activity for which pattern binding has one pattern entry as
pattern=".*/org.eclipse.compare.*">
this removes all sub items under "Compare with" except the "Each other" option.
Can some one help me in removing this option from pop-up menu.
I also tried an altogether different activity pattern binding with pattern as
isEqualityPattern="true"
pattern="org.eclipse.compare.CompareEditor">
but , it fails.
'Compare with each other' is contributed by the org.eclipse.team.ui plugin and has the id org.eclipse.team.ui.compareWithEachOther
I used the Menu Spy component of Eclipse Plugin Spy to determine the details of the menu item.

Eclipse plugin development implementation

I work with Eclipse and PyDev plugin.
I want to develop a plugin which adds to the main menu (where File is located), an item "my own custom menu" which contains in it another menu items.
According to some examples, I eventually implemented it by using the extension point of org.eclipse.ui.actionSets.
My goal is when item of "my custom menu" is clicked, it should invoke Eclipse functionality.
for example:
"my custom menu" has menu item called "open new pyDev project".
When "open new pyDev project" is clicked, I want to open the pyDev project creation window that manually is opened by clicking the following Eclipse menu items: File->new->other->PyDev->PyDev Project.
I searched quite a lot and couldn't find the way to do it.
Does someone know how to achieve my goal?
What you want to do is implement a workbench wizard that will add them to the set of workbench wizards; then you can add a perspective extension to add it the the corresponding menu generically.
You have to look up the perspective ID you are using with PyDev, but this is the recommended way to add new wizard items to the corresponding menu.

Eclipse plugin: how to modify the tab context menu

When developing Eclipse RCP application, on the view part, right click on the tab, you can see a context menu with "detached, restore, move, size, minimize, maximize" actions. I was wondering how to add a new action to that tab context menu? What's the correct keyword for this?
Most of results I found is about the general context menu, which is the one you get when right click anywhere in the viewpart. Where what I am looking for is the context menu from the tab.
Or what I should do is set some properties which make the context menu only showing when right click on the tab area.
What I am trying to do is add an option "Duplicate Tab" to context menu.

eclipse plugin development-adding button to toolbar and its behaviour

Using eclipse plugin, I am trying to add some buttons in toolbar and want to perform some action onclick to that button.
so what i did in extension tab i added org.eclipse.ui.menus and so added a menucontribution to it with URI location- toolbar:org.eclipse.ui.main.toolbar.And then a toolbar in it with a command lets say Design
so by doing this a got a button on toolbar with name Design.
now i want it should be clickable (as for now it is inactive) and on click i can add some behavior/action to it.
please help.
You can use "Hello,World Command" plug-in template which adds a "Sample Menu" in the toolbar and start from that point.