Which preference controls whether multiple selection is available to Package Explorer in Eclipse? - eclipse

It used to be the case that if I selected two files (or directories) in Package Explorer, I could then right click and use Compare With -> Each Other.
Recently I have found that my workspaces now only allow either a single file or a contiguous range of file to be selected. In other words, Click...Shift+Click does what I expect, but Click...Ctrl+Click doesn't.
Since this works fine for colleagues working with exactly the same version of eclipse (we all module load the same Eclipse deployment) I have to assume that it is a preference of some kind.
Unfortunately, after having gone through the preferences page with a fine tooth comb, I can't see anything which might control this behaviour.
So, can anyone think of a reason why multi-selection may be failing or disables in my explorer, but not that of some of my colleagues?
Note I am working with Eclipse Juno, though I have seen this with previous versions too, on Red Hat Enterprise Linux 6, using the Gnome Desktop Environment.

After many attempts and many failures, I eventually managed to track down this problem.
It seems that if the Gnome preference "Show position of pointer when the Control key is pressed" is enabled† then multi-selection fails in Eclipse.
To fix it, I simply disabled "Show position of pointer when the Control key is pressed"†.
† On my Red Hat Enterprise Linux 6 installation this is located in: System > Preferences > Mouse > General tab, Locate Pointer section
The thing which finally gave my a hint was identifying that this was probably due to the same underlying problem as another I was having with the NoMachine NX client, where the nxclient wasn't passing Ctrl key presses to the remote end at all. See the bug report Enabling Gnome Accessibility option prevents "ctrl" key from being recognized in NX window
After my Eclipse Bugzilla account is created,
I have added a bug report for this problem to the Eclipse Bugzilla: Bug 417573

Related

How to link Eclipse editor window to Eclipse project

I'm running into an issue in Eclipse where the editor pane is not linked to the project in the Package Explorer window. For instance, if I click on a project in the package explorer and then open a Problems window that is set to Configure Contents > uncheck Show all items > set Scope to On any element in same project, it will show any applicable errors or warnings, but as soon as I open one of the class files with an error/warning in it, in the editor pane, the problems list goes blank as the editor pane does not appear to link the active tab to the active project. Simply clicking the Package Explorer window will then repopulate the problems tab until focus goes back to the editor window/tab.
This used to work with older versions of Eclipse, but ever since I updated Eclipse, it no longer does this and I don't recall which version it was that I had been using. I've also downloaded a completely clean copy of Eclipse Luna (latest version) and simply imported the old projects and still the same issue.
Is there any way to change it so the active tab in the editor points to its associated project? It's quite frustrating having to click the Package Explorer window every time I want to look at a list of problems or tasks for a specific project.
Edit: I've narrowed the issue down to minimized windows only and provided an example of the issue below.
Both windows are restricted to "Show issue on project" rather than showing all issues. Notice how the "Tasks" window works as intended while the "Problems" window does not.
Found the issue... sort of. Apparently, if you minimize the problems tab, then try to access it via the minimized icon for the tab, it loses the correct focusing to tell you what the problems are. My previous version was setup in exactly the same way and had no issues, so they must have changed something that broke this. Going to look at submitting this to the Eclipse team, as a bug.

Eclipse cant get key input on Ubuntu

I'm using Ubuntu 12.10 and Eclipse Juno. This happens frequently: When I put focus in eclipse editor window, I can input few words in editor at the beginning, and then undo several times, Suddenly it happened that, I can't input any word in eclipse, that's strange problem.
Then, I change to other program and input anything, After that, back to eclipse it can accept my key again. It get me so frustrate.
Any one knows this problem? I am using desktop pc, memory is 1G.
This may help;
I guess you have lots of projects in your workspace and Project->Build Automatically option was enabled by default. Disable this and use Project-Build All or Project-Build Project commands before you start debugging your application OR If possible create two workspace and move some of your projects to other workspace. Note that you can open two instances of Eclipse on two different workspaces simultaneously.
Increase heap space for Eclipse.
Its also possible that you installed many plug-ins in Eclipse. You can disable unnecessary plug-ins to load on eclipse start up as shown below
Edit
Two more options.
1. Disable all options in **Highlighted** category of preferences. Restart eclipse.
2. Delete **.metadata** in your workspace and restart eclipse. Note!!!. All you preferences will be lost!!!
I found this problem; It is scim input method conflict with XIM(X Input Method) method.
Solution 1,
just right click in eclipse workspace -> select Input Methods -> SCIM input methods, that's OK. But, Every time you should do it while opening another file.
Solution 2, make scim as default system input methods.
Edit /etc/X11/xinit/xinput.d/scim as below:
XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
also, add x95input file to /etc/X11/Xsession.d/95xinput
/usr/bin/scim -d
XMODIFIERS="#im=SCIM"
export XMODIFIERS
export GTK_IM_MODULE=scim
Hope this can help others.
I found it.
I googled and found the answer
The answer is:
Right click in Editor area InputMethods-Scim
*Editor area is where you write code

can Eclipse display multiple Variable windows at a time?

Eclipse allows multiple source windows (obviously) and even multiple console windows to be open at the same time.
I'm looking to see if there is a way to open multiple Variable windows at a time. While debugging I sometimes want to visually compare several structures and this would be easier if I could open each object in its own Variable window.
Thanks.
Yes, in the upper right hand corner of the Variables window, there should be a button 'Open New View'.
EDIT: I'm not sure if this is necessarily the best way to get what you want, but it worked for me. I just downloaded a fresh Kepler install, and you can get the "Open New View" button by installing the C/C++ Development Tools. To install go to Help > Install New Software.
Note: I had to clean my workspace after installing because I was getting "Editor does not contain a main type errors". But after that everything worked fine and the button was available.
Hope this helps!

How to avoid Eclipse blocking keyboard shortcuts

I installed a plugin that allowed me to create UML diagram from my code. Everything was working fine until I found that now all keyboard shortcuts (like CTRL-X, CTRL-Z, CTRL-SPACE, CTRL-SHIFT-F,..) except for CTRL-C and CTRL-V now require a click on a small square that appear on the bottom right corner. And this is required every single time.
This are few examples of the square that appears:
If I click on the message or press Enter I can access the functionality. Does anyone know how to get rid of this annoying thing or at least reset Eclipse related configurations?
Thanks in advance
EDIT:
I obviously tried uninstalling the plugin but nothing changed.
Try Window / Reset Perspective as the duplicate shortcuts may be still in the perspective.
Also try restart specifying -clean option to rebuild the workspace metadata.
The pop-ups you are seeing are the "keybinding conflict" popups. These are common when you have two different plugins defining the same keybinding and looks like these. Still in your case there's only one option to choose from and it definitely looks like a bug.
In the Eclipse bugtracker database there are two issues that are looking like the one you have: #377048 and #374942.
These issues are marked as fixed in 4.2-I20120410-0633. So if you are having Eclipse 4.2 without any service releases installed, you would probably have this. The solution is - to use a newer Eclipse version. Eclipse 4.3.1 is available to download since today, and it should contain a lot of other fixes since 4.2. So I encourage you to install it.
The other solution could be to try playing with keybinding dialog (Window->Preferences->General->Keys) and trying to unbind and re-bind the commands that you are having issues with.

How to display dotted lines in eclipse project explorer?

See these two images of eclipse project explorer below. The first one has dotted lines (so it's much easier to see the hierarchy), while the second one does not (which is the case for the eclipse on my computer).
How to configure eclipse 3.6 on Windows 7 to display dotted lines?
Windows 7 removed this tree-view component from application usage, you can read about it here.
http://www.sevenforums.com/customization/25956-windows-explorer-tree-view-connecting-lines.html
In otherwords, you can't add it back, but that link provides a modification which they claim helps out a bit.
It was called "Simple Folder View", you can read about how it was turned on/off in Vista.
http://windows.microsoft.com/en-US/windows-vista/Change-folder-views-and-behavior
You can make the whole app go back to an XP like look by disabling visual themes on the compatibility settings. See: https://stackoverflow.com/a/8973912/381161