From dcf1d4ef8c0debc894b3c9da424318de29e8b768 Mon Sep 17 00:00:00 2001 From: Michael Valenta Date: Fri, 6 May 2005 17:56:56 +0000 Subject: Bug 93250 Creating a new Date for a comparison is hidden --- .../team/internal/ccvs/ui/tags/TagSelectionDialog.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionDialog.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionDialog.java index 51cdb7849..33333c2ac 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionDialog.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionDialog.java @@ -54,8 +54,8 @@ public class TagSelectionDialog extends Dialog implements IPropertyChangeListene private boolean recurse = true; // constants - private static final int SIZING_DIALOG_WIDTH = 400; - private static final int SIZING_DIALOG_HEIGHT = 400; + private static final int SIZING_DIALOG_WIDTH = 80; + private static final int SIZING_DIALOG_HEIGHT = 25; private CVSTag selection; @@ -98,7 +98,7 @@ public class TagSelectionDialog extends Dialog implements IPropertyChangeListene this.helpContext = helpContext; this.showRecurse = showRecurse; this.title = title; - setShellStyle(getShellStyle() | SWT.RESIZE); + setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL); } /* (non-Javadoc) @@ -113,7 +113,10 @@ public class TagSelectionDialog extends Dialog implements IPropertyChangeListene * @see org.eclipse.jface.window.Window#getInitialSize() */ protected Point getInitialSize() { - return new Point(SIZING_DIALOG_WIDTH, SIZING_DIALOG_HEIGHT); + final Point size= super.getInitialSize(); + size.x= convertWidthInCharsToPixels(SIZING_DIALOG_WIDTH); + size.y= convertHeightInCharsToPixels(SIZING_DIALOG_HEIGHT); + return size; } /** -- cgit v1.2.3