User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

get_maximize_state_of_window [2015/06/07 07:06] (current)
mihael created
Line 1: Line 1:
 +====== How to get the Maximized State of a Window ======
 +To check if a window is maximized in Eclipse e4 a MWindow instance is needed. It may me retrieved from the MApplication instance (which can be injected like ''​@Inject MApplication application''​).
 +If the window is maximized it still holds its original size and not the maximized size. But it gets a tag in its tag list which can be queried like this:
 +<sxh java>
 +if (window.getTags().contains(IPresentationEngine.WINDOW_MAXIMIZED_TAG)) {
 +    ...
 +{{tag>e4 java}}
get_maximize_state_of_window.txt ยท Last modified: 2015/06/07 07:06 by mihael