]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/jcr/JcrUiUtils.java
Remove empty lines
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui / src / org / argeo / eclipse / ui / jcr / JcrUiUtils.java
index 8ee13aab0f8e3f176773c50eec85beed7dcef3fb..dd571ae6e75dd44437618029d949d879670f392f 100644 (file)
@@ -15,7 +15,7 @@ import org.eclipse.swt.events.SelectionAdapter;
 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 {
 
        /**
@@ -28,7 +28,6 @@ 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)
@@ -93,13 +92,15 @@ public class JcrUiUtils {
 
        /**
         * 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,
                        final String propertyName, final RowViewerComparator comparator,
                        final TableViewer viewer) {
                SelectionAdapter selectionAdapter = new SelectionAdapter() {
+                       private static final long serialVersionUID = -5738918304901437720L;
+
                        @Override
                        public void widgetSelected(SelectionEvent e) {
                                Table table = viewer.getTable();
@@ -126,6 +127,8 @@ public class JcrUiUtils {
                        final int propertyType, final String propertyName,
                        final NodeViewerComparator comparator, final TableViewer viewer) {
                SelectionAdapter selectionAdapter = new SelectionAdapter() {
+                       private static final long serialVersionUID = -1683220869195484625L;
+
                        @Override
                        public void widgetSelected(SelectionEvent e) {
                                Table table = viewer.getTable();