I think I fixed this bug now.  It was in part of the removal code that
pushed forward the later index bindings.

The way you have it now in the move methods should work.  It's
obviously not the most efficient, but implementing the more efficient
way with cross-pod linking is tricky.

But now I've made PasCurnitUtils work with both cross-pod linking and
sharing one pod.  The WISE Project Converter now outputs curnits with
everything in one pod, so the authoring tool can start working that
way too.  The PasCurnitUtils methods check so see whether the two
beans in the method call share a pod or are separate, and acts
accordingly.

So you can rewrite your move methods to make the same check and when
they're in the same pod, just manipulate them at the bean level
without any pod abstraction weight.  Try the pattern from the add and
remove methods: the main method gets the enclosing pods and checks
their relationship, then delegates to the XXXOwnPod() or
XXXSharedPod() implementation.

-t


On Jul 20, 7:20 pm, "Anthony Perritano" <[EMAIL PROTECTED]> wrote:
> Thanks to turadg's efforts i was able to get reorder steps and activities to
> work. that is a killer. thx man.
>
> 3 of the 3 scenarios work in PasCurnitUtilsTest
> 1. reorder of activities
> 2. reorder of steps in the same activity
> 3. reorder of steps in different activities.
>
> i uncovered a new bug, when removing a step from activity that has one step
>
> Jul 20, 2007 4:19:38 PM net.sf.sail.core.beans.Pod valueMatchesReference
> WARNING: exception: java.lang.ArrayIndexOutOfBoundsException: -1
> Jul 20, 2007 4:19:38 PM net.sf.sail.core.beans.Pod valueMatchesReference
> WARNING: exception: java.lang.ArrayIndexOutOfBoundsException: -1
> Jul 20, 2007 4:19:38 PM net.sf.sail.core.beans.Pod valueMatchesReference
>
> this can be see on jira:http://www.telscenter.org/jira/browse/OWL-268
>
> turadg, i am readding the entire activity list when reordering activities
> and readding all the steps when reordering steps. is this the correct way to
> do it?
>
> Tony


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to