Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-16 13:10:08 +0000
committerMichael Valenta2005-05-16 13:10:08 +0000
commit37e2016cb0ad6df6125af86011a96d3249749f5a (patch)
tree6108707040978a373fb8d4d9e7febcd724dd98a0
parentfa897be640537fea212e017a3131df47c8c874bf (diff)
downloadeclipse.platform.team-37e2016cb0ad6df6125af86011a96d3249749f5a.tar.gz
eclipse.platform.team-37e2016cb0ad6df6125af86011a96d3249749f5a.tar.xz
eclipse.platform.team-37e2016cb0ad6df6125af86011a96d3249749f5a.zip
Bug 94710 CVS->Password Page table laid out poorly
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/PasswordManagementPreferencePage.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/PasswordManagementPreferencePage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/PasswordManagementPreferencePage.java
index 5aa52dc35..4bacfb189 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/PasswordManagementPreferencePage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/PasswordManagementPreferencePage.java
@@ -12,6 +12,7 @@ package org.eclipse.team.internal.ccvs.ui;
import java.util.*;
import java.util.List;
+
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.preference.PreferencePage;
@@ -24,6 +25,7 @@ import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.*;
import org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation;
import org.eclipse.team.internal.ccvs.core.util.KnownRepositories;
+import org.eclipse.team.internal.ui.PixelConverter;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.help.WorkbenchHelp;
@@ -110,8 +112,10 @@ public class PasswordManagementPreferencePage extends PreferencePage implements
}
});
TableLayout tl = new TableLayout();
- tl.addColumnData(new ColumnWeightData(70, 100));
- tl.addColumnData(new ColumnWeightData(30));
+ Dialog.applyDialogFont(ancestor);
+ PixelConverter converter = new PixelConverter(table);
+ tl.addColumnData(new ColumnWeightData(70, converter.convertWidthInCharsToPixels(40)));
+ tl.addColumnData(new ColumnWeightData(30, converter.convertWidthInCharsToPixels(12)));
table.setLayout(tl);
Composite buttons = new Composite(parent, SWT.NULL);

Back to the top