Project

General

Profile

Actions

Bug #4244

closed

Dragging ImageAttribute into Kepler results in not finding the gif

Added by Christopher Brooks almost 15 years ago. Updated about 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
build system
Target version:
Start date:
07/13/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4244

Description

Start Kepler
Search for ImageAttribute
Drag in the Image icon.
The following exception appears.

I think this is because ptIIplanetIcon.gif is not being copied?
build-area/settings/ptolemy-includes
is probably the file to edit. I edited it but running "ant run"
or "ant change-to -Dsuite=kepler" does not seem to help.

There is probably a larger problem in that every Ptolemy actor
that uses a resource such as a gif or sound file that is located
in the Ptolemy tree needs to be identified and the build system
updated to properly copy the resource.

Here's the exception:
ptolemy.kernel.util.IllegalActionException: Error evaluating expression: $PTII/ptolemy/vergil/kernel/attributes/ptIIplanetIcon.gif
in .Unnamed1.Image.source
Because:
Cannot read file '/Users/cxh/src/kepler/ptolemy/target/classes/ptolemy/vergil/kernel/attributes/ptIIplanetIcon.gif'
in .Unnamed1.Image.source
Because:
Cannot read file '/Users/cxh/src/kepler/ptolemy/target/classes/ptolemy/vergil/kernel/attributes/ptIIplanetIcon.gif' or '/Users/cxh/src/kepler/ptolemy/target/classes/ptolemy/vergil/kernel/attributes/ptIIplanetIcon.gif'
at ptolemy.data.expr.Variable.validate(Variable.java:1450)
at ptolemy.moml.MoMLParser.endDocument(MoMLParser.java:667)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:162)
at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1398)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1370)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1526)
at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:270)
at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171)
at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:699)
at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1687)
at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1349)
at ptolemy.vergil.basic.EditorDropTarget$DTListener.drop(EditorDropTarget.java:450)
at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
at java.awt.Component.dispatchEventImpl(Component.java:3926)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4007)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3861)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1801)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Actions

Also available in: Atom PDF