Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renderer throws an exception when rendering ontology annotations #3

Open
matthewhorridge opened this issue Dec 17, 2015 · 0 comments
Open

Comments

@matthewhorridge
Copy link

java.lang.UnsupportedOperationException: This is an annotation change, not an axiom change: RemoveOntologyAnnotation(Annotation(rdfs:comment "An ontology about grocery items including their ingredients") OntologyID(OntologyID(OntologyIRI(<http://protege.stanford.edu/ontologies/grocery-ontology>) VersionIRI(<null>))))
    at org.semanticweb.owlapi.model.AnnotationChange.getAxiom(AnnotationChange.java:77) ~[na:na]
    at org.coode.change.ChangeTreeCellRenderer.getTreeCellRendererComponent(ChangeTreeCellRenderer.java:66) ~[na:na]
    at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2807) ~[na:1.8.0_25]
    at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:492) ~[na:1.8.0_25]
    at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1360) ~[na:1.8.0_25]
    at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.getXOrigin(VariableHeightLayoutCache.java:1143) ~[na:1.8.0_25]
    at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.getNodeBounds(VariableHeightLayoutCache.java:1130) ~[na:1.8.0_25]
    at javax.swing.tree.VariableHeightLayoutCache.getBounds(VariableHeightLayoutCache.java:220) ~[na:1.8.0_25]
    at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(BasicTreeUI.java:529) ~[na:1.8.0_25]
    at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1192) ~[na:1.8.0_25]
    at com.apple.laf.AquaTreeUI.paint(AquaTreeUI.java:129) ~[na:1.8.0_25]
    at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) ~[na:1.8.0_25]
    at javax.swing.JComponent.paintComponent(JComponent.java:777) ~[na:1.8.0_25]
    at javax.swing.JComponent.paint(JComponent.java:1053) ~[na:1.8.0_25]
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5223) ~[na:1.8.0_25]
    at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572) ~[na:1.8.0_25]
    at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495) ~[na:1.8.0_25]
    at javax.swing.RepaintManager.paint(RepaintManager.java:1265) ~[na:1.8.0_25]
    at javax.swing.JComponent._paintImmediately(JComponent.java:5171) ~[na:1.8.0_25]
    at javax.swing.JComponent.paintImmediately(JComponent.java:4982) ~[na:1.8.0_25]
    at javax.swing.RepaintManager$4.run(RepaintManager.java:824) ~[na:1.8.0_25]
    at javax.swing.RepaintManager$4.run(RepaintManager.java:807) ~[na:1.8.0_25]
    at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) ~[na:1.8.0_25]
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807) ~[na:1.8.0_25]
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782) ~[na:1.8.0_25]
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731) ~[na:1.8.0_25]
    at javax.swing.RepaintManager.access$1300(RepaintManager.java:64) ~[na:1.8.0_25]
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720) ~[na:1.8.0_25]
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) ~[na:1.8.0_25]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744) ~[na:1.8.0_25]
    at java.awt.EventQueue.access$400(EventQueue.java:97) ~[na:1.8.0_25]
    at java.awt.EventQueue$3.run(EventQueue.java:697) ~[na:1.8.0_25]
    at java.awt.EventQueue$3.run(EventQueue.java:691) ~[na:1.8.0_25]
    at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) ~[na:1.8.0_25]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:714) ~[na:1.8.0_25]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [na:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_25]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_25]
ignazio1977 added a commit that referenced this issue Mar 15, 2016
Renderer was not exploring all cases - job better done with a visitor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant