Wim, all detached things share the common trait that they have a
containing window that is *not* a top-level window.
Walk up the containment from the element until you get to an MWindow
('containingWin') and :
1) If containingWin.getParent () instanceof MApplication it is *not*
detached
2) Check it against the 'getTopLevelWindow' result for the same element.
If they are different it's detached.
Onwards,
Eric
From:
Wim Jongman <[email protected]>
To:
E4 Project developer mailing list <[email protected]>
Date:
03/26/2013 11:52 AM
Subject:
[e4-dev] Detached part
Sent by:
[email protected]
Hi,
How can we see if a part is detached or not. Is there API to find this?
EmodelService.detach(...)
MPartSashContainerElement.isDetached() ?
Best regards,
Wim_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev