summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authornjames <nkskjames@gmail.com>2016-08-26 09:54:08 -0500
committernjames <nkskjames@gmail.com>2016-08-26 09:54:08 -0500
commitd4e70cdccd9bfe9b36b744ff63b6c5e84b727307 (patch)
treeeea19c71bdc8318c9a33f68f4caee2af42c8fff5 /src/com
parentd913c11d41eaa76806818fa327e3b228d104f693 (diff)
downloadserverwiz-d4e70cdccd9bfe9b36b744ff63b6c5e84b727307.tar.gz
serverwiz-d4e70cdccd9bfe9b36b744ff63b6c5e84b727307.zip
Removed carriage returns from attribute description.
Linux was wrapping cell and making rows very tall. Signed-off-by: Norman James <nkskjames@gmail.com>
Diffstat (limited to 'src/com')
-rw-r--r--src/com/ibm/ServerWizard2/view/MainDialog.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/com/ibm/ServerWizard2/view/MainDialog.java b/src/com/ibm/ServerWizard2/view/MainDialog.java
index db8de70..d431fff 100644
--- a/src/com/ibm/ServerWizard2/view/MainDialog.java
+++ b/src/com/ibm/ServerWizard2/view/MainDialog.java
@@ -8,8 +8,10 @@ import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.ColumnLabelProvider;
+import org.eclipse.jface.viewers.ColumnViewerToolTipSupport;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TableViewerColumn;
+import org.eclipse.jface.window.ToolTip;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.custom.StackLayout;
@@ -1229,7 +1231,8 @@ public class MainDialog extends Dialog {
private void createAttributeTable() {
Table table = viewer.getTable();
-
+ ColumnViewerToolTipSupport.enableFor(viewer, ToolTip.NO_RECREATE);
+
table.setHeaderVisible(true);
table.setLinesVisible(true);
table.setFont(SWTResourceManager.getFont("Arial", 9, SWT.NORMAL));
@@ -1281,10 +1284,15 @@ public class MainDialog extends Dialog {
colDesc.getColumn().setWidth(350);
colDesc.getColumn().setText("Description");
colDesc.setLabelProvider(new ColumnLabelProvider() {
+ public String getToolTipText(Object element) {
+ Field f = (Field) element;
+ return f.desc;
+ }
@Override
public String getText(Object element) {
Field f = (Field) element;
- return f.desc;
+ String desc = f.desc.replace("\n", "");
+ return desc;
}
});
OpenPOWER on IntegriCloud