Eclipse Fix all Problems? - eclipse

I am in making of an analog Clock in Eclipse. After very hard struggle I am unable to create it. The reason is Error/Problems in Eclipse I want to know how to clear all Error one by one or all in once ?

The main documentation for the latest Eclipse Luna 4.4 is: "Quick Fix "
Left click on the light bulb or invoking Ctrl+1 (Edit > Quick Fix) brings up the proposals for the problem at the cursor position.
Each quick fix shows a preview when selected in the proposal window.
Some quick fixes offer to fix all problems of the same kind in the current file at once.
The information text in the proposal window contains this information for all applicable proposals. To fix all problems of the same kind, press Ctrl+Enter.
Remember: this won't apply to all types of errors, only to certain errors.

Related

Why is the "Mark Occurrences" feature in Eclipse automatically disabling itself?

I never had this issue with Eclipse before (Eclipse Classic 4.2.2, Indigo) but it started happening on my new iMac recently, that it stops highlighting similar occurrences or variable names, etc. Then it automatically starts working just fine.
Needless to say its a pain when it doesn't show the multiple occurrences of variable names and I have to find them using Find.
I was wondering if there is a sequence of keys which I press by mistake which causes it? I haven't find an answer to this anywhere else yet.
Attached is the screenshot from the Preferences. As I edit this question, again the Mark Occurrences is greyed out and I'll have to check it again to make it work.
A work around for this is to click on e.g. the Outline view, and then click back on the editor. The mark occurrences should start working again. I don't know of a long term fix.

Eclipse freezes on suggestion popup

I am having a problem in Eclipse where it freezes whenever I add a period (to try to bring up the content assist popup with possible methods). I can move the mouse, but the blinking text cursor disappears, I can't switch tabs or save, and I need to use a task manager to close Eclipse. This happens with all Java projects/files.
I have never had a problem like this with Eclipse before, and can't tell what started it. After doing several Google searches, all I found was this bug. However, I don't see a solution and am running Windows 7, not Linux. Also, I have never heard of Xulrunner. Does anybody have a solution or explanation? Is it an Eclipse setting, or a problem with my computer?
Error Log: https://dl.dropboxusercontent.com/u/101364250/eclipse_freeze.log
When I watched the error view, it seemed to output "Unhandled event loop exception" a lot.
For now, I have disabled the content assist, which seems to fix the problem.
However, this feature is very helpful, so any answers are appreciated!
Try opening Preferences and tick "Suspend all validators".
Try disable the hovers feature:
eclipse menu: Wndow > Preference

Anybody experiences problems in contextual menus behavior?

Dear RubyMine Overflowers,
I downloaded the latest version of RubyMine (3.2.1) on a Mac running SL 10.6.8 and latest apple provided Java.
I am experiencing some problematic behavior regarding the mouse right-click.
I can bring up contextual menus only by double right-clicking. if I single right-click, the menu comes up very instantly and disappears.
After some experimentation, I have concluded that if I right-click and manage to keep the mouse pointer at the exact pixel as before r-clicking, contextual menu disappears. If the pixel before right-click is different than the one after r-click the Contextual menu stays. (Imagine the chaos when this applies to the Project window: i get constant warnings of moving files).
Anybody experiencing such funny stuff in RubyMine? or otherwise, any way to change mouse pointer sensitivity?
Many thanks...
Petros
There is similar issue, but it's known to affect only Linux users with Eclipse keymap:
Intellij right click context menu problems in Ubuntu.
I can't reproduce it on Mac, but the question above is worth checking, maybe the suggested workaround will work for you.

How can I close an empty pane in Eclipse

I often end up with lots of empty panes in Eclipse that can only be minimized but not destroyed. How do I close these?
Update:
In this screenshot you can see two minimized on the upper left and several on the right hand side. In the center are four more. They only seem to be restorable in the Debug mode.
http://img406.imageshack.us/img406/9900/eclipse1.png
this happened to me, too. What worked for me (based on FilmJ and douncon's comments) was to open a class file, then drag that tab over the top of the empty pane.
Select Window -> Reset Perspective. That should reset the current perspective (what you call "mode") to its' initial state, (hopefully) closing all irrelevant views.
Something seems terribly wrong with your Eclipse. Maybe you should reinstall it. It is possible that you installed a buggy plugin.
First of all, what do you mean by pane? Eclipse has:
Windows (Eclipse itself, e.g. instance)
Documents (tabs)
Views (properties, tasks, explorer, etc)
If by 'pane' you mean document editors, you have problems either with your Eclipse version or most likely one of the installed plugins.
Each View also can be closed (except maybe some project types (perspectives) of which I'm not aware). For CDT (C/C++) you can close practically everything.
I'll recommend you download latest Eclipse version with no plugins, extract it to different folder, and check if that happens again. If yes, please explain more in details (like Eclipse version, perspective you are using, any side plugins, etc).
Also a good places are Eclipse community forum, mailing list and bugz :-)
I had the same problem. For me it helped to go into the right perspective and activate the functionality that caused the window in the first place. Once I reactivated the functionality, in my case "QNX Memory Analysis perspective", I was able to close all the windows one by one.
The conclusion is you have to refill the empty windows with content and then you will be able to close them properly.
So, it's really very easy for this to happen, if you open an editor that's incompatible with the existing editor, you can often end up having to place it outside of the tab list in one of your editor panes, then you might clear or copy that, typically while trying to add that view to a tab list.
In any case, what it's done is create a new editor, and all you need to do is drag some file to that empty editor window giving it some form of context, then close it.
I had the same issue. I followed #zvikico, but instead of just resetting, I first reset and then closed all the perspectives. Please follow the following to fix the problem. It worked for me:
Window -> Perspective -> Reset perspective..
After resetting follow below:
Window -> Perspective -> Close All Perspectives

Can you disable automatic horizontal scrolling in Eclipse?

Sometimes when I jump into source code, e.g. from search or when looking up the declaration of something, the Eclipse text editor tries to display nearby long lines by horizontal scrolling. This happens even if the item I jumped to is well within the display without scrolling. I find this rather annoying, so:
Is there a way to disable this? I have searched in vain through all the editor settings.
Specifically, this is about Eclipse CDT, but I suppose the behaviour is the same in JDT.
This seems to happen in other eclipse editors too (like PDT for PHP)
It could have been related with the ScrolledFormText, but the Plugin Spy tells us a WorkbenchWindow class is concerned, as well as an AbstractDecoratedTextEditor, that is in essence an org.eclipse.ui.texteditor.AbstractTextEditor.
The source of that AbstractTextEditor indicates having:
a ScrollLinesAction for vertical scrolling
a TextNavigationAction for settings the cursor and potentially triggering horizontal scrolling
I am not sure how to change that behavior, except by contributing somehow to the active editor identifier (for instance, for java, "org.eclipse.jdt.ui.ClassFileEditor"), and modifying that Action.
I was having the same issue and found these open bugs for it on the Eclipse Bugs:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314208
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321189
You can prevent it from happening when you switch the Code Folding off and reload the file.
grtz,
T
right click on your eclipse shortcut and choose properties. in compatibility tab choose "windows xp(servicepack 3). http://www.vistax64.com/vista-general/133849-disable-dynamic-horizontal-scrolling-vista.html