aboutsummaryrefslogtreecommitdiffstats
path: root/hierarchyviewer2/app
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2011-05-05 11:20:26 -0700
committerRaphael Moll <ralf@android.com>2011-05-05 11:20:26 -0700
commit9cc8ad3950427ef751e8ff6c5c8de00910f0789d (patch)
tree1ff241953ecff5742c92d3bbb937fa4c3badbe44 /hierarchyviewer2/app
parent38d97f3b67fc379107a423eb507b46665556731b (diff)
downloadsdk-9cc8ad3950427ef751e8ff6c5c8de00910f0789d.zip
sdk-9cc8ad3950427ef751e8ff6c5c8de00910f0789d.tar.gz
sdk-9cc8ad3950427ef751e8ff6c5c8de00910f0789d.tar.bz2
Fix launchers for SDK tools using swtmenubar.
Change-Id: Iba5860db0a56ab508d1ce155d0e079ab37eb2bc9
Diffstat (limited to 'hierarchyviewer2/app')
-rwxr-xr-xhierarchyviewer2/app/etc/hierarchyviewer8
-rwxr-xr-xhierarchyviewer2/app/etc/hierarchyviewer.bat2
2 files changed, 7 insertions, 3 deletions
diff --git a/hierarchyviewer2/app/etc/hierarchyviewer b/hierarchyviewer2/app/etc/hierarchyviewer
index 9f31701..82304dc 100755
--- a/hierarchyviewer2/app/etc/hierarchyviewer
+++ b/hierarchyviewer2/app/etc/hierarchyviewer
@@ -76,7 +76,7 @@ if [ `uname` = "Linux" ]; then
export GDK_NATIVE_WINDOWS=true
fi
-jarpath="$frameworkdir/$jarfile"
+jarpath="$frameworkdir/$jarfile:$frameworkdir/swtmenubar.jar"
# Figure out the path to the swt.jar for the current architecture.
# if ANDROID_SWT is defined, then just use this.
@@ -103,4 +103,8 @@ fi
# need to use "java.ext.dirs" because "-jar" causes classpath to be ignored
# might need more memory, e.g. -Xmx128M
-exec "$javaCmd" -Xmx512M $os_opts $java_debug -Dcom.android.hierarchyviewer.bindir="$progdir" -classpath "$jarpath:$swtpath/swt.jar" com.android.hierarchyviewer.HierarchyViewerApplication "$@"
+exec "$javaCmd" \
+ -Xmx512M $os_opts $java_debug \
+ -Dcom.android.hierarchyviewer.bindir="$progdir" \
+ -classpath "$jarpath:$swtpath/swt.jar" \
+ com.android.hierarchyviewer.HierarchyViewerApplication "$@"
diff --git a/hierarchyviewer2/app/etc/hierarchyviewer.bat b/hierarchyviewer2/app/etc/hierarchyviewer.bat
index 0876d2f..8a14957 100755
--- a/hierarchyviewer2/app/etc/hierarchyviewer.bat
+++ b/hierarchyviewer2/app/etc/hierarchyviewer.bat
@@ -49,7 +49,7 @@ if debug NEQ "%1" goto NoDebug
shift 1
:NoDebug
-set jarpath=%frameworkdir%%jarfile%;%frameworkdir%hierarchyviewerlib.jar
+set jarpath=%frameworkdir%%jarfile%;%frameworkdir%hierarchyviewerlib.jar;%frameworkdir%swtmenubar.jar
if not defined ANDROID_SWT goto QueryArch
set swt_path=%ANDROID_SWT%