CCM NG/ccm-core: Fixed several things in Bebop
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4694 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
parent
6e74f0f3fc
commit
0336bbfd24
|
|
@ -93,7 +93,6 @@ public class SimpleContainer extends SimpleComponent implements Container {
|
||||||
*/
|
*/
|
||||||
public void add(Component pc) {
|
public void add(Component pc) {
|
||||||
Assert.isUnlocked(this);
|
Assert.isUnlocked(this);
|
||||||
Assert.exists(pc);
|
|
||||||
m_components.add(pc);
|
m_components.add(pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,10 @@ public abstract class Traversal {
|
||||||
throw new IllegalStateException
|
throw new IllegalStateException
|
||||||
("Component " + c + " is part of a cycle");
|
("Component " + c + " is part of a cycle");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOGGER.debug("---");
|
||||||
|
LOGGER.debug("Current component: '{}'", c);
|
||||||
|
LOGGER.debug("Visiting: {}", m_visiting);
|
||||||
|
|
||||||
//s_log.debug("preorder called for component " + c.toString());
|
//s_log.debug("preorder called for component " + c.toString());
|
||||||
|
|
||||||
|
|
@ -108,7 +112,11 @@ public abstract class Traversal {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Iterator i = c.children(); i.hasNext(); ) {
|
for (Iterator i = c.children(); i.hasNext(); ) {
|
||||||
preorder ((Component) i.next());
|
final Component component = (Component) i.next();
|
||||||
|
LOGGER.debug("Calling preorder for component '{}'...",
|
||||||
|
component);
|
||||||
|
LOGGER.debug("---");
|
||||||
|
preorder (component);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue