Fix small glitches and typo
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui / src / org / argeo / eclipse / ui / utils / ViewerUtils.java
index a726bdb321dae1af2db78fc0c36ac9dd58c7c651..56766917dc976a313db9ea8f729aad05a0672bed 100644 (file)
@@ -24,8 +24,7 @@ import org.eclipse.swt.widgets.TableColumn;
 import org.eclipse.swt.widgets.TreeColumn;
 
 /**
- * Centralizes useful methods to manage Jface Table, Tree and TreeColumn
- * viewers.
+ * Centralise useful methods to manage JFace Table, Tree and TreeColumn viewers.
  */
 public class ViewerUtils {
 
@@ -33,8 +32,7 @@ public class ViewerUtils {
         * Creates a basic column for the given table. For the time being, we do not
         * support movable columns.
         */
-       public static TableColumn createColumn(Table parent, String name,
-                       int style, int width) {
+       public static TableColumn createColumn(Table parent, String name, int style, int width) {
                TableColumn result = new TableColumn(parent, style);
                result.setText(name);
                result.setWidth(width);
@@ -46,10 +44,9 @@ public class ViewerUtils {
         * Creates a TableViewerColumn for the given viewer. For the time being, we
         * do not support movable columns.
         */
-       public static TableViewerColumn createTableViewerColumn(TableViewer parent,
-                       String name, int style, int width) {
+       public static TableViewerColumn createTableViewerColumn(TableViewer parent, String name, int style, int width) {
                TableViewerColumn tvc = new TableViewerColumn(parent, style);
-               final TableColumn column = tvc.getColumn();
+               TableColumn column = tvc.getColumn();
                column.setText(name);
                column.setWidth(width);
                column.setResizable(true);
@@ -60,10 +57,9 @@ public class ViewerUtils {
         * Creates a TreeViewerColumn for the given viewer. For the time being, we
         * do not support movable columns.
         */
-       public static TreeViewerColumn createTreeViewerColumn(TreeViewer parent,
-                       String name, int style, int width) {
+       public static TreeViewerColumn createTreeViewerColumn(TreeViewer parent, String name, int style, int width) {
                TreeViewerColumn tvc = new TreeViewerColumn(parent, style);
-               final TreeColumn column = tvc.getColumn();
+               TreeColumn column = tvc.getColumn();
                column.setText(name);
                column.setWidth(width);
                column.setResizable(true);