axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ali Sadik Kumlali (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-541) Code Generator Eclipse plugin for 0.95
Date Sun, 02 Apr 2006 22:07:44 GMT
     [ 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


Mime
View raw message