Author: sandakith Date: Tue May 29 00:41:04 2007 New Revision: 542445 URL: http://svn.apache.org/viewvc?view=rev&rev=542445 Log: Enhanced UI at the uotput page. Added the hint label toggle feature, according to new common eclipse wizards features.
Modified: webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/ui/OutputPage.java webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/resource/Codegen.properties Modified: webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/ui/OutputPage.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/ui/OutputPage.java?view=diff&rev=542445&r1=542444&r2=542445 ============================================================================== --- webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/ui/OutputPage.java (original) +++ webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/ui/OutputPage.java Tue May 29 00:41:04 2007 @@ -74,6 +74,12 @@ private String axis2LibsLocation = null; + private Label hintLabel; + + private Button hintButton; + + private boolean hintVisible = false; + /** * @@ -319,15 +325,24 @@ gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 3; - Label hintLabel = new Label(container, SWT.NULL); + + hintButton = new Button(container, SWT.PUSH); + hintButton.setText(CodegenWizardPlugin + .getResourceString("page3.hint.off")); + hintButton.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + handleHintBrowse(); + } + }); + + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 3; + hintLabel = new Label(container, SWT.NULL); hintLabel .setText(CodegenWizardPlugin .getResourceString("page3.hint.caption")); hintLabel.setLayoutData(gd); -// hintLabel.setFont(new Font(new Device() { -// public int internal_new_GC(GCData data) {return 0;} -// public void internal_dispose_GC(int handle, GCData data) {} -// },"hintFont",8,SWT.NORMAL)); + hintLabel.setVisible(hintVisible); disableControls(); @@ -339,6 +354,21 @@ if (restoredFromPreviousSettings) { handleModifyEvent(); } + } + + private void handleHintBrowse() { + if (hintVisible) { + hintButton.setText(CodegenWizardPlugin + .getResourceString("page3.hint.off")); + hintVisible = false; + hintLabel.setVisible(hintVisible); + } else { + hintButton.setText(CodegenWizardPlugin + .getResourceString("page3.hint.on")); + hintVisible = true; + hintLabel.setVisible(hintVisible); + } + } /** Modified: webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/resource/Codegen.properties URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/resource/Codegen.properties?view=diff&rev=542445&r1=542444&r2=542445 ============================================================================== --- webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/resource/Codegen.properties (original) +++ webservices/axis2/trunk/java/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/resource/Codegen.properties Tue May 29 00:41:04 2007 @@ -100,7 +100,9 @@ page3.hint.caption=Hint : If you have Axis2 binary distribution or Axis source, then you can add those libs also to the\n resulted codegen project by checking the \"Add Axis2 Libraries to the codegen resulted project\"\n check box and specifying the Axis2 home. Another option you have is to compile the codegen \n result project and add it as a jar file in the lib directory of the resulted project, for that you can \n check the \"Create a jar file of codegen result project and add to resulted project lib folder\" \n checkbox and then give the jar file name that you prefer. \n If you are adding the codegen result to a eclipse project on current eclipse workspace, \n please make sure to refresh that particular eclipse project. \n Also if you select the options to add libs to the project, make sure to add those libs to the \n project library path. page3.loadlib.success.caption=Axis libs loaded successfully !! page3.loadlib.fail.caption=Axis libs are not available!! Please verify the entered path!! -page3.loadlib.fail.message=Axis libs are not available!! Please verify the entered path, If you point to source try maven goal create-lib !! +page3.loadlib.fail.message=Axis libs are not available!! Please verify the entered path, If you point to source try maven goal create-lib !! +page3.hint.on=Page Hint >> +page3.hint.off=Page Hint << #errors page3.error.nolocation=output location needs to be specified # --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]