Split components in an undocked window
"jyksnw" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
markiewb wrote:
> Checkout the current sources and search for the implementation of the window manager!
>
> http://wiki.netbeans.org/WorkingWithNetBeansSources (http://wiki.netbeans.org/WorkingWithNetBeansSources)
>
>
> With kind regards, markiewb
>
>
>
> 2016-04-05 18:19 GMT+02:00 belisarius <address-removed (address-removed)>:
>
> > Maybe someone could point me where to begin in the default window manager to effect the change myself? It seems like the logic is implemented in the main window, so it should be feasible to recreate the functionality in the undocked windows.
> >
> > At least I'd like to give it a go, and see how far I can get. I'd take any sort of help getting a leg-up on the problem.
> >
> >
> >
> >
> >
>
I checked out the current sources and was able to get the effect of being able to drop a TopComponent in an undocked window. I did this by changing DefaultSeperateContainer found in core.windows.view.ui so that isAttachingPossible() returns true and by commenting out
Code:
if( m.getState() != Constants.MODE_STATE_SEPARATED )
continue;
in the snapWindow() method.
However; the TopComponent snaps back into the IDE main window and instead of being added to the floating window.
I have spent several hours debugging and tracing what happens after a drop action has been initiated and can not seem to figure out 1) how to drop into the floating window 2) why the dropped TopComponent snaps back to the main window.
Would anyone be able to point me in the right direction?
Thanks,