svn cp command. Do
not drag and drop directories as the directories contain a .svn directory
that will have settings for the source location. Instead, use svn cp.
See also svn mv.
tcl.lang.Shell.
If tcl.lang.Shell is not found, then be sure that $PTII/lib/ptlang.jar is in the class path of the project by right clicking on the project and selecting Properties > Java Build Path >> Libraries.
alljtests.tcl or any individual test tcl file.
(E.g. SimpleDelay.tcl).
Or, leave the "Program arguments" field blank and when ptjacl is running (see below), enter text in to the Eclipse console.
-Dptolemy.ptII.dir=your PtII directory
-Dptolemy.ptII.dir=c:/hyzheng/ptII).
-Dptolemy.ptII.dir="c:/my workspace/ptII").
C:\hyzheng\ptII\ptolemy\domains\de\lib\test)
workspace directory in the
Eclipse directory. The workspace directory will only
appear if you have already run Eclipse. Note that removing the
workspace directory will cause Eclipse to 'forget'
about any projects that you may have set up
If, when building, the Problem tab shows "Assert cannot be resolved", then the problem is that Junit is not being found.
If you have problems where clicking on build briefly flashes up
a window, look in $PTII/.classpath for and empty
exclusion that looks like ||
If you have problems with the classpath, look in the
workspace/.metadata/log file that is in
the directory where eclipse is installed. For more information
about the .metadata directory, see
below.
Basically, when eclipse starts up, it might try to update
H:/workspace/.metadata
. The solution is covered in
http://www.eclipse.org/documentation/html/plugins/org.eclipse.platform.doc.user/doc/tasks/running_eclipse.htm:
The way I figured this out was by running Norton Antivirus and
doing View -> File System Realtime Scan Statistics and then I noticed
that my machine was updating H:/workspace/.metadata
I think I introduced the problem by clicking on the Eclipse.exe binary and selecting Pin to Start Menu. My solution was to remove the Eclipse bogus entry in the start menu and then create a shortcut, change Start in property and then pin that shortcut to my start menu.
Based on text by Mehran Meschian. See
also
Adding An Actor to Ptolemy II
at $PTII/doc/coding/addinganactor.htm.
In this example, we copy ptolemy/actor/lib/Ramp.java and create a new actor
called Ramp2
<property name="_icon" class="ptolemy.vergil.icon.AttributeValueIcon">
<property name="attributeName" value="function"/>
<property name="displayWidth" value="11"/>
</property>
</entity>
<entity name="Bmh" class="ptolemy.actor.lib.string.Bmh">
<doc>Boyer Moore Horspool</doc>
</entity>
<entity name="StringIndexOf" class="ptolemy.actor.lib.string.StringIndexOf">
<doc>Output the length of an input string</doc>
</entity>
PTDIST = $(PTPACKAGE)$(PTVERSION)
PTCLASSJAR = $(PTPACKAGE).jar
# Keep this list alphabetized.
JSRCS = \
Bmh.java \
StringCompare.java \
StringFunction.java \
StringIndexOf.java \
StringLength.java \
StringMatches.java \
$PTII/doc/coding/style_index.htm for details, but the main tasks are:
makefile.ant. If the core of Ptolemy II depends on the
new file, then it may be necessary to add the new file to
$PTII/pt-modules/projects/pt-akore/pt-jar.files. This file is used to build the jar file uses for Eclipse Ptolemy modules.