]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/editors/BundleRawPage.java
Improve RPM packaging
[gpl/argeo-slc.git] / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / editors / BundleRawPage.java
index 7ddd0acf2a6eb60b6f4542bfb9557feef5bd2ad5..5001886f364983742a3d8f9372deea3241e8a2fb 100644 (file)
@@ -26,7 +26,7 @@ import javax.jcr.RepositoryException;
 import javax.jcr.Value;
 import javax.jcr.nodetype.NodeType;
 
-import org.argeo.ArgeoException;
+import org.argeo.slc.SlcException;
 import org.argeo.slc.client.ui.dist.DistImages;
 import org.argeo.slc.client.ui.dist.utils.DistUiHelpers;
 import org.argeo.slc.jcr.SlcNames;
@@ -47,10 +47,7 @@ import org.eclipse.ui.forms.editor.FormEditor;
 import org.eclipse.ui.forms.editor.FormPage;
 import org.eclipse.ui.forms.widgets.ScrolledForm;
 
-/**
- * Lists all properties of current bundle as a tree
- */
-
+/** List all properties of current bundle as a tree */
 public class BundleRawPage extends FormPage implements SlcNames, SlcTypes {
        // private final static Log log =
        // LogFactory.getLog(ArtifactDetailsPage.class);
@@ -147,6 +144,7 @@ public class BundleRawPage extends FormPage implements SlcNames, SlcTypes {
        // providers
        private class TreeLabelProvider extends ColumnLabelProvider implements
                        SlcTypes, SlcNames {
+               private static final long serialVersionUID = -6385445983392621937L;
 
                public void update(ViewerCell cell) {
                        try {
@@ -199,7 +197,7 @@ public class BundleRawPage extends FormPage implements SlcNames, SlcTypes {
                                        }
                                }
                        } catch (RepositoryException e) {
-                               throw new ArgeoException(
+                               throw new SlcException(
                                                "unexpected error while getting artifact information",
                                                e);
                        }
@@ -207,6 +205,8 @@ public class BundleRawPage extends FormPage implements SlcNames, SlcTypes {
        }
 
        private class TreeContentProvider implements ITreeContentProvider {
+               private static final long serialVersionUID = -4315686158836938052L;
+
                public Object[] getElements(Object parent) {
                        List<Object> elements = new ArrayList<Object>();
 
@@ -245,7 +245,7 @@ public class BundleRawPage extends FormPage implements SlcNames, SlcTypes {
                                }
 
                        } catch (RepositoryException e) {
-                               throw new ArgeoException(
+                               throw new SlcException(
                                                "Unexpected exception while listing node properties", e);
                        }
                        return elements.toArray();
@@ -305,7 +305,7 @@ public class BundleRawPage extends FormPage implements SlcNames, SlcTypes {
                                        return elements.toArray();
                                }
                        } catch (RepositoryException e) {
-                               throw new ArgeoException(
+                               throw new SlcException(
                                                "Unexpected error getting multiple values property.", e);
                        }
                        return result;
@@ -324,7 +324,7 @@ public class BundleRawPage extends FormPage implements SlcNames, SlcTypes {
                                        return true;
                                }
                        } catch (RepositoryException e) {
-                               throw new ArgeoException(
+                               throw new SlcException(
                                                "Unexpected exception while checking if property is multiple",
                                                e);
                        }