Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.workbench / src / org / argeo / eclipse / ui / workbench / internal / jcr / parts / AbstractJcrQueryEditor.java
index 81914e37b607cb558bfb071b970e3238fbc3b1ee..0633454cec7aa0bce496a80ae80edd08c5e2c692 100644 (file)
@@ -26,7 +26,7 @@ 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.EclipseUiException;
 import org.argeo.eclipse.ui.GenericTableComparator;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
@@ -146,7 +146,7 @@ public abstract class AbstractJcrQueryEditor extends EditorPart {
                                }
                                viewer.setInput(rows);
                        } catch (RepositoryException e) {
-                               throw new ArgeoException("Cannot read query result", e);
+                               throw new EclipseUiException("Cannot read query result", e);
                        }
 
                } catch (RepositoryException e) {
@@ -209,7 +209,7 @@ public abstract class AbstractJcrQueryEditor extends EditorPart {
                                try {
                                        return row.getValue(columnName).getString();
                                } catch (RepositoryException e) {
-                                       throw new ArgeoException("Cannot display row " + row, e);
+                                       throw new EclipseUiException("Cannot display row " + row, e);
                                }
                        }
 
@@ -274,7 +274,7 @@ public abstract class AbstractJcrQueryEditor extends EditorPart {
                                // }
                                return rows.toArray();
                        } catch (RepositoryException e) {
-                               throw new ArgeoException("Cannot read query result", e);
+                               throw new EclipseUiException("Cannot read query result", e);
                        }
                }