X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.eclipse.ui%2Fsrc%2Forg%2Fargeo%2Feclipse%2Fui%2Futils%2FViewerUtils.java;h=56766917dc976a313db9ea8f729aad05a0672bed;hb=62d5fd1e1caad85423e45cc878b93c4be2f09713;hp=42e9fab991a16d988ab34400461b1803294b1c00;hpb=e61dd9dda88354091625cca85aa7c96d196688b3;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/utils/ViewerUtils.java b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/utils/ViewerUtils.java index 42e9fab99..56766917d 100644 --- a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/utils/ViewerUtils.java +++ b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/utils/ViewerUtils.java @@ -24,17 +24,15 @@ 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 { /** * Creates a basic column for the given table. For the time being, we do not - * support moveable columns. + * 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); @@ -44,12 +42,11 @@ public class ViewerUtils { /** * Creates a TableViewerColumn for the given viewer. For the time being, we - * do not support moveable columns. + * 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); @@ -58,12 +55,11 @@ public class ViewerUtils { /** * Creates a TreeViewerColumn for the given viewer. For the time being, we - * do not support moveable columns. + * 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);