hid some features that are not fully operational
authorn.hoffmann <n.hoffmann@localhost>
Mon, 9 Mar 2009 15:56:59 +0000 (15:56 +0000)
committern.hoffmann <n.hoffmann@localhost>
Mon, 9 Mar 2009 15:56:59 +0000 (15:56 +0000)
eclipseprojects/eu.etaxonomy.taxeditor/plugin.xml
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/ApplicationActionBarAdvisor.java
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/ApplicationWorkbenchWindowAdvisor.java

index aa60942fabecd4192a6b325c7329500751692cb0..0ff324c82dfb3f4c038f7c982a53532471cd8e4b 100644 (file)
                   name="eu.etaxonomy.taxeditor.ui.file.separator3"\r
                   visible="true">\r
             </separator>\r
                   name="eu.etaxonomy.taxeditor.ui.file.separator3"\r
                   visible="true">\r
             </separator>\r
-            <command\r
+            <!--<command\r
                   commandId="eu.etaxonomy.taxeditor.noCmdYet"\r
                   label="Import"\r
                   style="push">\r
                   commandId="eu.etaxonomy.taxeditor.noCmdYet"\r
                   label="Import"\r
                   style="push">\r
                   commandId="eu.etaxonomy.taxeditor.noCmdYet"\r
                   label="Export"\r
                   style="push">\r
                   commandId="eu.etaxonomy.taxeditor.noCmdYet"\r
                   label="Export"\r
                   style="push">\r
-            </command>\r
+            </command>-->\r
             <separator\r
                   name="eu.etaxonomy.taxeditor.ui.file.separator4"\r
                   visible="false">\r
             <separator\r
                   name="eu.etaxonomy.taxeditor.ui.file.separator4"\r
                   visible="false">\r
             id="eu.etaxonomy.taxeditor.editor.swapTaxonSynonym"\r
             name="Swap Taxon Synonym">\r
       </command>\r
             id="eu.etaxonomy.taxeditor.editor.swapTaxonSynonym"\r
             name="Swap Taxon Synonym">\r
       </command>\r
+      <command\r
+            defaultHandler="org.eclipse.ui.internal.handlers.ToggleCoolbarHandler"\r
+            id="eu.etaxonomy.taxeditor.toggleCoolBar"\r
+            name="Toggle Coolbar">\r
+      </command>\r
    </extension>\r
    <extension\r
          point="org.eclipse.ui.handlers">\r
    </extension>\r
    <extension\r
          point="org.eclipse.ui.handlers">\r
index 004c8c4699b4874692e0c120d773c98ab45141dc..b493d79a08e46865cffa902b21277dadd2ac0ed7 100644 (file)
@@ -38,6 +38,15 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
        private static final Logger logger = Logger
                        .getLogger(ApplicationActionBarAdvisor.class);
 
        private static final Logger logger = Logger
                        .getLogger(ApplicationActionBarAdvisor.class);
 
+       private List<IAction> importActionList;
+
+       private IAction exportJaxbAction;
+
+
+       public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
+               super(configurer);
+       }
+       
        protected void makeActions(final IWorkbenchWindow window) {
                GlobalController.setStatusLineManager(getActionBarConfigurer().getStatusLineManager());
        }
        protected void makeActions(final IWorkbenchWindow window) {
                GlobalController.setStatusLineManager(getActionBarConfigurer().getStatusLineManager());
        }
@@ -45,6 +54,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
        protected void fillMenuBar(IMenuManager menuBar) {
        }
        
        protected void fillMenuBar(IMenuManager menuBar) {
        }
        
+       
        // Actions - important to allocate these only in makeActions, and then use
        // them in the fill methods. This ensures that the actions aren't recreated
        // when fillActionBars is called with FILL_PROXY.
        // Actions - important to allocate these only in makeActions, and then use
        // them in the fill methods. This ensures that the actions aren't recreated
        // when fillActionBars is called with FILL_PROXY.
@@ -56,15 +66,8 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
 //     
 //     private IAction newNameAction;
 
 //     
 //     private IAction newNameAction;
 
-       private List<IAction> importActionList;
-
-       private IAction exportJaxbAction;
-
-
-       public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
-               super(configurer);
-       }
 
 
+       @Deprecated
        protected void _makeActions(final IWorkbenchWindow window) {
                // Creates the actions and registers them.
                // Registering is needed to ensure that key bindings work.
        protected void _makeActions(final IWorkbenchWindow window) {
                // Creates the actions and registers them.
                // Registering is needed to ensure that key bindings work.
@@ -102,7 +105,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
                register(exportJaxbAction);
        }
 
                register(exportJaxbAction);
        }
 
-
+       @Deprecated
        private void makeImportActions() {
                
 //             importActionList = new ArrayList<IAction>();
        private void makeImportActions() {
                
 //             importActionList = new ArrayList<IAction>();
@@ -114,6 +117,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
 //             }
        }
        
 //             }
        }
        
+       @Deprecated
        private MenuManager FILE_MENU(){
                MenuManager fileMenu = new MenuManager("&File",
                                IWorkbenchActionConstants.M_FILE);
        private MenuManager FILE_MENU(){
                MenuManager fileMenu = new MenuManager("&File",
                                IWorkbenchActionConstants.M_FILE);
@@ -144,7 +148,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
                return fileMenu;
        }
 
                return fileMenu;
        }
 
-       
+       @Deprecated
        private MenuManager EDIT_MENU() {
 
                MenuManager editMenu = new MenuManager("&Edit", IWorkbenchActionConstants.M_EDIT);
        private MenuManager EDIT_MENU() {
 
                MenuManager editMenu = new MenuManager("&Edit", IWorkbenchActionConstants.M_EDIT);
@@ -161,6 +165,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
                return editMenu;
        }
 
                return editMenu;
        }
 
+       @Deprecated
        private MenuManager WINDOW_MENU() {
                MenuManager windowMenu = new MenuManager("&Window",
                                IWorkbenchActionConstants.M_WINDOW);
        private MenuManager WINDOW_MENU() {
                MenuManager windowMenu = new MenuManager("&Window",
                                IWorkbenchActionConstants.M_WINDOW);
@@ -170,6 +175,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
                return windowMenu;
        }
        
                return windowMenu;
        }
        
+       @Deprecated
        private MenuManager HELP_MENU(){
                MenuManager helpMenu = new MenuManager("&Help",
                                IWorkbenchActionConstants.M_HELP);
        private MenuManager HELP_MENU(){
                MenuManager helpMenu = new MenuManager("&Help",
                                IWorkbenchActionConstants.M_HELP);
@@ -179,6 +185,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
                return helpMenu;
        }
 
                return helpMenu;
        }
 
+       @Deprecated
        protected void _fillMenuBar(IMenuManager menuBar) {
                
                menuBar.add(FILE_MENU());
        protected void _fillMenuBar(IMenuManager menuBar) {
                
                menuBar.add(FILE_MENU());
index 6cd9385ec3e608ce86fa1787f9cb7c235874f964..9772b34a29d41bfabb0bb70f34a4b7a10f50dccf 100644 (file)
@@ -44,7 +44,7 @@ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
        public void preWindowOpen() {
                IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
                configurer.setInitialSize(new Point(963, 637));
        public void preWindowOpen() {
                IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
                configurer.setInitialSize(new Point(963, 637));
-               configurer.setShowCoolBar(true);
+               configurer.setShowCoolBar(false);
                configurer.setShowStatusLine(true);
                configurer.setShowPerspectiveBar(true);
                configurer.setTitle("EDIT Taxonomic Editor");
                configurer.setShowStatusLine(true);
                configurer.setShowPerspectiveBar(true);
                configurer.setTitle("EDIT Taxonomic Editor");