Giter Club home page Giter Club logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024

Original comment by fmorbini on 27 Jul 2010 at 2:53

  • Changed state: Accepted

from scxmlgui.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
committed a quick fix to eliminate the null pointer exception.
however the layout is not correct. opening the top-level will not display the 
complete graph (the 3rd level is missing). Opening the second level instead 
displays correctly also the third level.

Original comment by fmorbini on 27 Jul 2010 at 3:05

from scxmlgui.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
Note also that opening the top level does not present state B_AAAAAAAA_CCCC, 
which is part of the 2nd level, and detailed in the 3rd level.

Original comment by [email protected] on 28 Jul 2010 at 7:58

from scxmlgui.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
the problem seems to be caused by level 3 redefining a node already defined in 
level 2.

the problematic node is the top level node in level 3: B_AAAAAAAA_CCCC

Original comment by fmorbini on 28 Jul 2010 at 7:01

from scxmlgui.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
fixed in revision 61 by notifying the user when a child node is the same as its 
parent.

Original comment by fmorbini on 28 Jul 2010 at 7:16

  • Changed state: Fixed

from scxmlgui.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
Note that before this fix, level 2 was also redefining a node (the top level 
node in level 2: "2nd_level"), but there was no problem displaying level 2 
correctly in the editor.
The fix I targeted was expanding this behavior for deeper nesting levels.
However, the actual fix made things worse, as it does not allow using xinclude 
in a convenient way.
Let me explain:
I am interested in the ability to separate child states to different files, and 
still keep the ability to load each file separately in the editor. This means 
that each nested level should be defined as a full state.
I tried moving the whole child state to a separate file, leaving only the 
xi:include statement at the parent level. However, transitions in the child 
file pointing to sibling states caused an error when trying to load the editor, 
as the editor did not find these sibling states in the child file (they are 
defined in the parent file).
So I kept in the parent file only a portion of the child state containing the 
transitions to its siblings, and separated the rest of the child state to a 
different child file. However, this created a child file which is not a 
complete state, and cannot be loaded in the editor. 
Then I found out that wrapping the contents of the child file with the child 
state (or redefining it as you mentioned) worked with one nesting level, but 
not with two levels.
I would appreciate any fix that will enable both loading the top file, and each 
nested level.

Original comment by [email protected] on 28 Jul 2010 at 7:53

from scxmlgui.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
revision 62 should allows for what you are asking. Let me know if it still 
doesn't.

Original comment by fmorbini on 28 Jul 2010 at 8:14

from scxmlgui.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
This fix is indeed what I was asking for. Thanks.
I noticed another exception happening when:
opening the top level, collapsing the cluster state, and selecting auto layout.
The layout is changed correctly, but a NullPointer exception is thrown (see 
attached log).

Original comment by [email protected] on 29 Jul 2010 at 5:56

Attachments:

from scxmlgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.