JBoss Tools SVN: r10317 - in documentation/trunk/movies: movies and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:06:14 -0400 (Wed, 17 Sep 2008)
New Revision: 10317
Added:
documentation/trunk/movies/cust_tag_lib_to_palette/
Removed:
documentation/trunk/movies/movies/cust_tag_lib_to_palette/
Log:
move 800 meg movies to its own "trunk"
Copied: documentation/trunk/movies/cust_tag_lib_to_palette (from rev 10316, documentation/trunk/movies/movies/cust_tag_lib_to_palette)
15 years, 9 months
JBoss Tools SVN: r10316 - in documentation/trunk/movies: movies and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:06:08 -0400 (Wed, 17 Sep 2008)
New Revision: 10316
Added:
documentation/trunk/movies/create_console_config/
Removed:
documentation/trunk/movies/movies/create_console_config/
Log:
move 800 meg movies to its own "trunk"
Copied: documentation/trunk/movies/create_console_config (from rev 10315, documentation/trunk/movies/movies/create_console_config)
15 years, 9 months
JBoss Tools SVN: r10315 - in documentation/trunk/movies: movies and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:06:02 -0400 (Wed, 17 Sep 2008)
New Revision: 10315
Added:
documentation/trunk/movies/archiving/
Removed:
documentation/trunk/movies/movies/archiving/
Log:
move 800 meg movies to its own "trunk"
Copied: documentation/trunk/movies/archiving (from rev 10314, documentation/trunk/movies/movies/archiving)
15 years, 9 months
JBoss Tools SVN: r10314 - in documentation/trunk/movies: movies and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:05:54 -0400 (Wed, 17 Sep 2008)
New Revision: 10314
Added:
documentation/trunk/movies/HQL_JPA-QL_queries/
Removed:
documentation/trunk/movies/movies/HQL_JPA-QL_queries/
Log:
move 800 meg movies to its own "trunk"
Copied: documentation/trunk/movies/HQL_JPA-QL_queries (from rev 10313, documentation/trunk/movies/movies/HQL_JPA-QL_queries)
15 years, 9 months
JBoss Tools SVN: r10313 - trunk/documentation and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:04:16 -0400 (Wed, 17 Sep 2008)
New Revision: 10313
Added:
documentation/trunk/movies/movies/
Removed:
trunk/documentation/movies/
Log:
move 800 meg movies to its own "trunk"
Copied: documentation/trunk/movies/movies (from rev 10312, trunk/documentation/movies)
15 years, 9 months
JBoss Tools SVN: r10312 - documentation/trunk.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:03:47 -0400 (Wed, 17 Sep 2008)
New Revision: 10312
Added:
documentation/trunk/movies/
Log:
root doc folder for larger documentation efforts like movies etc.
15 years, 9 months
JBoss Tools SVN: r10311 - documentation.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:02:53 -0400 (Wed, 17 Sep 2008)
New Revision: 10311
Added:
documentation/trunk/
Log:
root doc folder for larger documentation efforts like movies etc.
15 years, 9 months
JBoss Tools SVN: r10310 - /.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 07:02:34 -0400 (Wed, 17 Sep 2008)
New Revision: 10310
Added:
documentation/
Log:
root doc folder for larger documentation efforts like movies etc.
15 years, 9 months
JBoss Tools SVN: r10309 - in trunk: vpe/plugins/org.jboss.tools.xulrunner.initializer and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 06:50:39 -0400 (Wed, 17 Sep 2008)
New Revision: 10309
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/
Log:
svn:ignore bin
Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core
___________________________________________________________________
Name: svn:ignore
+ bin
Property changes on: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer
___________________________________________________________________
Name: svn:ignore
+ bin
15 years, 9 months
JBoss Tools SVN: r10308 - in trunk: common/plugins/org.jboss.tools.common.el.core/src and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-17 05:54:39 -0400 (Wed, 17 Sep 2008)
New Revision: 10308
Added:
trunk/common/plugins/org.jboss.tools.common.el.core/src/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java
Removed:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java
Log:
whoops - rollback accidential delete of src directories (JBIDE-2177)
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src)
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org)
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss)
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools)
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common)
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el)
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core)
Deleted: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java 2008-09-17 08:07:42 UTC (rev 10303)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -1,50 +0,0 @@
-package org.jboss.tools.common.el.core;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.tools.common.el";
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java)
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/Activator.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -0,0 +1,50 @@
+package org.jboss.tools.common.el.core;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.common.el";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Deleted: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java 2008-09-17 08:07:42 UTC (rev 10303)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -1,36 +0,0 @@
-package org.jboss.tools.common.el.core;
-
-
-import org.eclipse.core.runtime.QualifiedName;
-import org.jboss.tools.common.resref.core.ResourceReferenceList;
-
-
-/**
- * The Class ELReferenceList.
- */
-public class ELReferenceList extends ResourceReferenceList {
-
- /** The PROPERT y_ NAME. */
- private static QualifiedName PROPERTY_NAME = new QualifiedName("", "org.jboss.tools.vpe.editor.css.ELReference");
-
- /** The instance. */
- static ELReferenceList instance = new ELReferenceList();
-
- /**
- * Gets the instance.
- *
- * @return the instance
- */
- public static ELReferenceList getInstance() {
- return instance;
- }
-
- /**
- * Gets the property name.
- *
- * @return the property name
- */
- protected QualifiedName getPropertyName() {
- return PROPERTY_NAME;
- }
-}
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java)
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/ELReferenceList.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -0,0 +1,36 @@
+package org.jboss.tools.common.el.core;
+
+
+import org.eclipse.core.runtime.QualifiedName;
+import org.jboss.tools.common.resref.core.ResourceReferenceList;
+
+
+/**
+ * The Class ELReferenceList.
+ */
+public class ELReferenceList extends ResourceReferenceList {
+
+ /** The PROPERT y_ NAME. */
+ private static QualifiedName PROPERTY_NAME = new QualifiedName("", "org.jboss.tools.vpe.editor.css.ELReference");
+
+ /** The instance. */
+ static ELReferenceList instance = new ELReferenceList();
+
+ /**
+ * Gets the instance.
+ *
+ * @return the instance
+ */
+ public static ELReferenceList getInstance() {
+ return instance;
+ }
+
+ /**
+ * Gets the property name.
+ *
+ * @return the property name
+ */
+ protected QualifiedName getPropertyName() {
+ return PROPERTY_NAME;
+ }
+}
Deleted: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java 2008-09-17 08:07:42 UTC (rev 10303)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.common.el.core;
-
-import org.eclipse.core.runtime.QualifiedName;
-import org.jboss.tools.common.resref.core.ResourceReferenceList;
-
-/**
- * @author Evgenij Stherbin
- *
- */
-public class GlobalELReferenceList extends ResourceReferenceList {
- /** The PROPERT y_ NAME. */
- private static QualifiedName PROPERTY_NAME = new QualifiedName("", "org.jboss.tools.vpe.editor.css.GlobalELReference");
-
- /** The instance. */
- private static GlobalELReferenceList instance = new GlobalELReferenceList();
-
- /**
- * Gets the instance.
- *
- * @return the instance
- */
- public synchronized static GlobalELReferenceList getInstance() {
- return instance;
- }
-
- private GlobalELReferenceList() {
- super();
- }
-
- /**
- * Gets the property name.
- *
- * @return the property name
- */
- protected QualifiedName getPropertyName() {
- return PROPERTY_NAME;
- }
-
-
-}
Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java (from rev 10303, trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java)
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/GlobalELReferenceList.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.common.el.core;
+
+import org.eclipse.core.runtime.QualifiedName;
+import org.jboss.tools.common.resref.core.ResourceReferenceList;
+
+/**
+ * @author Evgenij Stherbin
+ *
+ */
+public class GlobalELReferenceList extends ResourceReferenceList {
+ /** The PROPERT y_ NAME. */
+ private static QualifiedName PROPERTY_NAME = new QualifiedName("", "org.jboss.tools.vpe.editor.css.GlobalELReference");
+
+ /** The instance. */
+ private static GlobalELReferenceList instance = new GlobalELReferenceList();
+
+ /**
+ * Gets the instance.
+ *
+ * @return the instance
+ */
+ public synchronized static GlobalELReferenceList getInstance() {
+ return instance;
+ }
+
+ private GlobalELReferenceList() {
+ super();
+ }
+
+ /**
+ * Gets the property name.
+ *
+ * @return the property name
+ */
+ protected QualifiedName getPropertyName() {
+ return PROPERTY_NAME;
+ }
+
+
+}
Copied: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src (from rev 10304, trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src)
Copied: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org (from rev 10304, trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org)
Copied: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse (from rev 10304, trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse)
Copied: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt (from rev 10304, trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt)
Copied: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser (from rev 10304, trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser)
Deleted: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java 2008-09-17 08:30:28 UTC (rev 10304)
+++ trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -1,55 +0,0 @@
-package org.eclipse.swt.browser;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Platform;
-import org.osgi.framework.Bundle;
-
-public class XULRunnerInitializer {
-
- private static final String XULRUNNER_PATH = "org.eclipse.swt.browser.XULRunnerPath";
- private static final String XULRUNNER_ENTRY = "/xulrunner";
-
- static {
- String xulrunnerPath = System.getProperty(XULRUNNER_PATH);
- if (xulrunnerPath != null) {
- File xulrunnerFile = new File(xulrunnerPath);
- if (!xulrunnerFile.exists()) {
- xulrunnerPath = null;
- }
- }
- if (xulrunnerPath == null) {
- String XULRUNNER_BUNDLE = (new StringBuffer("org.mozilla.xulrunner"))
- .append(".")
- .append(Platform.getWS())
- .append(".")
- .append(Platform.getOS())
- .append(Platform.OS_MACOSX.equals(Platform.getOS()) ? "" : (new StringBuffer(".")).append(Platform.getOSArch()).toString())
- .toString();
- Bundle xulRunnerBundle = Platform.getBundle(XULRUNNER_BUNDLE);
- if (xulRunnerBundle == null) {
- System.out.println("Bundle " + XULRUNNER_BUNDLE + " is not found.");
- } else {
- URL url = xulRunnerBundle.getEntry(XULRUNNER_ENTRY);
- if (url == null) {
- System.out.println("Bundle " + XULRUNNER_BUNDLE + " doesn't contain " + XULRUNNER_ENTRY);
- } else {
- File xulrunnerFile;
- try {
- URL url1 = FileLocator.resolve(url);
- xulrunnerFile = new File(FileLocator.toFileURL(url1)
- .getFile());
- xulrunnerPath = xulrunnerFile.getAbsolutePath();
- System.setProperty(XULRUNNER_PATH, xulrunnerPath);
- } catch (IOException ioe) {
- System.out.println("Cannot get path to XULRunner from bundle " + XULRUNNER_BUNDLE);
- ioe.printStackTrace();
- }
- }
- }
- }
- }
-}
Copied: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java (from rev 10304, trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java)
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/src/org/eclipse/swt/browser/XULRunnerInitializer.java 2008-09-17 09:54:39 UTC (rev 10308)
@@ -0,0 +1,55 @@
+package org.eclipse.swt.browser;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
+
+public class XULRunnerInitializer {
+
+ private static final String XULRUNNER_PATH = "org.eclipse.swt.browser.XULRunnerPath";
+ private static final String XULRUNNER_ENTRY = "/xulrunner";
+
+ static {
+ String xulrunnerPath = System.getProperty(XULRUNNER_PATH);
+ if (xulrunnerPath != null) {
+ File xulrunnerFile = new File(xulrunnerPath);
+ if (!xulrunnerFile.exists()) {
+ xulrunnerPath = null;
+ }
+ }
+ if (xulrunnerPath == null) {
+ String XULRUNNER_BUNDLE = (new StringBuffer("org.mozilla.xulrunner"))
+ .append(".")
+ .append(Platform.getWS())
+ .append(".")
+ .append(Platform.getOS())
+ .append(Platform.OS_MACOSX.equals(Platform.getOS()) ? "" : (new StringBuffer(".")).append(Platform.getOSArch()).toString())
+ .toString();
+ Bundle xulRunnerBundle = Platform.getBundle(XULRUNNER_BUNDLE);
+ if (xulRunnerBundle == null) {
+ System.out.println("Bundle " + XULRUNNER_BUNDLE + " is not found.");
+ } else {
+ URL url = xulRunnerBundle.getEntry(XULRUNNER_ENTRY);
+ if (url == null) {
+ System.out.println("Bundle " + XULRUNNER_BUNDLE + " doesn't contain " + XULRUNNER_ENTRY);
+ } else {
+ File xulrunnerFile;
+ try {
+ URL url1 = FileLocator.resolve(url);
+ xulrunnerFile = new File(FileLocator.toFileURL(url1)
+ .getFile());
+ xulrunnerPath = xulrunnerFile.getAbsolutePath();
+ System.setProperty(XULRUNNER_PATH, xulrunnerPath);
+ } catch (IOException ioe) {
+ System.out.println("Cannot get path to XULRunner from bundle " + XULRUNNER_BUNDLE);
+ ioe.printStackTrace();
+ }
+ }
+ }
+ }
+ }
+}
15 years, 9 months