]> 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
Add dep folder
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.ui.rap / src / main / java / org / argeo / security / ui / rap / RapActionBarAdvisor.java
index f67ec0c07f099279a379ee9657260ac43d790232..074b798c7ee42179a36fc68e9e0a7eb1b806d812 100644 (file)
@@ -1,7 +1,21 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.argeo.security.ui.rap;
 
 import org.argeo.security.ui.commands.OpenHomePerspective;
-import org.argeo.security.ui.rap.commands.UserMenu;
 import org.eclipse.core.commands.Category;
 import org.eclipse.core.commands.Command;
 import org.eclipse.jface.action.ICoolBarManager;
@@ -10,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;
@@ -27,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) {
@@ -50,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);