]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/RapActionBarAdvisor.java
Merge RAP 2.x adaptation from 2.tp branch
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.ui.rap / src / main / java / org / argeo / security / ui / rap / RapActionBarAdvisor.java
index ce730ab91ab5d1214cb1967d8c5609dd581883e9..074b798c7ee42179a36fc68e9e0a7eb1b806d812 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -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);