Eclipse Kepler: detached window and toolbar - eclipse-plugin

In my Eclipse plug-in I have a custom editor which has its own toolbar. If I detach such an editor I still can use this toolbar. But only if there is no other editor (without this toolbar) active on the workbench. In this case the toolbar of the detached window disappears while activating the workbench so I can't use it anymore for the detached window. Is this a bug or a feature?
Is it somehow possible to attach the toolbar to the detached editor window to prevent such errors?

If your editor's toolbar is actually showing in the main window (the usual case) then what is happening is that when you click on the main window to use the tool the main window activates, changing the currently active part. This is a known issue for which no viable solution has been proposed...
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=323706 and related defects for the gory details.
The usual workaround is to use key-bindings for commands you want to execute in DW's.

Related

Detached window navigation in IdeaVIM

In a two-monitor setup, it is convenient to detach an editor tab and place it on a secondary monitor.
Using IdeaVIM, I can navigate between the editor splits using vi-standard ctrl+w w shortcut.
Why the same shortcut doesn't allow me to cycle between the main editor window and the detached editor window? How can this be achieved?
Unfortunately, IntelliJ IDEA platform doesn't provide an action to switch between windows. If there was such action, it could be mapped to the key sequence.
I think it's possible to leave a feature request on https://youtrack.jetbrains.com/issues/IDEA.

IntelliJ IDEA - How to reattach Variables Tab to be side by side with Debug Tab?

Am new to IntelliJ IDEA (am using 2017.1.3)...
By accident when I was debugging a sample unit test, I accidentally detached the Debugger's Variables tab from the entire IDE - its floating now. Is there a way to reattach this to be at the bottom and side by side of the Debug tab (like it used to be)? I tried a bunch of different approaches and when I hit my breakpoint it still floats (like a modal) outside IntelliJ IDEA. Can IntelliJ's views be customized (kind of like Eclipse's Perspectives and Views)? It seems like JetBrains calls views: tabs and calls Perspective: active window. Is IDEA customizable like Eclipse?
Attached is a screenshot of my plight...
Inside the window frame, grab the tab that says "Variables" with your mouse. Drag it into the debugger panel.

IntelliJ IDEA - detach editor window

I have recently removed tabs from my IntelliJ setup, because with all the features available to navigate between files, who needs them?
The issue is, the normal way of detaching an editor window would be to drag the tab onto another screen (or area). There doesn't appear to be anything in the key mappings for detaching an editor window. Is there a way of doing this via the keyboard?
The keyboard shortcut your are looking for is SHIFT+F4 (the action assigned to this shortcut is called Open Source in New Window. When you invoke this action the currently opened tab (file) will be opened in new editor window. However the file will remain opened in the main window too, but I believe that this is as close as you can get to the functionality you describe, at least for now.
Option 2
Open the "Open class" dialog using CTRL+N search for a class you want to open in detached window and hit CTRL+SHIFT+ENTER. That will open the class in a new editor window.
Unfortunately this seems to work only for Java classes and not for other files (CTRL+SHIFT+N dialog). I created a bug report for the last problem, so if you think it might be useful, feel free to vote for it.

Managing IntelliJ Tool Windows, how to

Currently my IntelliJ shows amongst other things
How do i decide
What tool windows are shown
Where they are shown
Those things are called Tool Windows, and you can find them at View > Tool Windows.
To disable some of them, you can install the plugin ToolWindow Manager and disable one by one.
You can enable/disable all tool windows in Settings > Appearance > Show tool window bars
You can find more information about them here.
These are called "Tool Windows". If you right click on them it shows a menu that at the bottom has a "Hide" option. I notice some of them can't be hidden, but you can drag them to other places that are out of your view. For example, you can drag them from the bottom to the side. You can also drag to answer your second question.

How do I set up IntelliJ on dual monitors?

I have just installed IntelliJ 9.0.2 on a machine running 64-bit Ubuntu 10.04.
How do I get another window to put on my second screen?
I would like to have both an editor and some tool windows on both screens.
All 'windows' inside of IntelliJ other than the code editor tabs have a "Float" option which pops open an independent window which you can drag to anywhere on your screen. This will allow you to manage your IDEA windows however you like.
IntelliJ also allow you to open multiple projects at once. When opening a project with one already opened, you are prompted as to wether you would like it in your current window or a "New Instance". If you choose new instance, it will open up a completely new IntelliJ with the other project in it. This will work for you if you have many projects you work on at once.
IntelliJ 14 and onwards you can select the settings cog and tick floating mode to detach menus, or drag editor tabs off the main window to detach them
If you're running on OSX you'll need to make sure it's not treating the screens as separate spaces, otherwise they'll snap back onto the same window as the main editor when switching between windows.
To do this untick Displays have separate Spaces in the Mission Control System Preferences.
IntelliJ 10 will have draggable & dockable editor tabs. A very nice feature. It's already present in the early access versions.