Author: snjeza
Date: 2010-10-23 18:17:42 -0400 (Sat, 23 Oct 2010)
New Revision: 26016
Modified:
branches/jbosstools-3.2.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java
Log:
JBIDE-7397 New Example -> Project Examples -> dialog size changed significantly
Modified:
branches/jbosstools-3.2.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java
===================================================================
---
branches/jbosstools-3.2.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java 2010-10-23
00:00:33 UTC (rev 26015)
+++
branches/jbosstools-3.2.0.Beta1/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java 2010-10-23
22:17:42 UTC (rev 26016)
@@ -71,6 +71,7 @@
*/
public class NewProjectExamplesWizardPage extends WizardPage {
+ private static final int DEFAULT_WIDTH = 600;
private IStructuredSelection selection;
private Button showQuickFixButton;
private Combo siteCombo;
@@ -92,7 +93,7 @@
Composite composite = new Composite(parent,SWT.NONE);
composite.setLayout(new GridLayout(1,false));
- GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
+ GridData gd = new GridData(SWT.FILL, SWT.FILL, false, false);
composite.setLayoutData(gd);
@@ -157,7 +158,8 @@
Composite internal = new Composite(composite, SWT.NULL);
internal.setLayout(new GridLayout(2,false));
- gd = new GridData(GridData.FILL_BOTH);
+ gd = new GridData(GridData.FILL, GridData.FILL, true, false);
+ gd.widthHint = DEFAULT_WIDTH;
internal.setLayoutData(gd);
Label projectNameLabel = new Label(internal,SWT.NULL);
@@ -305,7 +307,7 @@
private void configureSizeAndLocation() {
Shell shell = getContainer().getShell();
- Point size = new Point(600,shell.getSize().y);
+ Point size = new Point(DEFAULT_WIDTH,shell.getSize().y);
shell.setSize(size);
Point location = getInitialLocation(size, shell);
shell.setBounds(getConstrainedShellBounds(new Rectangle(location.x,
Show replies by date