Dialog name for the Ctrl-f6 in eclipse - java

What is the name of this dialog? I cannot use plugin spy as this dialog does not stay open very long. This is the dialog to switch editor.

Ctrl+F6 — Switch between last used files.
It shows you the list of last used files. If you hold Ctrl and press F6 more than once - you will iterate on this list.

Firstly, the word 'dialog' might be misleading. This 'popup list' interface doesn't have window decorations, so it's hard to say whether it's a dialog, frame or something else. This might mean you're looking in the wrong places.
FYI, Switch Editor (CTRL+F6), Switch View (CTRL+F7) and Switch Perspective (CTRL+F8) all use the same type of popup so finding one of their class names should help you find what you're looking for.
This SWT spy might help you find the component. To get around the issue with it not being open long, press and release the SHIFT key while the list is open, and it will now stay open if you release all the keys, and will only close if you click away or use ESC/ENTER.

Related

Keyboard shortcut to preview method code in a popup

What is the keyboard shortcut to preview a method's code as a pop-up?
I'm looking to preview the code inside of a given method much like one would preview the javadoc by placing the caret on the method and pressing F1.
I used to know this shortcut, but my memory is failing me harder than the various search algorithms and mom isn't home right now. ;-)
Is Ctrl+Shift+I what you're looking for? Found it here
I think you need the shortcut keys to Quick Definition. So jos76's idea is correct. But we have to map it to your keymap.
As I found from Settings -> Keymap, these are the keyboard shortcuts for Mac OS 10.5+. You may change as your convenience.
And you can also try
Place cursor on the method.
From Main menu View -> Quick Definition(2nd row under view, You can also see shortcut key combinations appearing there). So there would be a pop up appearing with method implementation view as you suggested :))
So it looks like this.

How to have Eclipse intellisense autocomplete member names?

When I type in a method name partially, Eclipse intellisense shows me the list of suggestions, but how do I select one of them using only the keyboard?
I tried pressing the Tab key, the Enter key and the Space bar, but all to no avail. It appears that the only way I can get to select one of the names from the list of suggestions is to use the mouse. This is very irritating.
Is there a keyboard short-cut to selecting a name from the intellisense suggestions?
Type in some part of the expression, use the arrow keys to navigate through the suggestions offered by intellisense. And then hit the Enter key to select the chosen expression, dismiss the pop-ups and have the selected expression appear in the editor in place of your partially typed expression.
Do not hit the tab key before making a selection as that moves focus away from the suggestions window.

JCheckBoxes inside JComboBox

I have added checkboxes inside combo box in Java. But when I open drop down menu and check one check box, the drop down menu closes. So to select each check box I have to open it every time.
Is there any way so that I can keep the drop down list opened till the time I dont click outside so that I can select any number of check boxes at one time only.
Please help!!
I have added checkboxes inside combo box in Java. But when I open drop
down menu and check one check box, the drop down menu closes. So to
select each check box I have to open it every time. Is there any way
so that I can keep the drop down list opened till the time I dont
click outside so that I can select any number of check boxes at one
time only.
no there isn't, this is default property of (BasicXxx)Popup implemented in Swing API, workaround for series of Bugs in Java1.4_xxx
no_way, only by using dirty hacks, usage of can be Java Version sensitive, or required left mouse button as accelerator
don't do that, another way (and proper of possible ways) is usage of JWindow/undecorated JDialog but required to override ESC Key and Focus lost in Windows three (as you can see in good Java JCalandars/JDatePickers),
I recommend that you to use the Japura API to deal with this, check this link:
http://www.japura.org/checkcombobox
Best Regards :)

How to view all items of Errors under Problems View in Eclipse Editor

I had checked out a Project from Our CVS. When I tried to build it in Eclipse by adding some jars, it showed a lot of errors under the Problems View in Eclipse.
It displayed nearly 12,000 errors, but I could see only the first 100 of those 12,000 errors.
Could anybody please explain how I can see the next 100 errors?
And I don't know why, but after I check out from CVS I am also getting these errors.
Thanks.
On Eclipse Helios click on the triangle pointing down on the Problems view, select Preferences then in the Preference dialog that appear, you can change the Limit visible items per group to change the value. Or else uncheck Use marker limits checkbox to allow all items being visible.
there is a triangle pointing down on the problems view, click on it, click configure contents, there will be "Number of items visible per groups:", change it
Just click on the arrow down in the Perspective and select Group by None.
or
Configure Contents...
In Eclipse Oxygen : Click the down triangle on the Markers panel, select Filters... , then untick the Use Limits check box in the pop up and then click OK.
Change the Fitter setting as following
The previous answers are all valid, but in Java, there is a further limit configured in the compiler preferences. This is why you may continue to see 100 items.
This article describes where to find the preference in question.
It looks like it's changed again - none of these answers seem to be valid with the current 2021-x versions.
First, find the Problems tab and look to the very right where you will find the Filters... button:
Once inside the Filters panel, look down in the bottom-left corner and either uncheck the Use limits checkbox or increase the limit from 100:
I had once a less obvious, maybe rare case where no errors and warnings were shown in the problems view. I was wondering why I don't see any entries, although I see a certain number of errors and warnings in the header of the problems view. All filters were switched off. It looked like that:
I found out that in my case the "Description" column was so small that I didn't realize, there is another column with entries that are just not visible. Resizing the column made the grouped warnings and entries visible again.

text color coding in Netbeans

I have a pretty annoying issue with text highlighting on my EL statements.
I have scrolled through every field in the Options/Fonts&Colors/Syntax Control Panel three times, paying extra attention to the Expression Language options and I can not find the parameter that controls the white background of the whole ${initParam.productImagePath} expression statement.
Try looking under Fonts&Color -> Syntax. Then select the language and check all the color settings there.
UPDATE
I would add that sometimes the settings are inherited... it can be really hard to find which setting controls the color.
You can save the color settings exporting ("Export" button) then change every setting under "Expression Language" just to see if it changes.
Also, you can look through all colors in all languages and tabs until you find the color that matches the one you are seeing in the editor.
I'm guessing you may have done all this already, but I want to be sure I give the most complete answer I know of just in case.
Did you also check the entries in the Fonts&Colors Highlighting-Tab?
Your image shows that the white expression is not in the current selected line, so my guess is that you have enabled "highlight Search" (small Editor Toolbar). Another guess: if you are using the jVi Plugin, there's another highlight search parameter in jVi's settings dialog.

Categories

Resources