/** Set here initial default size of the UI */
public class SlcSecureWorkbenchWindowAdvisor extends
SecureWorkbenchWindowAdvisor {
+ public final static String IN_TRAY_PROPERTY = "org.argeo.slc.ui.inTray";
private TrayItem trayItem;
}
public void postWindowOpen() {
- initTray();
+ String inTray = System.getProperty(IN_TRAY_PROPERTY);
+ if (inTray != null && inTray.equals("true")) {
+ initTray();
+ }
}
@Override
/** Init tray support */
protected void initTray() {
IWorkbenchWindow window = getWindowConfigurer().getWindow();
- final Tray tray = window.getShell().getDisplay().getSystemTray();
+ Shell shell = window.getShell();
+ final Tray tray = shell.getDisplay().getSystemTray();
trayItem = new TrayItem(tray, SWT.NONE);
if (trayItem == null)
return;
}
}
});
+
+ // start hidden
+ // shell.setVisible(false);
}
@Override