Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Detached part


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 <wim.jongman@xxxxxxxxx>
To: E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>
Date: 03/26/2013 11:52 AM
Subject: [e4-dev] Detached part
Sent by: e4-dev-bounces@xxxxxxxxxxx





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
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev



Back to the top