Version 1.01
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor / src / eu / etaxonomy / taxeditor / ApplicationWorkbenchAdvisor.java
index 4db1c83d44cc5fc96806805924538177e532afd6..430af0dfb1a01ebedf57d14165f4782018e7525b 100644 (file)
@@ -1,23 +1,29 @@
 package eu.etaxonomy.taxeditor;
 
+import org.eclipse.ui.application.IWorkbenchConfigurer;
 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
 import org.eclipse.ui.application.WorkbenchAdvisor;
 import org.eclipse.ui.application.WorkbenchWindowAdvisor;
 
-/**
- * This workbench advisor creates the window advisor, and specifies
- * the perspective id for the initial window.
- */
 public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
-       
-       private static final String PERSPECTIVE_ID = "eu.etaxonomy.taxeditor.perspective";
 
-    public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
-        return new ApplicationWorkbenchWindowAdvisor(configurer);
-    }
+       private static final String PERSPECTIVE_ID = "eu.etaxonomy.taxeditor.perspective.freetextproperties";
+
+       public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
+                       IWorkbenchWindowConfigurer configurer) {
+               return new ApplicationWorkbenchWindowAdvisor(configurer);
+       }
 
        public String getInitialWindowPerspectiveId() {
                return PERSPECTIVE_ID;
-       } 
+       }
        
+       public void initialize(IWorkbenchConfigurer configurer) {
+               super.initialize(configurer);
+                               
+               // Remembers the user's layout and window size 
+               //  for the next time application is started
+//             configurer.setSaveAndRestore(true);             
+       }
+
 }