You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "florian kammermann (JIRA)" <xm...@xml.apache.org> on 2006/11/15 09:01:37 UTC

[jira] Created: (XMLBEANS-297) Tree expand in Sample XmlTree broken

Tree expand in Sample XmlTree broken
------------------------------------

                 Key: XMLBEANS-297
                 URL: http://issues.apache.org/jira/browse/XMLBEANS-297
             Project: XMLBeans
          Issue Type: Bug
         Environment: XmlBeans 2.2.0, jdk 1.5
            Reporter: florian kammermann


The tree-expand in the sample XmlTree is broken. 
That you can expand the tree with the JTree owned methods like "expandPath(TreePath)" the class XmlEntry must implement following methods:

    public int hashCode() 
    {
        return this.m_currentXml.hashCode();
    }
    
    public boolean equals(Object obj) 
    {
        return this.m_currentXml.hashCode() == ((XmlEntry)obj).hashCode();
    }

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Assigned: (XMLBEANS-297) Tree expand in Sample XmlTree broken

Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wing Yew Poon reassigned XMLBEANS-297:
--------------------------------------

    Assignee: Jacob Danner

Jacob, would you mind taking a look at this?


> Tree expand in Sample XmlTree broken
> ------------------------------------
>
>                 Key: XMLBEANS-297
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-297
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: Version 2.2
>         Environment: XmlBeans 2.2.0, jdk 1.5
>            Reporter: florian kammermann
>            Assignee: Jacob Danner
>
> The tree-expand in the sample XmlTree is broken. 
> That you can expand the tree with the JTree owned methods like "expandPath(TreePath)" the class XmlEntry must implement following methods:
>     public int hashCode() 
>     {
>         return this.m_currentXml.hashCode();
>     }
>     
>     public boolean equals(Object obj) 
>     {
>         return this.m_currentXml.hashCode() == ((XmlEntry)obj).hashCode();
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (XMLBEANS-297) Tree expand in Sample XmlTree broken

Posted by "florian kammermann (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-297?page=all ]

florian kammermann updated XMLBEANS-297:
----------------------------------------

          Component/s: Samples
    Affects Version/s: Version 2.2

> Tree expand in Sample XmlTree broken
> ------------------------------------
>
>                 Key: XMLBEANS-297
>                 URL: http://issues.apache.org/jira/browse/XMLBEANS-297
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: Version 2.2
>         Environment: XmlBeans 2.2.0, jdk 1.5
>            Reporter: florian kammermann
>
> The tree-expand in the sample XmlTree is broken. 
> That you can expand the tree with the JTree owned methods like "expandPath(TreePath)" the class XmlEntry must implement following methods:
>     public int hashCode() 
>     {
>         return this.m_currentXml.hashCode();
>     }
>     
>     public boolean equals(Object obj) 
>     {
>         return this.m_currentXml.hashCode() == ((XmlEntry)obj).hashCode();
>     }

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org