]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/ApplicationWorkbenchAdvisor.java
+ change default UI window size
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.rcp / src / org / argeo / slc / client / rcp / ApplicationWorkbenchAdvisor.java
index f8a47ae9f275d5bf373b533a757e158dc060d171..5d751961f1072774666658d90eb47755392b10f2 100644 (file)
@@ -1,9 +1,16 @@
 package org.argeo.slc.client.rcp;
 
+import org.eclipse.ui.application.IWorkbenchConfigurer;
 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
 import org.eclipse.ui.application.WorkbenchAdvisor;
 import org.eclipse.ui.application.WorkbenchWindowAdvisor;
 
+/**
+ * implements initial perspective and saveAndRestore status of the workbench.
+ * 
+ * @author bsinou
+ * 
+ */
 public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
 
        private static final String PERSPECTIVE_ID = "org.argeo.slc.client.ui.perspectives.slcExecution";
@@ -17,4 +24,13 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
                return PERSPECTIVE_ID;
        }
 
+       @Override
+       public void initialize(IWorkbenchConfigurer configurer) {
+               super.initialize(configurer);
+
+               // To remember the user's layout and window size for the next time he
+               // starts the application
+               configurer.setSaveAndRestore(true);
+       }
+
 }