# HG changeset patch # User Eugene Ostroukhov # Date 1264455051 18000 # Node ID 464130c459357fea6b9e53973f7ceff5a36d0268 # Parent 9ece1ee268bd3e4fc5426631d21994f6e8cfc3b8 Linux support, first cut diff -r 9ece1ee268bd -r 464130c45935 org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/ChromeDebugUtils.java --- a/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/ChromeDebugUtils.java Fri Jan 22 10:39:13 2010 -0800 +++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/ChromeDebugUtils.java Mon Jan 25 16:30:51 2010 -0500 @@ -39,6 +39,8 @@ // Add more ifs as we add support for new platforms if (isMac()) { return "Google Chrome.app/Contents/MacOS/Google Chrome"; + } if (isLinux()) { + return "chrome"; } else { return "chrome.exe"; } @@ -63,4 +65,8 @@ public static boolean isMac() { return "macosx".equals(Platform.getOS()); } + + public static boolean isLinux() { + return "linux".equals(Platform.getOS()); + } } diff -r 9ece1ee268bd -r 464130c45935 org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/IConstants.java --- a/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/IConstants.java Fri Jan 22 10:39:13 2010 -0800 +++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/IConstants.java Mon Jan 25 16:30:51 2010 -0500 @@ -22,5 +22,5 @@ String PREF_NAME_CHROME_LOCATION="chrome.location"; String PROP_PROJECT_NAME = "projectName"; - public static final String WRT_PREVIEW_HTML = "wrt_preview_frame.html"; + public static final String WRT_PREVIEW_HTML = "wrt_preview_main.html"; } diff -r 9ece1ee268bd -r 464130c45935 org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/PreferenceInitializer.java --- a/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/PreferenceInitializer.java Fri Jan 22 10:39:13 2010 -0800 +++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/PreferenceInitializer.java Mon Jan 25 16:30:51 2010 -0500 @@ -39,6 +39,8 @@ private File getDefaultFolder() { if (ChromeDebugUtils.isMac()) { return new File("/Applications"); + } else if (ChromeDebugUtils.isLinux()) { + return new File("/opt/google/chrome"); } String property = System.getProperty("user.home"); File folder = new File(property, DEFAULT_CHROME_LOCATION); diff -r 9ece1ee268bd -r 464130c45935 org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/preview/PreviewView.java --- a/org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/preview/PreviewView.java Fri Jan 22 10:39:13 2010 -0800 +++ b/org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/preview/PreviewView.java Mon Jan 25 16:30:51 2010 -0500 @@ -183,7 +183,7 @@ } private boolean isWrtProject(IProject project) { - return project.getFile("wrt_preview_frame.html").exists(); + return project.getFile("wrt_preview_main.html").exists(); } private void loadPreferences() { diff -r 9ece1ee268bd -r 464130c45935 org.symbian.tools.wrttools.product/launch/WRT IDE (Product).launch --- a/org.symbian.tools.wrttools.product/launch/WRT IDE (Product).launch Fri Jan 22 10:39:13 2010 -0800 +++ b/org.symbian.tools.wrttools.product/launch/WRT IDE (Product).launch Mon Jan 25 16:30:51 2010 -0500 @@ -1,32 +1,32 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 9ece1ee268bd -r 464130c45935 org.symbian.tools.wrttools.product/wrt-ide.product --- a/org.symbian.tools.wrttools.product/wrt-ide.product Fri Jan 22 10:39:13 2010 -0800 +++ b/org.symbian.tools.wrttools.product/wrt-ide.product Mon Jan 25 16:30:51 2010 -0500 @@ -1,306 +1,307 @@ - - - - - - - - - %productBlurb - - - - - - - - -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} - -Xms128m -Xmx768m -XX:MaxPermSize=192m - -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts - - - - - - - - - - - - - - org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + %productBlurb + + + + + + + + -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} + -Xms128m -Xmx768m -XX:MaxPermSize=192m + -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts + + + + + + + + + + + + + + org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +