Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-06 17:56:56 +0000
committerMichael Valenta2005-05-06 17:56:56 +0000
commitdcf1d4ef8c0debc894b3c9da424318de29e8b768 (patch)
tree2d179007150686203cfdbf1e8185212b2a19e116
parent80a6d67dd187cf78e0a22d67c54be11d118b3ce4 (diff)
downloadeclipse.platform.team-dcf1d4ef8c0debc894b3c9da424318de29e8b768.tar.gz
eclipse.platform.team-dcf1d4ef8c0debc894b3c9da424318de29e8b768.tar.xz
eclipse.platform.team-dcf1d4ef8c0debc894b3c9da424318de29e8b768.zip
Bug 93250 Creating a new Date for a comparison is hidden
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionDialog.java11
1 files 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;
}
/**

Back to the top