]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.rap/src/main/java/org/argeo/slc/client/rap/SlcRapSecureWorkbenchWindowAdvisor.java
Adapt to changes in Commons
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.rap / src / main / java / org / argeo / slc / client / rap / SlcRapSecureWorkbenchWindowAdvisor.java
1 package org.argeo.slc.client.rap;
2
3 import org.argeo.security.ui.rap.RapSecureWorkbenchWindowAdvisor;
4 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
5
6 /**
7 * Configures the initial size and appearance of a workbench window.
8 */
9 public class SlcRapSecureWorkbenchWindowAdvisor extends
10 RapSecureWorkbenchWindowAdvisor {
11
12 public SlcRapSecureWorkbenchWindowAdvisor(
13 IWorkbenchWindowConfigurer configurer) {
14 super(configurer);
15 }
16
17 // Customisation of the main frame can be done here.
18 @Override
19 public void preWindowOpen() {
20 super.preWindowOpen();
21 //
22 // IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
23 // configurer.setShowCoolBar(true);
24 // configurer.setShowMenuBar(true);
25 // configurer.setShowStatusLine(false);
26 // configurer.setShowPerspectiveBar(true);
27 // configurer.setTitle("Argeo Secure UI"); //$NON-NLS-1$
28 // // Full screen, see
29 // //
30 // http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg02697.html
31 // configurer.setShellStyle(SWT.NONE);
32 // Rectangle bounds = Display.getDefault().getBounds();
33 // configurer.setInitialSize(new Point(bounds.width, bounds.height));
34 }
35
36 }