You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/11/11 16:28:58 UTC
svn commit: r473729 - in
/webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service:
eclipse/ui/ServiceArchiveOutputLocationPage.java
resource/ServiceResources.properties
Author: sandakith
Date: Sat Nov 11 07:28:58 2006
New Revision: 473729
URL: http://svn.apache.org/viewvc?view=rev&rev=473729
Log:
Made the service archive wizard's out put location select page next button disable(because of being the last page).
Made Finish button's behaviour normal.
Add a page hint.
Modified:
webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveOutputLocationPage.java
webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/resource/ServiceResources.properties
Modified: webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveOutputLocationPage.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveOutputLocationPage.java?view=diff&rev=473729&r1=473728&r2=473729
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveOutputLocationPage.java (original)
+++ webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveOutputLocationPage.java Sat Nov 11 07:28:58 2006
@@ -32,7 +32,7 @@
public class ServiceArchiveOutputLocationPage extends AbstractServiceWizardPage {
- private static final String DEFAULT_JAR_NAME = "my_service.jar";
+ private static final String DEFAULT_JAR_NAME = "my_service.aar";
private Text outputFileLocationTextBox;
private Button browseButton;
private Text outputFileNameTextbox;
@@ -99,7 +99,22 @@
handleFileNameModification();
}
});
-
+
+ //Add some fill lables
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 3;
+ Label fillLable = new Label(container,SWT.NULL);
+ fillLable.setText("");
+ fillLable.setLayoutData(gd);
+ Label fillLable1 = new Label(container,SWT.NULL);
+ fillLable1.setText("");
+ fillLable1.setLayoutData(gd);
+
+ //Hint Lable
+ Label hintLable = new Label(container,SWT.NULL);
+ hintLable.setText(ServiceArchiver.getResourceString("page4.hint.caption"));
+ hintLable.setLayoutData(gd);
+
if (restoredFromPreviousSettings) {
handleFileNameModification();
handleLocationModification();
@@ -126,9 +141,19 @@
settings.put(PREF_OUTPUT_LOCATION,outputLocationText);
if (outputLocationText==null ||"".equals(outputLocationText.trim())){
this.updateStatus(ServiceArchiver.getResourceString("page4.error.location"));
- }else{
- isWizardComplete = true;
+ isWizardComplete=false;
updateStatus(null);
+ }else{
+ String outputFilenameText = outputFileNameTextbox.getText();
+ settings.put(PREF_OUTPUT_NAME,outputFilenameText);
+ if (outputFilenameText==null || "".equals(outputFilenameText.trim())){
+ this.updateStatus(ServiceArchiver.getResourceString("page4.error.filename"));
+ isWizardComplete=false;
+ updateStatus(null);
+ }else{
+ isWizardComplete = true;
+ updateStatus(null);
+ }
}
}
private void handleFileNameModification(){
@@ -136,8 +161,19 @@
settings.put(PREF_OUTPUT_NAME,outputFilenameText);
if (outputFilenameText==null || "".equals(outputFilenameText.trim())){
this.updateStatus(ServiceArchiver.getResourceString("page4.error.filename"));
- }else{
+ isWizardComplete=false;
updateStatus(null);
+ }else{
+ String outputLocationText = outputFileLocationTextBox.getText();
+ settings.put(PREF_OUTPUT_LOCATION,outputLocationText);
+ if (outputLocationText==null ||"".equals(outputLocationText.trim())){
+ this.updateStatus(ServiceArchiver.getResourceString("page4.error.location"));
+ isWizardComplete=false;
+ updateStatus(null);
+ }else{
+ isWizardComplete = true;
+ updateStatus(null);
+ }
}
}
Modified: webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/resource/ServiceResources.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/resource/ServiceResources.properties?view=diff&rev=473729&r1=473728&r2=473729
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/resource/ServiceResources.properties (original)
+++ webservices/axis2/branches/java/1_1/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/resource/ServiceResources.properties Sat Nov 11 07:28:58 2006
@@ -64,6 +64,7 @@
page4.outputlocation.label=Output file location
page4.outputname.label=Output File Name
page4.dirdialog.caption=Browse for the output location
+page4.hint.caption=Hint : To Finish the wizard, please enter valid entries to the output location and output file.
# errors
page4.error.location=Browse and enter the location to save the output file
page4.error.filename=Enter a name for Service File (Ideally it sould be the service name ending with the valid extention *.jar)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org