Open file editor in new window

Hello,
I'm opening file editor in new tab using this code:

FileEditor[] editors = FileEditorManager.getInstance(project).openFile(file, true);


What need to write for opening file editor in new window (as in this topic http://www.jetbrains.com/idea/webhelp/detaching-editor-tabs.html).

Thanks.

0
Avatar
Permanently deleted user

Hi Paul,

Please try DockManager.getInstance().createNewDockContainerFor()

Denis

0
Avatar
Permanently deleted user

This might be exactly what I need to make IDEA work like other Mac apps, but I'm not sure what to do with this code.

Can this code be put into something in IDEA that can run when I double click a file from the project window?

I really want a double click on a file in the project window to always open the file in a new editor window, unless it is already open. I've been using the Mac a long time and I'm used to each file being in its own window so I can see them all at once.

Is there a way I can set this up?

Thanks

0

请先登录再写评论。