]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RefreshJcrResultTreeView.java
Migrate SLC modules
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / commands / RefreshJcrResultTreeView.java
index a6d85ce9bf42c42c23e3567cc1d66343389ed997..b7600b9e1770cab75f00c6a7803d6670b9b7aa86 100644 (file)
  */\r
 package org.argeo.slc.client.ui.commands;\r
 \r
-/*\r
- * Copyright (C) 2007-2012 Mathieu Baudier\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *         http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
 import java.util.Iterator;\r
 \r
 import org.argeo.slc.client.ui.ClientUiPlugin;\r
@@ -39,6 +23,7 @@ import org.argeo.slc.client.ui.views.JcrResultTreeView;
 import org.eclipse.core.commands.AbstractHandler;\r
 import org.eclipse.core.commands.ExecutionEvent;\r
 import org.eclipse.core.commands.ExecutionException;\r
+import org.eclipse.jface.resource.ImageDescriptor;\r
 import org.eclipse.jface.viewers.IStructuredSelection;\r
 import org.eclipse.ui.handlers.HandlerUtil;\r
 \r
@@ -53,6 +38,9 @@ public class RefreshJcrResultTreeView extends AbstractHandler {
        public final static String PARAM_REFRESH_TYPE = ClientUiPlugin.ID\r
                        + ".param.refreshType";\r
        public final static String PARAM_REFRESH_TYPE_FULL = "fullRefresh";\r
+       public final static ImageDescriptor DEFAULT_IMG_DESCRIPTOR = ClientUiPlugin\r
+       .getImageDescriptor("icons/refresh.png");\r
+       public final static String DEFAULT_LABEL = "Refresh selected";\r
 \r
        public Object execute(final ExecutionEvent event) throws ExecutionException {\r
                String refreshType = event.getParameter(PARAM_REFRESH_TYPE);\r