summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxwu2013-04-01 02:32:23 (EDT)
committer lzhu2013-04-01 02:32:23 (EDT)
commit53953d8cc2fcc8c4135c8dd3dd8de37711a1f88d (patch)
tree2b466672465cb054697cc2c91c4938d0171b73a7
parent11114e342048cb442c5998084ecb41b3030322af (diff)
downloadorg.eclipse.datatools.enablement.oda-53953d8cc2fcc8c4135c8dd3dd8de37711a1f88d.zip
org.eclipse.datatools.enablement.oda-53953d8cc2fcc8c4135c8dd3dd8de37711a1f88d.tar.gz
org.eclipse.datatools.enablement.oda-53953d8cc2fcc8c4135c8dd3dd8de37711a1f88d.tar.bz2
Fix an issue - 'Finish' button should be disabled after clear SOAPv201304011432
request template during create Web Service dataset.[58028]
-rw-r--r--plugins/org.eclipse.datatools.enablement.oda.ws.ui/src/org/eclipse/datatools/enablement/oda/ws/ui/wizards/SOAPRequestPage.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/org.eclipse.datatools.enablement.oda.ws.ui/src/org/eclipse/datatools/enablement/oda/ws/ui/wizards/SOAPRequestPage.java b/plugins/org.eclipse.datatools.enablement.oda.ws.ui/src/org/eclipse/datatools/enablement/oda/ws/ui/wizards/SOAPRequestPage.java
index 85fd1b8..eeaa1a8 100644
--- a/plugins/org.eclipse.datatools.enablement.oda.ws.ui/src/org/eclipse/datatools/enablement/oda/ws/ui/wizards/SOAPRequestPage.java
+++ b/plugins/org.eclipse.datatools.enablement.oda.ws.ui/src/org/eclipse/datatools/enablement/oda/ws/ui/wizards/SOAPRequestPage.java
@@ -123,6 +123,14 @@ public class SOAPRequestPage extends DataSetWizardPage
queryText = new Text( parent, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.LEFT_TO_RIGHT );
GridData layoutData = new GridData( GridData.FILL_BOTH );
queryText.setLayoutData( layoutData );
+ queryText.addModifyListener( new ModifyListener( ){
+
+ public void modifyText( ModifyEvent arg0 )
+ {
+ validatePageStatus( );
+ }
+
+ });
}
private void setupButtonComposite( Composite parent )
@@ -191,6 +199,7 @@ public class SOAPRequestPage extends DataSetWizardPage
public void widgetSelected( SelectionEvent e )
{
queryText.setText( WSUtil.EMPTY_STRING );
+ validatePageStatus( );
}
} );
@@ -345,6 +354,16 @@ public class SOAPRequestPage extends DataSetWizardPage
WSConsole.getInstance( ).terminateSession( );
}
+ private void validatePageStatus( )
+ {
+ boolean valid = true;
+ if ( queryText.getText( ).trim( ).length( ) == 0 )
+ {
+ valid = false;
+ }
+ setPageComplete( valid );
+ }
+
class ParameterInputDialog extends StatusDialog
{