anathema/anathema — Issue #87: Show Charm tooltips in the Charm cascades
Author: UrsKR
Created: 2012-02-28 16:21:53+00:00
State: open

@JMobius, back in commit ae5b1008, you added code that shows details about special Charms in the tooltips.
In there, we have a cast to ``CharacterType``, when all we have is the ``Identificate`` "MartialArts".
You probably know your way around better than I do at this time, do you see an easy way out?

```
java.lang.ClassCastException: net.sf.anathema.lib.util.Identificate cannot be cast to net.sf.anathema.character.generic.type.CharacterType
at net.sf.anathema.cascades.presenter.CascadeCharmTreeViewProperties.getSpecialCharm(CascadeCharmTreeViewProperties.java:47)
at net.sf.anathema.charmtree.presenter.view.AbstractCharmTreeViewProperties.getToolTip(AbstractCharmTreeViewProperties.java:114)
at net.sf.anathema.platform.svgtree.view.listening.SvgTreeListening.setCanvasTooltip(SvgTreeListening.java:167)
at net.sf.anathema.platform.svgtree.view.listening.SvgTreeListening.access$6(SvgTreeListening.java:166)
at net.sf.anathema.platform.svgtree.view.listening.SvgTreeListening$2.handleEvent(SvgTreeListening.java:59)
at org.apache.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:324)
at org.apache.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:366)
at org.apache.batik.dom.events.EventSupport.dispatchEvent(EventSupport.java:276)
at org.apache.batik.dom.AbstractNode.dispatchEvent(AbstractNode.java:1014)
at org.apache.batik.bridge.BridgeEventSupport$Listener.dispatchMouseEvent(BridgeEventSupport.java:405)
at org.apache.batik.bridge.BridgeEventSupport$Listener.mouseEntered(BridgeEventSupport.java:266)
at org.apache.batik.gvt.event.AbstractAWTEventDispatcher.processMouseEvent(AbstractAWTEventDispatcher.java:592)
at org.apache.batik.gvt.event.AbstractAWTEventDispatcher.dispatchMouseEvent(AbstractAWTEventDispatcher.java:545)
at org.apache.batik.gvt.event.AbstractAWTEventDispatcher.dispatchEvent(AbstractAWTEventDispatcher.java:387)
at org.apache.batik.gvt.event.AbstractAWTEventDispatcher.mouseEntered(AbstractAWTEventDispatcher.java:183)
at org.apache.batik.swing.svg.AbstractJSVGComponent$20.run(AbstractJSVGComponent.java:2165)
at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:237)
at java.lang.Thread.run(Thread.java:662)
```