Author: mareshkau
Date: 2009-01-12 11:30:50 -0500 (Mon, 12 Jan 2009)
New Revision: 12995
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/query/AbstractQueryDialog.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialogView.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3503, dialog was been made resizeble, this
changes also takes affect to other dialogs which used AbstractQueryDialog class
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/query/AbstractQueryDialog.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/query/AbstractQueryDialog.java 2009-01-12
16:20:18 UTC (rev 12994)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/query/AbstractQueryDialog.java 2009-01-12
16:30:50 UTC (rev 12995)
@@ -35,6 +35,7 @@
public AbstractQueryDialog(Shell shell) {
super(shell);
+ setShellStyle(getShellStyle()|SWT.RESIZE);
}
public void setView(AbstractQueryWizardView view) {
@@ -78,7 +79,7 @@
gridLayout.horizontalSpacing = 0;
gridLayout.verticalSpacing = 0;
composite.setLayout(gridLayout);
- GridData gd = new GridData(GridData.FILL_BOTH);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
composite.setLayoutData(gd);
Label titleBarSeparator = new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR);
@@ -97,7 +98,7 @@
commandBar.setDefaultCommand(view.getDefaultCommand());
Control control = commandBar.createControl(composite);
commandBar.getLayout().alignment = SWT.RIGHT;
- gd = new GridData(GridData.FILL_BOTH);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
gd.heightHint = commandBar.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
control.setLayoutData(gd);
if(view.getHelpKey() == null)
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialogView.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialogView.java 2009-01-12
16:20:18 UTC (rev 12994)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/resref/VpeResourcesDialogView.java 2009-01-12
16:30:50 UTC (rev 12995)
@@ -127,7 +127,7 @@
//
http://jira.jboss.com/jira/browse/JBIDE-2010
String os_name = System.getProperty("os.name"); //$NON-NLS-1$
if (os_name != null && os_name.indexOf("Windows") >= 0) {
//$NON-NLS-1$
- return new Point(500, 230);
+ return new Point(400, 230);
}
// changed by estherbin
//
http://jira.jboss.com/jira/browse/JBIDE-2010