Fix bug 113 : save semantics were not registered since RAP UI refactoring in march...
authorBruno Sinou <bsinou@argeo.org>
Mon, 9 Jul 2012 11:23:19 +0000 (11:23 +0000)
committerBruno Sinou <bsinou@argeo.org>
Mon, 9 Jul 2012 11:23:19 +0000 (11:23 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@5420 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/RapActionBarAdvisor.java

index ce730ab91ab5d1214cb1967d8c5609dd581883e9..8b9ac834bd7f39a0a02bfe423674435b89cc1e5a 100644 (file)
@@ -24,6 +24,8 @@ import org.eclipse.jface.action.IToolBarManager;
 import org.eclipse.jface.action.ToolBarManager;
 import org.eclipse.swt.SWT;
 import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.actions.ActionFactory;
+import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
 import org.eclipse.ui.application.ActionBarAdvisor;
 import org.eclipse.ui.application.IActionBarConfigurer;
 import org.eclipse.ui.commands.ICommandService;
@@ -41,8 +43,9 @@ public class RapActionBarAdvisor extends ActionBarAdvisor {
        // private IWorkbenchAction openPerspectiveDialogAction;
        // private IWorkbenchAction showViewMenuAction;
        // private IWorkbenchAction preferences;
-       // private IWorkbenchAction saveAction;
-       // private IWorkbenchAction saveAllAction;
+       private IWorkbenchAction saveAction;
+       private IWorkbenchAction saveAllAction;
+
        // private IWorkbenchAction closeAllAction;
 
        public RapActionBarAdvisor(IActionBarConfigurer configurer, String username) {
@@ -64,11 +67,11 @@ public class RapActionBarAdvisor extends ActionBarAdvisor {
                // // logoutAction = createLogoutAction();
                // register(logoutAction);
                //
-               // // Save semantics
-               // saveAction = ActionFactory.SAVE.create(window);
-               // register(saveAction);
-               // saveAllAction = ActionFactory.SAVE_ALL.create(window);
-               // register(saveAllAction);
+               // Save semantics
+               saveAction = ActionFactory.SAVE.create(window);
+               register(saveAction);
+               saveAllAction = ActionFactory.SAVE_ALL.create(window);
+               register(saveAllAction);
                // closeAllAction = ActionFactory.CLOSE_ALL.create(window);
                // register(closeAllAction);