Prevent Java icon from popping up in dock - macos

I am using Intellij IDEA on Mac OSX 10.9.2. Usually I have the IDE on another space, and I switch between both. The problem is that when I run something from the IDE, the Java icon pops up in the dock, switching the space automatically, so I have to switch back to the IDE each time this happens. It is really annoying.
Is there anyway to prevent this from happening? I have tried the "headless" option, but it doesn't work.

you should try right-clicking the icon in your dock and selecting "assign to both desktops" on the icon that's bugging you...
it should do the trick
BTW, this isn't a java question , it's a mac OSX question

Related

PhpStorm terminal jumps from external monitor to default on focus, mac os x

I have 2 monitors: my notebook monitor, and primary big dell monitor. PhpStorm 9.02 and MacOS X 10.10.5.
When I work at PhpStorm, I move my terminal window to secondary notebook display, and when I focus PhpStorm or terminal, terminal jumps to primary monitor. When I work with 1 tab of terminal everything looks fine after switching on Pinned mode and Floating mode at terminal settings. But today I open 3 tabs, and terminal starts jumps again.
It's very annoying when you often switch between browser and PhpStorm.
Do somebody have the same problem and fix for it?
Known bug, please vote for IDEA-116096.
See also the corresponding JDK issue:
http://bugs.openjdk.java.net/browse/JDK-8069154
Please look #lena answer and vote for issue at intellij.
I found solution thats help me to avoid terminal window jumping:
Create new tabs in terminal.
Drag it to secondary display, so they become separate window.
Close main terminal window.
Child tabs don't jumps between displays.
I solved this by changing a setting in mission control.
Just uncheck the 'Displays have separate spaces' option.
Go to System Preferences.
Click on Mission Control.
Uncheck the box marked Displays have separate spaces.
Log out an login in again.

IntelliJ 12 fullscreen mode yosemite

Trying to achieve something that should be quite easy, activating the full screen mode in intelliJ12 on a mac with Yosemite.
I can only maximise the windows (green window button with the +) but it's not running in full screen ( like any other app with the double arrow green button).
I have been searching quite a while for a solution, tested the shortcut cmd ctrl F did nothing and in view menu ain't got anything related to full screen.
Thanks in advance.
As far as I know, v12 doesn't support the OS X fullscreen feature, you have to upgrade to v13 at least.
If you wanna stay at the old version, just try this Fullscreen plugin, hope it works.

Steal the focus from a full screen app in Mac OS X

I want to open a Qt file dialog on top and it works setting the Qt::WindowStaysOnTopHint flag. The problem is that if there's an application running on full screen my dialog doesn’t get the focus.
How could I do it?
Thanks.
Try this:
dia->show();
dia->activateWindow();
dia->raise();
dia->setFocus()

: Custom keyboard shortcuts not working?

I have started working on a project in MonoDevelop lately, and unlike in VS2010, there is no keyboard shortcut to toggle the comments, and i really liked that shortcut.
Luckily, in OS X you can create custom keyboard shortcuts for any application in System Preferences, like this:
I have put it in All Applications because putting it directly on MonoDevelop.app doesn't work. And by seeing how MonoDevelop doesn't use the OS X UI, but one that looks like Linux, I'm guessing it's not running natively.
As expected, the shortcut was bound to MonoDevelop as well as all the other applications, and it does show up in the menus :
Everything looked fine until I tried to execute this shortcut, and nothing happened. This is a problem. Does anyone know why the shortcut appears, but is not working? (This only happens in MonoDevelop, I have tried making shortcuts in other applications, and they work.)
MonoDevelop doesn't use the Mac keybinding system; it has its own: http://mjhutchinson.com/journal/2011/02/06/key_bindings

bring the application from in focus, by clicking the icon of corresponding application

I was surprised this doesn't happen automatically, but I would like my applications window to be in focus as I click its dock icon, when in minimized mode.
Just to clarify, when I minimize the app, the window goes to dock, but when I click the its corresponding Dock Icon, the window don't come in focus.
Is there anything I am missing?
I am using Qt 4.5.3 on Mac OS X 10.5, 10.6
Thanks for help.
Rahul
First answer: That's the expected behavior of a Mac app. Try Safari for example. An app can be active without showing any window. In that case, only the menu bar at the top shows that the active app is changed. So, unless absolutely necessary, you shouldn't bring the minimized window back unless the user explicitly does so. That's the Mac way!
Second answer: I understand that there are cases where you want to bring the minimized window up. In Cocoa, the application delegate method -applicationDidBicomeActive is called when the application gets the focus, and there you can bring the window up yourself. I'm sure Qt also has a similar event/callback/signal or whatever, but I don't know any Qt ... :p Sorry I can't be of any help.

Resources