annotate runeclipse.sh @ 3604:e4175b8b85d3

IdealGraphVisualizer: work around a Swing/NetBeans tree UI problem that occurs when mouse events are handled while the tree model is changing, e.g. when using IGV while it still receives graphs from a compiler. BasicTreeUI attempts to get the boundaries for the node associated with the location on screen, but fails and tries to access a null Rectangle, causing a user-visible NullPointerException. By implementing equals() for GraphNode, nodes for graphs that are already in the tree are not removed and re-added when updating groups, and the exception can no longer be reproduced. This potentially also resolves some redraw issues.
author Peter Hofer <peter.hofer@jku.at>
date Mon, 31 Oct 2011 15:55:13 +0100
parents cda0630a8640
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3021
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
1 #!/bin/bash
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
2 if [ -z "${JDK7}" ]; then
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
3 echo "JDK7 is not defined."
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
4 exit 1;
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
5 fi
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
6 if [ -z "${MAXINE}" ]; then
3575
37daba6a4e5a Added criutils project to bootstrap classpath.
Doug Simon <doug.simon@oracle.com>
parents: 3551
diff changeset
7 echo "MAXINE is not defined. It must point to a Maxine repository directory."
3021
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
8 exit 1;
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
9 fi
3575
37daba6a4e5a Added criutils project to bootstrap classpath.
Doug Simon <doug.simon@oracle.com>
parents: 3551
diff changeset
10 if [ ! -f "${DACAPO}/dacapo-9.12-bach.jar" ]; then
37daba6a4e5a Added criutils project to bootstrap classpath.
Doug Simon <doug.simon@oracle.com>
parents: 3551
diff changeset
11 echo "DACAPO must point to a directory containing dacapo-9.12-bach.jar"
3021
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
12 exit 1;
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
13 fi
3551
7d9e3ee49ac9 Made default for GraalBailoutIsFatal "false".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents: 3543
diff changeset
14 COMMAND="${JDK7}/bin/java -graal -Xms1g -Xmx2g -esa -classpath ${DACAPO}/dacapo-9.12-bach.jar -XX:-GraalBailoutIsFatal -G:-QuietBailout $* Harness --preserve -n 15 eclipse"
3021
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
15 echo $COMMAND
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
16 $COMMAND
a197fd9e273c added run scripts
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff changeset
17 echo $COMMAND