Bug #5623
closedOutline tab context menu problems
0%
Description
When you change to the Outline tab, and expand an actor's tree and right-click on one of the actor's ports, attributes, or relations, you get the same context menu that you see when you right-click on the actor itself: View Documentation and Show on Canvas. Neither makes sense for an attribute, and for a relation, View Documentation doesn't make sense.
An exception is also thrown on the console (below).
View Documentation does nothing, even if the port or relation has documentation.
For a port, Show on Canvas opens the actor's source code and gives an error, e.g.: Could not find location for .Unnamed1.String.Constant.output.
For a relation or attribute, Show on Canvas gives a warning and doesn't change the workflow position.
Also, simply right-clicking on an attribute seems to create two child attributes: derivedFrom and entityId.
java.lang.Exception: Object must be a NamedObj
at org.kepler.gui.popups.NoLiidLibraryPopup.<init>(NoLiidLibraryPopup.java:103)
at org.kepler.gui.popups.OutlineComponentPopup.<init>(OutlineComponentPopup.java:54)
at org.kepler.gui.popups.OutlinePopupListener.handlePopupOutsideKar(OutlinePopupListener.java:91)
at org.kepler.gui.popups.OutlinePopupListener.maybeShowPopup(OutlinePopupListener.java:149)
at org.kepler.gui.popups.OutlinePopupListener.mouseReleased(OutlinePopupListener.java:72)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.Component.processMouseEvent(Component.java:6375)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6140)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4737)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4565)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:657)
at java.awt.EventQueue$2.run(EventQueue.java:655)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Updated by Daniel Crawl over 12 years ago
I think it's fixed in r29960. I left Show On Canvas for attributes, ports, and relations since it's useful to be able to find those in a large workflow. Derik, check if this fixes it.
Updated by Derik Barseghian over 12 years ago
Looks good at r29962. Thanks, closing.