File tree Expand file tree Collapse file tree
plugins/org.eclipse.oomph.setup.editor/src/org/eclipse/oomph/setup/presentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141import org .eclipse .swt .graphics .Color ;
4242import org .eclipse .swt .widgets .Composite ;
4343import org .eclipse .swt .widgets .Shell ;
44+ import org .eclipse .ui .IWorkbenchPage ;
4445import org .eclipse .ui .PlatformUI ;
4546import org .eclipse .ui .browser .IWebBrowser ;
4647import org .eclipse .ui .browser .IWorkbenchBrowserSupport ;
@@ -68,6 +69,13 @@ public NotificationViewPart()
6869 public void setNotification (Annotation notification )
6970 {
7071 this .notification = notification ;
72+
73+ if ("true" .equals (notification .getDetails ().get ("maximize" ))) //$NON-NLS-1$ //$NON-NLS-2$
74+ {
75+ IWorkbenchPage page = getSite ().getPage ();
76+ page .setPartState (page .getReference (this ), IWorkbenchPage .STATE_MAXIMIZED );
77+ }
78+
7179 setUrl (getNotificationURI ());
7280 }
7381
You can’t perform that action at this time.
0 commit comments