Eclipse shortcut for switching current working set - java

I have several working sets in my eclipse which i often switch from one to another, is there any shortcuts for this so i don't have to click the "view menu" button and click the working set in it every time when i want to switch?
Thanks.

You can set up in preferences/Window working sets.
See this reference for your answer.
Source

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

How can i change eclipse code completion settings?

Sorry about unclear title, i'm new in Java and Eclipse. Here is my problem I have been using Visual Studio for a long time, and in Visual studio, assume i have a variable named sampleText, when i type "samp" or something like that intellisense shows up and when i press TAB it write sampleText, but to do the same thing in ecplise i have to press Enter, and it's not so cool,i want to change this option, i mean when i press TAB i want it to write selected value. How can i do that ?
It's not possible to change that behavior. I believe it is standard behavior in SWT to select items in lists with ENTER.
As a side note.
You can select Visual Studio key bindings in
Window -> Preferences -> General -> Keys
Change Scheme to Microsoft Visual Studio.
It won't help you with your current problem but it might help you transition to Eclipse.

How to drag a button and autogenerate onclick method in Eclipse? How to find variable/method references in Eclipse?

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.

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

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.

Categories