X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fcommands%2FRefreshJcrResultTreeView.java;h=b7600b9e1770cab75f00c6a7803d6670b9b7aa86;hb=534721f7cfe6f8cd899aaa2d7d0ffb3e50cc73d6;hp=9661775b838edf5f1f7ee83ba94c881217ab28e2;hpb=e8997305e4d5fe939e2e4ec55195afdc0d488bbc;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RefreshJcrResultTreeView.java b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RefreshJcrResultTreeView.java index 9661775b8..b7600b9e1 100644 --- a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RefreshJcrResultTreeView.java +++ b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RefreshJcrResultTreeView.java @@ -1,7 +1,5 @@ -package org.argeo.slc.client.ui.commands; - /* - * 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. @@ -15,6 +13,7 @@ package org.argeo.slc.client.ui.commands; * See the License for the specific language governing permissions and * limitations under the License. */ +package org.argeo.slc.client.ui.commands; import java.util.Iterator; @@ -24,6 +23,7 @@ import org.argeo.slc.client.ui.views.JcrResultTreeView; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; +import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.handlers.HandlerUtil; @@ -38,6 +38,9 @@ public class RefreshJcrResultTreeView extends AbstractHandler { public final static String PARAM_REFRESH_TYPE = ClientUiPlugin.ID + ".param.refreshType"; public final static String PARAM_REFRESH_TYPE_FULL = "fullRefresh"; + public final static ImageDescriptor DEFAULT_IMG_DESCRIPTOR = ClientUiPlugin + .getImageDescriptor("icons/refresh.png"); + public final static String DEFAULT_LABEL = "Refresh selected"; public Object execute(final ExecutionEvent event) throws ExecutionException { String refreshType = event.getParameter(PARAM_REFRESH_TYPE);