]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/views/AbstractQueryArtifactsView.java
Add doAs in RCP CmsView.
[gpl/argeo-slc.git] / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / views / AbstractQueryArtifactsView.java
index 45c0d0f2eb5b328c7711fd55ada4b39b0c92657d..e6552ebc1d69c5f0a65e858a158f3043567a792f 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * 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.slc.client.ui.dist.views;
 
 import java.util.ArrayList;
@@ -30,10 +15,10 @@ import javax.jcr.query.RowIterator;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.argeo.ArgeoException;
 import org.argeo.eclipse.ui.GenericTableComparator;
+import org.argeo.slc.SlcException;
+import org.argeo.slc.SlcTypes;
 import org.argeo.slc.client.ui.dist.utils.ArtifactsTableConfigurer;
-import org.argeo.slc.jcr.SlcTypes;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.jface.dialogs.ErrorDialog;
@@ -157,7 +142,7 @@ public abstract class AbstractQueryArtifactsView extends ViewPart implements
                                }
                                viewer.setInput(rows);
                        } catch (RepositoryException e) {
-                               throw new ArgeoException("Cannot read query result", e);
+                               throw new SlcException("Cannot read query result", e);
                        }
 
                } catch (RepositoryException e) {
@@ -190,6 +175,7 @@ public abstract class AbstractQueryArtifactsView extends ViewPart implements
 
        // Providers
        protected class ViewContentProvider implements IStructuredContentProvider {
+               private static final long serialVersionUID = 5286293288979552056L;
 
                public void inputChanged(Viewer arg0, Object arg1, Object arg2) {
                }
@@ -205,6 +191,8 @@ public abstract class AbstractQueryArtifactsView extends ViewPart implements
 
        protected class ViewLabelProvider extends LabelProvider implements
                        ITableLabelProvider {
+               private static final long serialVersionUID = -2407263563879116348L;
+
                public String getColumnText(Object obj, int index) {
                        if (!(obj instanceof String[]))
                                return "Object is not properly formatted ";