I want to be able to use CTRL-SHIFT-T to open a Java Type (source code file) from any perspective in Eclipse. Unfortunately, the keybinding only works in the Java perspective.
I tried defining the keybindings using context "In Windows" and "In Dialogs and Windows." That did not do the trick.
Any ideas how to do this?
(For documentation, note e.g. this page.)
Image Hosted by ImageShack.us http://img18.imageshack.us/img18/7205/keybindingsna4.pngShot at 2009-02-18
In Eclipse go to:
Window -> Customize Perspective...
Click on "Commands" tab
Select the check box for "Java Navigation"
Click "ok"
Now you can use Ctrl + Shift + T in this perspective.
Unfortunately you have to do this in all perspectives you normally use to get this functionality across all of them.
You need to activate the command 'Java Navigate' in the perspective from which you want to access the "Open Type" dialog.
You will access this dialog through a right click "Customize Perspective" near the toolbbar buttons.
As mentioned in lud0h's answer, "you have to do this in all perspectives you normally use to get this functionality across all of them"
Until... eclipse3.5M4 late this January 200099
Java Action sets in all perspectives:
If you are editing a Java file, you can access your favourite actions (Open Type etc) in a non-java perspective as well (CVS, Resource)
Related
I use Eclipse Mars for C/C++ on Ubuntu. Now I must use Java. I reading on how to install Java on Eclipse, this answer as well as this one. It is obvious that I have to click on Help, but I can't find it in Eclipse, thus I am asking for help! :)
Or maybe is there a way to activate Help via terminal or something?
The menu can be customized as part of the perspective
To get it to show, the two options are
Reset the entire perspective. Help should be visible by default in every one but resetting will reset every customization done to the perspective.
this can be done either through Preferences, General > Perspectives via the Revert button
or via the menu for the current perspective: Window > Perspective > Reset Perspective...
Adjust the perspective
Window > Perspective > Customize Perspective...
In the new window that appears in the Menu Visibility tab is the Help entry which is probably invisible.
In IntelliJ every time I make a change in code and I run the app afterwards, "run window" is automatically popped up. Is there any way to disable this annoying behaviour or how to make it less distracting?
I finally could solve this one. At least it worked for me. At the bottom of "Run/Debug configurations" window and in "Before launch" part, uncheck "Activate tool window" check box.
There is currently no solution to do this permanently. However, there is a workaround to prevent it from popping up. Try this:
After the first time the window pops-up simply resize it all the way to the bottom (i.e. grab the TOP and drag down until the window disappears). This will prevent it from popping up again until you manually click one of the buttons to open any window in the same area (i.e. Run, TODO, Android, Terminal, Messages, (and Find Results) - or whatever you have in that same area if you've customized it).
To keep it from popping up, never click the hide button on any of these windows but rather use the same "drag from top to bottom" to hide them (the effect is the same).
This is annoying, to say the least, but once you get used to it it works fine and is much less annoying than dealing with that blasted Run popup window :)
NOTE
I should mention that this is completely safe to do as the windows are only hidden when you do this, and clicking the window's button at the bottom will show it in its original size - so nothing goes missing or breaks using this method :-)
These are called Tool Windows. Right-click the tool window, it pops up a menu, the last option of which is 'Hide'.
Alternatively,
You can install the plugin ToolWindow Manager to show/hide the Tool Window of your choice.
Either
1. Set the run window to be in either split and then shrink it down to be as small as possible.
2. Set the windows to be in floating mode and then shrink it down and move it somewhere less distracting.
disabling checkboxes in "Window | Background tasks solved my problem.
It is soooo annoying oO I just dragged the windows to an other screen and/or set their height to a minimum.. Not "best practise" but it is better than nothing -.-
In intellij go to main menu windows->active tool window->disable floating mode option there.
thanks
For those who are facing this issue with "Run" window they can follow below instruction
From dropdown select "Edit Configuration":
Open Logs tab:
Uncheck these 2 checkboxes:
I have found a solution!!!!
There old plugin for Intellij IDE called "Hide Tool Window Ex".
It hides any tool windows that being opened just after you click in editor again.
(plugin page)
visual example
I'm a c# / visual Studio developer. I'm porting some of my WP7 apps to Android and I have gotten pretty used to Eclipse. I've read some "differences" documents but still have a couple burnning questions . . .
in VS I drag a button to the surface and assign a method name for onclick and it generates the method outline for me in my source file. I can't see how to do this in Eclipse - can I?
in Vs if I put my cursor over a variable or method name I get a dropdown that has a "Go to" option and a "find all references" option. these are really handy. Can I do that in Eclipse?
You're developing Android projects in Eclipse, so I will base my answers on that. I also guess you installed the Android Developer Pack plugin.
In the ADT plugin for Java, you can open a layout.xml and see its "Graphical Layout". You can drag UI components there, but it won't generate you code for handling events.
For the second question, in Eclipse you have to right-click on the variable or method and go to the "References" menu. Or you can learn the keyboard shortcuts and it becomes easier.
Typing onclick and then pressing Ctrl+Space should open up a list of default functions you can override. Double-clicking or pressing Enter on one will bring it up in the editor (I usually type "on" before pressing Ctrl+Space, whenever I'm not sure about everything that can be done in a class.)
Right-clicking a variable will open up a context sensitive menu where you may view the variable's declaration (F3) or type hierarchy (F4); lower down the list is the References menu where you can view all the references to that variable in the workspace (Ctrl+Shift+G) or beyond.
You can also rename most variables by right clicking and choosing Refactor > Rename..., something I started using pretty early.
I've looked over Eclipse many many times, and cannot find this button! I had to use this and deal with this problem for 2 weeks now; it's getting really really annoying having to re-open the file cause i wanted to find the declaration line.
Please please please help.
Here's a picture:
(large version)
Customize perspective:
Click Window ยป Customize Perspective...
Expand Editor representation
Click Show source of selected element only
Moritz Petersen's answer will be helpful if you completely disabled the capability and want to get it back, but the option itself, if available, is under:
Window -> Preferences
And then:
Java -> Editor -> [ ] Only show the selected Java element
Personal tip: I bind this option to a keyboard shortcut so I can enable and disable it on demand. Very practical to focus on a task but indeed a bit annoying when you want to go back to a full-class view.
Maybe there is a bug in Eclipse.
I got the "Show Selected Element Only"- button, when I deselected all Editor Presentation buttons in the "Tool Bar Visibility" tab from the "Customize Perspective..."-menue. --> OK
After that I selected the button again.
In the NetBeans 6.9 IDE, if you create a
New Project >> Java >> Java Desktop Application and run it, you will find that the menu items have mnemonics, but only after ALT is pressed.
(The netbeans program itself uses this style of menu.)
However, if you create a new File >> Swing GUI Forms >> JFrame Form, and add a simple menubar with mnemonics, then run the JFrame, the mnemonics will always appear without having to press ALT. This is what I would prefer.
(Firefox uses this style of menu)
My thoughts are that the org.jdesktop.application overrides the default setting, but that's just a guess. Anyone know how to make a SingleFrameApplication not require ALT to be pressed?
Thanks.
Edit:
The problem was found to be that JFrame and JDesktop use different default Look and Feels
It's a Windows setting. In XP go to:
Control Panel
Display
Appearance
Effects
Hide underlined letters for keyboard navigation until I press the Alt key
(Win7 should have a similar setting somewhere, I suppose.)
The default setting is on, so Java is right and Firefox is wrong (even Office 2003 doesn't respect that setting).
Uncheck it and you'll always see mnemonic underline in Java.
Note that only Windows LAF correctly respects the setting. Motif and Metal always show the underline. I don't use NetBeans or jDesktop but I guess it uses system LAF and thus the underline is correct.
If you still want to always show underline under Windows LAF (please think twice before you do), call UIManager.getLookAndFeelDefaults().put("Button.showMnemonics", false), which does NOT seem to work for XP because WindowsMenuItemUI#paintText only checks the flag under Vista. You could check Win7 JDK yourself.
Note that there's an accepted bug when the setting is on, which goes like this (saving you some time to parse the 2nd most awful bug tracking system in the universe. The worst is an in-house ColdFusion system my company used to have): create one menu with mnemonic, for example &File, press Alt-F, release, press Alt-F again, the underline is gone. They are back as soon as you do anything else, clicking, or just press Alt by itself.