]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/QueryBundlesForm.java
Adapt to changes in BND.
[gpl/argeo-slc.git] / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / views / QueryBundlesForm.java
index e1d741afa9b82e69ec20aa19317b18b3d952afc9..baeeddc2cca72523984dd2ef2f8c27c8c987a8e2 100644 (file)
  */
 package org.argeo.slc.client.ui.dist.views;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.argeo.ArgeoException;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.SlcNames;
+import org.argeo.slc.SlcTypes;
 import org.argeo.slc.client.ui.dist.DistPlugin;
-import org.argeo.slc.jcr.SlcNames;
-import org.argeo.slc.jcr.SlcTypes;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.custom.SashForm;
 import org.eclipse.swt.layout.FillLayout;
@@ -36,8 +34,8 @@ import org.eclipse.swt.widgets.Text;
 /** Query SLC Repo to get some artifacts given some predefined parameters */
 public class QueryBundlesForm extends AbstractQueryArtifactsView implements
                SlcNames, SlcTypes {
-       private static final Log log = LogFactory.getLog(QueryBundlesForm.class);
-       public static final String ID = DistPlugin.ID + ".queryBundlesForm";
+       // private static final Log log = LogFactory.getLog(QueryBundlesForm.class);
+       public static final String ID = DistPlugin.PLUGIN_ID + ".queryBundlesForm";
 
        // widgets
        private Button executeBtn;
@@ -108,6 +106,8 @@ public class QueryBundlesForm extends AbstractQueryArtifactsView implements
                executeBtn.setLayoutData(gd);
 
                Listener executeListener = new Listener() {
+                       private static final long serialVersionUID = 6267263421349073712L;
+
                        public void handleEvent(Event event) {
                                refreshQuery();
                        }
@@ -177,7 +177,7 @@ public class QueryBundlesForm extends AbstractQueryArtifactsView implements
                        }
                        return sb.toString();
                } catch (Exception e) {
-                       throw new ArgeoException(
+                       throw new SlcException(
                                        "Cannot generate where statement to get artifacts", e);
                }
        }