Author: DartPeng
Date: 2008-10-09 09:33:58 -0400 (Thu, 09 Oct 2008)
New Revision: 10766
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java
Log:
disable the id browse button
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java 2008-10-09
12:19:45 UTC (rev 10765)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java 2008-10-09
13:33:58 UTC (rev 10766)
@@ -101,25 +101,33 @@
formToolKit.paintBordersFor(beanClassComposite);
this.formToolKit.createLabel(parent, "Bean ID : ");
- Composite beanIDComposite = formToolKit.createComposite(parent);
- GridLayout bilg = new GridLayout();
- bilg.numColumns = 2;
- bilg.marginHeight = 0;
- bilg.marginWidth = 1;
- beanIDComposite.setLayout(bilg);
-
- beanIDText = formToolKit.createText(beanIDComposite, "");
+ beanIDText = formToolKit.createText(parent, "");
gd = new GridData(GridData.FILL_HORIZONTAL);
gd.grabExcessHorizontalSpace = true;
beanIDText.setLayoutData(gd);
-
- idBrowseButton = formToolKit.createButton(beanIDComposite, "Browse",
- SWT.NONE);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.grabExcessHorizontalSpace = true;
- beanIDComposite.setLayoutData(gd);
- formToolKit.paintBordersFor(beanIDComposite);
+
+// Composite beanIDComposite = formToolKit.createComposite(parent);
+// GridLayout bilg = new GridLayout();
+// bilg.numColumns = 1;
+// bilg.marginHeight = 1;
+// bilg.marginWidth = 1;
+// beanIDComposite.setLayout(bilg);
+//
+// beanIDText = formToolKit.createText(beanIDComposite, "");
+// gd = new GridData(GridData.FILL_HORIZONTAL);
+// gd.grabExcessHorizontalSpace = true;
+// beanIDText.setLayoutData(gd);
+//
+// idBrowseButton = formToolKit.createButton(beanIDComposite, "Browse",
+// SWT.NONE);
+// idBrowseButton.setEnabled(false);
+// gd = new GridData(GridData.FILL_HORIZONTAL);
+// gd.grabExcessHorizontalSpace = true;
+// beanIDComposite.setLayoutData(gd);
+// formToolKit.paintBordersFor(beanIDComposite);
formToolKit.paintBordersFor(parent);
+
+
configControls();
hookContorls();
}
@@ -199,13 +207,13 @@
}
});
- idBrowseButton.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent e) {
- idBrowseButtonSelected();
- }
-
- });
+// idBrowseButton.addSelectionListener(new SelectionAdapter() {
+//
+// public void widgetSelected(SelectionEvent e) {
+// idBrowseButtonSelected();
+// }
+//
+// });
}
private void configControls() {
Show replies by date