Skip to content

Commit ab18432

Browse files
committed
Support opening the notification URL with the view maximized
1 parent 6f2d0b9 commit ab18432

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

plugins/org.eclipse.oomph.setup.editor/src/org/eclipse/oomph/setup/presentation/NotificationViewPart.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.eclipse.swt.graphics.Color;
4242
import org.eclipse.swt.widgets.Composite;
4343
import org.eclipse.swt.widgets.Shell;
44+
import org.eclipse.ui.IWorkbenchPage;
4445
import org.eclipse.ui.PlatformUI;
4546
import org.eclipse.ui.browser.IWebBrowser;
4647
import 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

0 commit comments

Comments
 (0)