import javax.jcr.PropertyType;
import javax.jcr.RepositoryException;
-import org.argeo.ArgeoException;
+import org.argeo.eclipse.ui.EclipseUiException;
import org.argeo.eclipse.ui.jcr.lists.NodeViewerComparator;
import org.argeo.eclipse.ui.jcr.lists.RowViewerComparator;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Table;
-/** Utility methods to simplify UI development using eclipse and JCR. */
+/** Utility methods to simplify UI development using SWT (or RWT), jface and JCR. */
public class JcrUiUtils {
/**
public static boolean setJcrProperty(Node node, String propName,
int propertyType, Object value) {
try {
- // int propertyType = getPic().getProperty(propName).getType();
switch (propertyType) {
case PropertyType.STRING:
if ("".equals((String) value)
}
default:
- throw new ArgeoException("Unimplemented property save");
+ throw new EclipseUiException("Unimplemented property save");
}
} catch (RepositoryException re) {
- throw new ArgeoException("Unexpected error while setting property",
+ throw new EclipseUiException("Unexpected error while setting property",
re);
}
}
/**
* Creates a new selection adapter in order to provide sorting abitily on a
- * swt table that display a row list
+ * SWT Table that display a row list
**/
public static SelectionAdapter getRowSelectionAdapter(final int index,
final int propertyType, final String selectorName,