Differences

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

Link to this comparison view

get_maximize_state_of_window [2015/06/07 09:06]
get_maximize_state_of_window [2021/04/05 11:23] (current)
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)) {
 +    ...
 +}
 +</sxh>
 +
 +{{tag>e4 java}}