Cannot find button "Show Selected Element only" Eclipse Java EE - java

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.

Related

Enhance C++ Eclipse with Java

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.

Disable showing of run window in IntelliJ

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

java with eclipse - lost design page

I am learning Java using Eclipse - started a project with javax.swing and could view a design page with my page layouts shown and various palets for components etc. Now this design page seems to have vanished and I cant discover any option to recover it. I hope someone can get me back on track.
Have you tried Right-click on class (for example MySwingPanel.java) in package editor Open With->WindowBuilder Editor?
The last time you selected something in Open With - this is the editor to open that file on double click.
Have you tried changing the Perspective? Click the arrows next to the DDMS tab in the upper right hand corner of Eclipse and select the 'Java' Perspective.

Where can the Eclipse compiler be found?

usually, the compiler is in the lower right corner and pops up when you click on it
or when you have made an error. now i cant even find it. how do you call it up again?
Try this by clicking
"Window" -> Show View -> Problems
For your description it looks like you're looking for the console not the compiler
If so, look in:
Window --> Show View --> Console
You probably switched perspectives. Find the Java perspective in the menu or upper right corner, and switch to it.
If you accidentally closed the Problems or Markers view, you can re-open them through the menu.
You can also click Window > Reset Perspective. This is helpful when views get closed or lost in workspace.

Universal keybindings in Eclipse

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)

Categories