I played around a lot in here to get the delete/clone functionality for
methods/attributes working correctly in conjunction with the undo/redo.
 It's still not fully functional, and this is just how I left it.  I will
migrate it back to addElement during the merge.

-Matt


On Thu, Apr 17, 2014 at 7:16 PM, AlexBorg <notifications@github.com> wrote:

> In src/Element/ElementClass.java:
>
> >          for (Element child : methods) {
> >              Element clonedChild = child.clone();
> > -            cloned.addElement(clonedChild);
> > +            cloned.add(clonedChild);
>
> I'm confused by this addElement convert to add. The addElement, means that
> we control where the element goes to (methods or attributes), however, this
> add, is derived from JPanel -> Container which we don't directly control.
> Are you sure this is what you want to do?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Zedzap/WackaUML/pull/24/files#r11758794>
> .
>