Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-06-09 10:36:08 -0400
committerMichael Valenta2005-06-09 10:36:08 -0400
commit7a5f7928bd8242b58ef0d9ef402aa77f58095565 (patch)
tree753ecf0d117130933353f5d1259de5796b1bdc50
parent3acc4a654e68915b9ecd4c77dabfc923dd503c7a (diff)
downloadeclipse.platform.team-7a5f7928bd8242b58ef0d9ef402aa77f58095565.tar.gz
eclipse.platform.team-7a5f7928bd8242b58ef0d9ef402aa77f58095565.tar.xz
eclipse.platform.team-7a5f7928bd8242b58ef0d9ef402aa77f58095565.zip
Bug 99111 clipped texts in Tag Resources dialog
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionArea.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionArea.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionArea.java
index 9941884be..1392e5b78 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionArea.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionArea.java
@@ -44,6 +44,10 @@ import org.eclipse.ui.part.PageBook;
*/
public class TagSelectionArea extends DialogArea {
+ private static int COLUMN_TRIM = "carbon".equals(SWT.getPlatform()) ? 24 : 3; //$NON-NLS-1$
+
+ private static int ICON_WIDTH = 40; //$NON-NLS-1$
+
/*
* Property constant which identifies the selected tag or
* null if no tag is selected
@@ -216,7 +220,7 @@ public class TagSelectionArea extends DialogArea {
tagTable.refresh();
int maxWidth = getMaxWidth(list.getChildren(null));
if (maxWidth > 0) {
- maxWidth = maxWidth + 40; /* space for the tag icon */
+ maxWidth = maxWidth + ICON_WIDTH + COLUMN_TRIM; /* space for the tag icon */
tagTable.getTable().getColumn(0).setWidth(maxWidth);
}
if (filterText == null || filter == null || filter.length() == 0) {

Back to the top