Eclipse direct shortcut instead of yellow popup? - java

How do I remove this middle step of having to press enter after F12 to make the actual navigation? I don't need this yellow popup telling me there's one shortcut for me.
In the second image you can see the problem: I want F12 to immediate open up the definition / declaration of the symbol my cursor is currently at. Need it for Java.

Have you tried to hover over the type/method with your mouse then hold ctrl and left mouse click.
It's a default shortcut in eclipse.
edit: sorry this should have been a comment to your question, not an answer.

The problem was indeed multiple bindings for the same key.

Related

Eclipse - go to class/interface via hyperling without mouse

the default Eclipse settings is when you are in Java editor and hold Ctrl and go by mouse over a class or interface name, you can click it and go into that class.
Is it possible to do it by keyboard shortcut only, without mouse? Just move cursor to the name and press a shortcut.
I have set it this way for methods (command "Open Implementation" bound to Ctrl+I) but I can't find out how to do it for classes. Thank you!
Move the cursor over the type and hit F3
Side note: Ctrl+Shift+L opens a small window with all shortcuts and descriptions
yes, for sure make the caret on that class and press F3

Swap mouse buttons in java application

I'm using a dynamic graphic library to display data. By clicking with the left button on a node, a window pops out displaying info about it. I would like to use the right button instead, which by now is used to move the node around (without the window popping out). The problem is: the graph listeners I'm using only respond to the left button. So the only solution I can think of is to swap the mouse buttons mapping on the java application. Is there a way to achieve this?
I might be wrong, but can you use MouseListeners for right click, and than use java.awt.Robot to left click that? just a thought. good luck.
Whoops, sorry. I already solved this a long time ago and I forgot to post the answer: The library I'm using is graphstream, and I just needed to set the graph DefaultMouseManagerm (with overriden functions) which takes care of mouse clicks on the graph.

Android-Simulate mouseover/hover

How can you simulate a mouseover event in an android app?
I have to detect if the user is touching/hovering over a particular part of the screen for more than 2 seconds.
you cant hover without a cursor.
but for an ipad there is a simulate hover command for css. unfortently i cant find it, if anyone does find it let me know!
i used it in some code once, im scouring that code for it, im hoping i didnt imagine it.
Case: I wanted a pointer to move a mouse around the screen of my phone via my watch. If somebody finds this in the future:
Pointer image: Tasker allows to create scenes. Create a scene with a canvas as big as you want your pointer to be, add the image you want as pointer as the scene only element, filling the scene.
Coordinates static: Create variables for "X" and "Y" (these are STILL NOT pixels). You want to play around with values on the show scene location applying your variables. 0,0 is top left, 200,200 is bottom right.
Coordinates movement: My approach was having 2 variables "now" and "final" (or other names). So you can tell tasker: Hide scene in Xnow,Ynow; Show scene in Xfinal,Yfinal; Set variables Xnow to Xfinal and Ynow to Yfinal.
With that in mind:
You may want to detect if "mouse overlay image is on top of your desired element.
With a touch screen, users can only touch or not touch, but not hover, so that this part of the question is probably out.
The long touch behavior is implemented inside the various onXXXLongClick() handlers.
How to hover over a link?
I hope this link helps you .
But how can a person hover in a touch device ? Well i have always placed my fingers .
Try adding onClick="return true" in your link a href tag
About us
the onClick="return true" should simulate a cursor hovering over then leaving the hover area. effectivly giving you a hover effect.
keep in mind, ur finger has to touch the button for the hover effect to take place, which means the user will only see the change for a second or two before the link loads a page.

How to view class package type and parameters in IntelliJ?

When hovering your mouse over a Class or variable, how come I don't see any information on the type of the class?
Is this not a feature in IntelliJ?
For example, in vs.net, if I mouse over any variable or class it will popup and tell me what namespace that belongs to etc.
And when I am using a method of a class, it also tells me the different overloads for the method (like types for each parameter, and a list of all the overloads).
This must be a feature in IntelliJ, I just don't know how to get it.
Can someone please clear this up?
Also, how can I tidy up the formatting of a page?
It doesn't work on hover yet, please star/vote the issue.
You need to use keyboard shortcuts for quick documentation pop-up or parameter info pop-up (Ctrl+Q and Ctrl+P with default Windows keymap, F1 and Cmd+P with default OS X 10.5+ keymap).
Code | Reformat Code... is the answer to your second question.
Formatting: Code -> Reformat (shortcut: Ctrl-Alt-L)
Hover doesn't produce the kind of information I'd like either. You can get info with Ctrl-Q ("Quick Help") in Windows or F1 in OS X, which will show where it's from and what it is, with most stuff in the popup window linked up in a reasonable way.
That popup view can also be pinned and/or docked; I often have it docked on the bottom.

Press buttons without release finger from screen

I want to press buttons like it shown on this picture http://i.stack.imgur.com/C1NW3.jpg. That is I want to press buttons by holding finger on the screen and moving it along buttons. For example on this pic buttons 1, 2,5,8,9 will be pressed after this procedure.
Sorry for my bad english, but i cant to describe this in a different way.
How I can do this?
Well, sorry for not providing the very simple answer like "use the function xyz()" for this, but I think there are some general ways to do it:
You can create pictures that look like buttons (or bubbles or anything else appropriate), place them in an order that you need and then, getting each coordinate of the pointer (of the finger) on the screen, just check if this pointer gets into some area (maybe rectangle) inside each button. This logical area should be smaller than shown picture to let user move finger not so careful.
Another "solution" would be to put some "jitter" and send "left click" message on each position update along the way. In this case buttons should have some protection from multiple clicks. I remember on stackoverflow.com some advice how to do this: just disable the button on the click event.
Sorry if Android has some solution "out of the box", which I have no idea about, but the described problem seems to be general, not platform-specific.

Categories