Eclipse: Can I Bind Commands To The Mouse? - eclipse

I'd like to bind the Eclipse command "Toggle Block Selection" ( shift + alt + a ) to be activated when the right mouse button is held down, turned off when the right button is released and not be activated at all if the right mouse button is just single clicked ( in that case I'd like the normal context menu to come up ).
Is this possible with Eclipse?

Binding general gestures to commands is not possible in Eclipse 3.x. I believe there are some work underway in Eclipse 4 to support gestures, but I don't know the current state.
There have been a number of plug-ins for Eclipse that will add some limited gestures. Search on the marketplace for them...

Related

In Eclipse IDE how to disable the closing of an editor tab via plain right-click

I am using Eclipse Oxygen (Ver 4.7.0) on CentOS with the UI shown via MobaXterm's X Windows server on Windows 7.
In Eclipse I have the weird problem that when I right-click on an editor tab the tab closes immediately! No context menu, nothing, just the tab vanishes. I would like to disable this, but I couldn't find any entry for right-clicking in the Keys section of the Preferences.
Is there another place where the right-click behaviour is set? Or how else can I disable this? The problem occurs only for editor tabs.
Additional details:
The right-click behaves correctly inside an editor tab by bringing up the context menu. This shows that the right-click is not genearlly broken in the X Window system.
The right-click behaves correctly in other X applications like PyCharm.
An explanation
A closer look revealed that Eclipse does show the context menu on right-click press-down, but on right-click release-up it registers a left-click event.
Due to the particular situation of when the context menu was drawn, the mouse pointer than just always happens to sit over the top entry in the menu. And this top entry is Close. The following screenshot might illustrate this a bit (unfortunately without the mouse pointer):
Solution
The immediate solution for me is to move the mouse after pressing the right mouse button and before releasing it.
Still I don't know why this happens only when right-clicking a tab and only for me - and probably not for many other people...

How can I map the ctrl click functionality in Eclipse to a middle mouse click?

I want to switch the ctrl click functionality in Eclipse to be triggered by a middle mouse click. I saw a question here about how to disable the ctrl click functionality; I want to preserve it but give it a different or additional hot key.
Eclipse apparently can not bind commands to mouse buttons.
You could work around that limitation by using a separate program that allows you to define application specific actions for your mouse buttons, eg. X-Mouse Button Control, Logitech SetPoint (both via SO: Eclipse Back/Forward navigation using mouse buttons), or similar applications.
Or you switch to an IDE that allows mapping mouse buttons (and much more).
Eclipse can not bind it.
But you can bind it from the settings.
Try this link :
If you are using microsoft mouse.
https://support.microsoft.com/en-ca/help/269054/customize-program-specific-mouse-settings-on-your-mac
Also there are many 3rd party apps which can bind your requirement.

eclipse luna ctrl+space (content assist) no colored box/background around selection

there are a lot of questions about content assist in here, but nothing that fits to my problem. I downloaded eclipse luna and I am missing a dotted selection box, around my current selection when I hit ctrl + space. I can use my arrow keys as usual to navigate up and down to choose a different suggestion. The dotted selection box appears (or selection background) if I press tab after pressing ctrl + space.
Hopefully this is not a feature of the new luna release, because this is driving my crazy like hell...
Are there any fixes for this? I don't want to switch back to previous release, because there are a LOT of troubles with the GUI elements in open suse 12.3 / kde.
thx

hiding the editor window form a perspective in eclipse

Once and for all, ban the editor (source code editor) windows from mingling my 'DDMS' perspective. How to do that ?
EDIT:
Eclipse IDE for Java Developers
Version: 1.2.2.20100216-1730
Build id: 20100218-1602
with the only available updates being for Mylin and Android something
You can minimize the editor area using a button in the top-right corner of the editor area. That let's you see that it's minimized in the window frame (along the right side) and easily Restore it.
Alternatively, you can set up a keyboard shortcut to really toggle the editor area visibility. Open the Preferences and navigate to General > Keys (or press Ctrl/Cmd + Shift + L twice to jump right to the Keys preferences). Search the commands for area and then assign a keyboard shortcut to the Toggle Editor Area Visibility command. Note: for older versions of Eclipse (3.5 and older), the command is named Hide Editors.
There is no way to permanently remove the Editor Area from a Perspective; that's fundamental to how Eclipse is designed.

Eclipse Back/Forward navigation using mouse buttons

There is an addin for Visual Studio called MouseNavi that allows you to use mouse thumb buttons to navigate your history.
Does a similar extension exist for Eclipse?
I don't know of any Eclipse plugin that does this, but assuming you're using Windows:
This one should enable you to do what you want: http://www.highrez.co.uk/downloads/XMouseButtonControl.htm
With that tool you can assign each mouse button a sequence of keys (Alt+Left for example) and because it can be made application specific it won't interfere with other programs where you don't want that mapping.
Alt+Left and Alt+Right to navigate through the latest opened editors.
Also, Alt+L to open up the shortcuts popup, so you can see what's available.
No real mouse navigation control though (not that I know of... at least). Although, should not be very difficult to create one and attach it to the same handlers that deal with the navigation commands.
^Q takes you to last edited location. You can cycle using it. No mouse bindings.