Summary: | Offer a method in EModelService to get the parent of a part / placeholder | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Lars Vogel <Lars.Vogel> |
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | rolf.theunissen |
Version: | 4.16 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
See Also: | https://git.eclipse.org/r/162623 | ||
Whiteboard: |
Description
Lars Vogel
2020-05-07 04:58:05 EDT
New Gerrit change created: https://git.eclipse.org/r/162623 Shared elements are at least MPart, MArea, MPartSashContainer, MPartStack (those are shown in the model spy). For all these elements a similar method would be beneficial. Not sure how to name the method though. The parent of a MPlaceholder can and will change. It should be clear that the parent is not the same as the container of an element. suggestions: MUIElement getCurrentParent(MUIElement element) MUIElement getEffectiveParent(MUIElement element) MUIElement getGuardian(MUIElement element) Guardian captures best the nature of what this method does, that is determine which element currently has custody of the element. However, not many people will guess that this method would be around if it has that name. |