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 "Eran Chinthaka (JIRA)" <ji...@apache.org> on 2006/04/01 15:39:26 UTC

[jira] Created: (AXIS2-541) Code Generator Eclipse plugin for 0.95

Code Generator Eclipse plugin for 0.95
--------------------------------------

         Key: AXIS2-541
         URL: http://issues.apache.org/jira/browse/AXIS2-541
     Project: Apache Axis 2.0 (Axis2)
        Type: Improvement
  Components: Tools  
    Versions: 0.95    
    Reporter: Eran Chinthaka
 Assigned to: Ajith Harshana Ranabahu 
    Priority: Minor


Ali Sadik Kumlali was kind enough to fill a small space we had during the latest release. He has provided us with Eclipse code generation plugins for 0.95 release. 
Lets review it and make it available in the downloads page. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS2-541) Code Generator Eclipse plugin for 0.95

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-541?page=all ]
     
Eran Chinthaka resolved AXIS2-541:
----------------------------------

    Resolution: Fixed

Already applied and fixed

> Code Generator Eclipse plugin for 0.95
> --------------------------------------
>
>          Key: AXIS2-541
>          URL: http://issues.apache.org/jira/browse/AXIS2-541
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement

>   Components: Tools
>     Versions: 0.95
>     Reporter: Eran Chinthaka
>     Assignee: Ajith Harshana Ranabahu
>     Priority: Minor
>  Attachments: Axis2CodegenWizard.zip, Axis2_Codegen_Wizard_1.2.0.zip, code-gen.patch
>
> Ali Sadik Kumlali was kind enough to fill a small space we had during the latest release. He has provided us with Eclipse code generation plugins for 0.95 release. 
> Lets review it and make it available in the downloads page. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-541) Code Generator Eclipse plugin for 0.95

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-541?page=all ]

Ali Sadik Kumlali updated AXIS2-541:
------------------------------------

    Attachment: Axis2CodegenWizard.zip

> Code Generator Eclipse plugin for 0.95
> --------------------------------------
>
>          Key: AXIS2-541
>          URL: http://issues.apache.org/jira/browse/AXIS2-541
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>   Components: Tools
>     Versions: 0.95
>     Reporter: Eran Chinthaka
>     Assignee: Ajith Harshana Ranabahu
>     Priority: Minor
>  Attachments: Axis2CodegenWizard.zip, Axis2_Codegen_Wizard_1.2.0.zip
>
> Ali Sadik Kumlali was kind enough to fill a small space we had during the latest release. He has provided us with Eclipse code generation plugins for 0.95 release. 
> Lets review it and make it available in the downloads page. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-541) Code Generator Eclipse plugin for 0.95

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-541?page=all ]

Ali Sadik Kumlali updated AXIS2-541:
------------------------------------

    Attachment: Axis2_Codegen_Wizard_1.2.0.zip

Thank you for the kind comments. I am not able to provide a patch, since I didn't create the project from SVN. But tried to provide you with as much information as I could.

Thanks

-----------------------------------------------------------------------------------------------------
Purpose: Axis2 Code Generator Eclipse for 0.95 based on 1.1.0's source 

Attached files:
  - Axis2CodegenWizard.zip: Plug-in project
  - Axis2_Codegen_Wizard_1.2.0.zip plug-in itself

What I did: 
   - Created a plug-in project(Axis2CodegenWizard) by myself instead of creating it with "ant -f create-project.xml" against SVN.
   - Imported src found in 0.94 plug-in distribution into the project
   - Refactored WSDL2JavaGenerator.java file to make it run with Axis2 0.95
   - Changed library references found in plugin.xml to make it run with Axis2 0.95
   - Changed version from 1.1.0 to 1.2.0
   - Created build.xml from plugin.xml with PDE Tools\Create Ant Build File
   - Commented out "<antcall target="build.sources"/>" in build.xml to make distribution same as 1.1.0 version's.
   - Run "ant clean zip.plugin"
   - Saw Axis2_Codegen_Wizard_1.2.0.zip generated successfully.
   - Created required_jars.txt which contained the list of all the files found under lib folder.
   - Removed jar files from and put required_jars.txt file into lib folder (to make attachment smaller) 

Steps necessery to install/run plug-in:
  1) Open Axis2_Codegen_Wizard_1.2.0.zip file
  2) Put jar files listed in  Axis2_Codegen_Wizard_1.2.0\lib\required_jars.txt under lib folder.
  3) If already opened, close Eclipse
  4) Delete (or backup ) old plug-in's folder found in Eclipse's plugins folder. It must be named Axis2_Codegen_Wizard_1.1.0.
  5) Copy Axis2_Codegen_Wizard_1.2.0 folder under Eclipse's plugins folder.
  6) Run Eclipse
  7) If you don't see the plug-in, please restart the Eclipse with  -clean parameter.

Some notes:
   1) Created project with Eclipse 3.1.1. So, attached project file belongs to Eclipse 3.1.1 platform.
   2) Built with JDK 1.4.2_02
   3) Tested only xmlbeans generation

> Code Generator Eclipse plugin for 0.95
> --------------------------------------
>
>          Key: AXIS2-541
>          URL: http://issues.apache.org/jira/browse/AXIS2-541
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>   Components: Tools
>     Versions: 0.95
>     Reporter: Eran Chinthaka
>     Assignee: Ajith Harshana Ranabahu
>     Priority: Minor
>  Attachments: Axis2CodegenWizard.zip, Axis2_Codegen_Wizard_1.2.0.zip
>
> Ali Sadik Kumlali was kind enough to fill a small space we had during the latest release. He has provided us with Eclipse code generation plugins for 0.95 release. 
> Lets review it and make it available in the downloads page. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-541) Code Generator Eclipse plugin for 0.95

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-541?page=all ]

Ali Sadik Kumlali updated AXIS2-541:
------------------------------------

    Attachment: code-gen.patch

I found some free time and were able to create a patch file against 0.95 version. With this change, it worked for me. But, there is something  that should be taken into account. Without following change, I got some errors caused by NumberFormatException. AFAIK, code tries to load latest preferences made by the user. Previous settings may belong to the 0.94 release. But, *I think*, there is some mismatch between 0.94 and 0.95. So, it can't find required fields from the previous prefences and tries to load wrong settings. 

Attached patch doesn't include this addition, though.

-------------------------------------------
package org.apache.axis2.tool.codegen.eclipse.ui has init()
...
public abstract class AbstractWizardPage extends WizardPage implements SettingsConstants {

...

    protected void init(String pageName){
        setTitle(CodegenWizardPlugin.getResourceString(pageName+".title"));
        setDescription(CodegenWizardPlugin.getResourceString(pageName+".desc"));
        setImageDescriptor(CodegenWizardPlugin.getWizardImageDescriptor());
        
        /*
         * Get the settings for this page. If there is no section in the
         * Plugin's settings for this OptionsPage, create a new section
         */
        IDialogSettings rootSettings = CodegenWizardPlugin.getDefault()
                .getDialogSettings();
        IDialogSettings section = rootSettings.getSection(this.getClass()
                .getName());
        //--------------------------------------------------------------
        //  I couldn't run it without setting section to null.
        //--------------------------------------------------------------
        section = null;         
        if (section == null) {
            settings = rootSettings.addNewSection(this.getClass().getName());
            restoredFromPreviousSettings = false;
            initializeDefaultSettings();
        } else {
            restoredFromPreviousSettings=true;
            settings = section;
        }
    }

...

-------------------------------------------


> Code Generator Eclipse plugin for 0.95
> --------------------------------------
>
>          Key: AXIS2-541
>          URL: http://issues.apache.org/jira/browse/AXIS2-541
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement

>   Components: Tools
>     Versions: 0.95
>     Reporter: Eran Chinthaka
>     Assignee: Ajith Harshana Ranabahu
>     Priority: Minor
>  Attachments: Axis2CodegenWizard.zip, Axis2_Codegen_Wizard_1.2.0.zip, code-gen.patch
>
> Ali Sadik Kumlali was kind enough to fill a small space we had during the latest release. He has provided us with Eclipse code generation plugins for 0.95 release. 
> Lets review it and make it available in the downloads page. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira