JBoss Tools SVN: r10227 - trunk/hibernatetools/features/org.hibernate.eclipse.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-09-12 14:45:42 -0400 (Fri, 12 Sep 2008)
New Revision: 10227
Modified:
trunk/hibernatetools/features/org.hibernate.eclipse.feature/feature.xml
Log:
fix update site error. It builds two fremarker plugins with different versions during a build
Modified: trunk/hibernatetools/features/org.hibernate.eclipse.feature/feature.xml
===================================================================
--- trunk/hibernatetools/features/org.hibernate.eclipse.feature/feature.xml 2008-09-12 15:32:18 UTC (rev 10226)
+++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/feature.xml 2008-09-12 18:45:42 UTC (rev 10227)
@@ -421,7 +421,7 @@
<update label="JBossTools Update Site" url="http://download.jboss.org/jbosstools/updates/stable"/>
<discovery label="JBossTools Development Update Site" url="http://download.jboss.org/updates/development"/>
</url>
-
+
<requires>
<import plugin="org.eclipse.core.runtime" version="0.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jdt.ui" version="0.0.0" match="greaterOrEqual"/>
@@ -482,12 +482,6 @@
version="0.0.0"/>
<plugin
- id="org.jboss.ide.eclipse.freemarker"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
id="org.hibernate.eclipse.jdt.apt.ui"
download-size="0"
install-size="0"
17 years, 7 months
JBoss Tools SVN: r10226 - trunk/seam/tests/org.jboss.tools.seam.pages.xml.test.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-09-12 11:32:18 -0400 (Fri, 12 Sep 2008)
New Revision: 10226
Modified:
trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/.project
Log:
bad name in .project file fixed
Modified: trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/.project
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/.project 2008-09-12 15:15:06 UTC (rev 10225)
+++ trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/.project 2008-09-12 15:32:18 UTC (rev 10226)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>org.jboss.tools.seam.core.test</name>
+ <name>org.jboss.tools.seam.pages.xml.test</name>
<comment></comment>
<projects>
</projects>
17 years, 7 months
JBoss Tools SVN: r10225 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-09-12 11:15:06 -0400 (Fri, 12 Sep 2008)
New Revision: 10225
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
Log:
JBIDE-2639
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2008-09-12 12:20:10 UTC (rev 10224)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2008-09-12 15:15:06 UTC (rev 10225)
@@ -2214,8 +2214,6 @@
<XModelAttributeReference
attributes="name,value,converter,converter id"
entity="SeamPageParam12" name="param"/>
- <XModelAttribute PROPERTIES="id=true;category=general" name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general" name="value" xmlname="value"/>
<XModelAttribute PROPERTIES="category=general" name="validator" xmlname="validator"/>
<XModelAttribute PROPERTIES="category=general" name="validator id" xmlname="validatorId"/>
<XModelAttribute PROPERTIES="category=advanced" name="required" xmlname="required">
17 years, 7 months
JBoss Tools SVN: r10224 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-09-12 08:20:10 -0400 (Fri, 12 Sep 2008)
New Revision: 10224
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java
Log:
JBIDE-2737
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java 2008-09-12 12:09:56 UTC (rev 10223)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/helpers/SeamPagesDiagramHelper.java 2008-09-12 12:20:10 UTC (rev 10224)
@@ -100,9 +100,10 @@
XModelObject[] sourceExceptions = config.getChildByPath(FOLDER_EXCEPTIONS).getChildren();
for (int i = 0; i < sourceExceptions.length; i++) {
String code = sourceExceptions[i].getAttributeValue("class");
- XModelObject g = findOrCreateItem(code, code, TYPE_EXCEPTION);
+ String pp = "exception:" + code;
+ XModelObject g = findOrCreateItem(code, pp, TYPE_EXCEPTION);
((ReferenceObjectImpl)g).setReference(sourceExceptions[i]);
- exceptionItems.put(code, g);
+ exceptionItems.put(pp, g);
addTarget(sourceExceptions[i], false);
}
17 years, 7 months
JBoss Tools SVN: r10223 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-09-12 08:09:56 -0400 (Fri, 12 Sep 2008)
New Revision: 10223
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java
Log:
Took into account scroll position for show/hide icon on page view
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java 2008-09-12 11:57:02 UTC (rev 10222)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java 2008-09-12 12:09:56 UTC (rev 10223)
@@ -15,6 +15,7 @@
import org.eclipse.draw2d.ConnectionAnchor;
import org.eclipse.draw2d.FigureUtilities;
+import org.eclipse.draw2d.FreeformViewport;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
@@ -70,7 +71,10 @@
}
public void doMouseDown(Point mp) {
- Point mouseLocation = mp.scale(1/((GEFRootEditPart)editor.getScrollingGraphicalViewer().getRootEditPart()).getZoomManager().getZoom()).translate(-getPageFigure().getLocation().x, -getPageFigure().getLocation().y);
+ FreeformViewport diagram = (FreeformViewport)((GEFRootEditPart)editor.getScrollingGraphicalViewer().getRootEditPart()).getFigure();
+ Point mouseLocation = mp.scale(1/((GEFRootEditPart)editor.getScrollingGraphicalViewer().getRootEditPart()).getZoomManager().getZoom())
+ .translate(-getPageFigure().getLocation().x, -getPageFigure().getLocation().y)
+ .translate(diagram.getClientArea().getLocation());
if(mouseLocation.x < 15 && mouseLocation.y > getPageFigure().getSize().height-15){
getPageModel().setParamsVisible(!getPageModel().isParamsVisible());
refresh();
@@ -225,7 +229,7 @@
}
private int getVisualHeight() {
- return 11;
+ return 21;
}
private int getIconWidth() {
17 years, 7 months
JBoss Tools SVN: r10222 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-09-12 07:57:02 -0400 (Fri, 12 Sep 2008)
New Revision: 10222
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/ImageSelectionDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2762
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/ImageSelectionDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/ImageSelectionDialog.java 2008-09-12 11:41:11 UTC (rev 10221)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/ImageSelectionDialog.java 2008-09-12 11:57:02 UTC (rev 10222)
@@ -42,6 +42,7 @@
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.viewers.ViewerSorter;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.SWTException;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener;
@@ -655,7 +656,9 @@
gc.dispose();
}
} catch (IOException ev) {
-
+ //ignore
+ } catch (SWTException ex) {
+ //ignore (if select not image file)
} finally {
getShell().setCursor(parentCursor);
if(stream != null) {
17 years, 7 months
JBoss Tools SVN: r10221 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-09-12 07:41:11 -0400 (Fri, 12 Sep 2008)
New Revision: 10221
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
Log:
JBIDE-2748
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-09-12 11:16:53 UTC (rev 10220)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-09-12 11:41:11 UTC (rev 10221)
@@ -713,5 +713,21 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
-
-</vpe:templates>
\ No newline at end of file
+
+ <vpe:tag name="rich:ajaxValidator" case-sensitive="yes">
+ <vpe:template children="no" modify="no"/>
+ </vpe:tag>
+
+ <vpe:tag name="rich:beanValidator" case-sensitive="yes">
+ <vpe:template children="no" modify="no"/>
+ </vpe:tag>
+
+ <vpe:tag name="rich:graphValidator" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"/>
+ </vpe:tag>
+
+ <vpe:tag name="rich:hotKey" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"/>
+ </vpe:tag>
+
+</vpe:templates>
17 years, 7 months
JBoss Tools SVN: r10220 - in trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor: figures and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-09-12 07:16:53 -0400 (Fri, 12 Sep 2008)
New Revision: 10220
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2737
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java 2008-09-12 10:20:06 UTC (rev 10219)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/PageEditPart.java 2008-09-12 11:16:53 UTC (rev 10220)
@@ -205,8 +205,13 @@
if (getPageModel().getOutputLinks().size() == 0)
height = getVisualHeight() + NodeFigure.LINK_HEIGHT;
+
+ String name = getPageModel().getName();
+
+ if(name == null)
+ name = "";
- int width = getIconWidth()+FigureUtilities.getTextExtents(getPageModel().getName(), NodeFigure.nodeLabelFont).width;
+ int width = getIconWidth()+FigureUtilities.getTextExtents(name, NodeFigure.nodeLabelFont).width;
if(width < getMinimumWidth()) width = getMinimumWidth();
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java 2008-09-12 10:20:06 UTC (rev 10219)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java 2008-09-12 11:16:53 UTC (rev 10220)
@@ -166,10 +166,12 @@
protected void initCellEditor() {
NodeFigure figure = (NodeFigure) getEditPart().getFigure();
- if (figure instanceof PageFigure)
+ if (figure instanceof PageFigure && ((PageFigure) figure).page.getName() != null)
getCellEditor().setValue(((PageFigure) figure).page.getName());
- else if (figure instanceof ExceptionFigure)
+ else if (figure instanceof ExceptionFigure && ((ExceptionFigure) figure).exc.getName() != null)
getCellEditor().setValue(((ExceptionFigure) figure).exc.getName());
+ else
+ getCellEditor().setValue("");
ZoomManager zoomMgr = (ZoomManager) getEditPart().getViewer()
.getProperty(ZoomManager.class.toString());
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java 2008-09-12 10:20:06 UTC (rev 10219)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/figures/PageFigure.java 2008-09-12 11:16:53 UTC (rev 10220)
@@ -155,7 +155,7 @@
// pattern.dispose();
// }
- if(page != null){
+ if(page != null && page.getName() != null){
g.setFont(nodeLabelFont);
g.drawString(page.getName(), 27, 3);
}
17 years, 7 months
JBoss Tools SVN: r10219 - trunk/vpe/features/org.jboss.tools.xulrunner.feature.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-09-12 06:20:06 -0400 (Fri, 12 Sep 2008)
New Revision: 10219
Modified:
trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
Log:
JBIDE-1096 - VPE loading is failed after eclipse HTML Wlcome Screen
Modified: trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
===================================================================
--- trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2008-09-12 10:19:08 UTC (rev 10218)
+++ trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2008-09-12 10:20:06 UTC (rev 10219)
@@ -1,22 +1,22 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.jboss.tools.xulrunner.feature"
- label="XULRunner Feature"
- version="1.8.1.3-20070904"
- provider-name="JBoss, a division of Red Hat">
-
- <description url="http://jboss.org/tools">
- A feature that provides Mozilla's XULRunner as various platform-dependent plug-ins for Eclipse.
- </description>
-
- <copyright>
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.xulrunner.feature"
+ label="XULRunner Feature"
+ version="1.8.1.3-20070904"
+ provider-name="JBoss, a division of Red Hat">
+
+ <description url="http://jboss.org/tools">
+ A feature that provides Mozilla's XULRunner as various platform-dependent plug-ins for Eclipse.
+ </description>
+
+ <copyright>
JBoss, Home of Professional Open Source
Copyright 2006, JBoss Inc., and individual contributors as indicated
by the @authors tag. See the copyright.txt in the distribution
-for a full listing of individual contributors.
- </copyright>
-
- <license url="http://osdn.dl.sourceforge.net/sourceforge/jboss/LGPL.html">
+for a full listing of individual contributors.
+ </copyright>
+
+ <license url="http://osdn.dl.sourceforge.net/sourceforge/jboss/LGPL.html">
JBossTools is under the LGPL Licence
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
@@ -417,53 +417,61 @@
BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE
WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-END OF TERMS AND CONDITIONS
- </license>
-
- <url>
- <update label="JBossTools Update Site" url="http://download.jboss.org/jbosstools/updates/stable"/>
- <discovery label="JBossTools Development Update Site" url="http://download.jboss.org/updates/development"/>
- </url>
-
- <plugin
- id="org.mozilla.xpcom"
- download-size="0"
- install-size="0"
- version="1.8.1.3-20070904"/>
-
- <plugin
- id="org.mozilla.xulrunner.carbon.macosx"
- os="macosx"
- ws="carbon"
- download-size="0"
- install-size="0"
- version="1.8.1.3-20070904"/>
-
- <plugin
- id="org.mozilla.xulrunner.gtk.linux.x86"
- os="linux"
- ws="gtk"
- arch="x86"
- download-size="0"
- install-size="0"
- version="1.8.1.3-20070904"/>
-
- <plugin
- id="org.mozilla.xulrunner.gtk.linux.x86_64"
- os="linux"
- ws="gtk"
- arch="x86_64"
- download-size="0"
- install-size="0"
- version="1.8.1.4-20080112"/>
-
- <plugin
- id="org.mozilla.xulrunner.win32.win32.x86"
- os="win32"
- ws="win32"
- arch="x86"
- download-size="0"
- install-size="0"
- version="1.8.1.3-20070904"/>
-
-</feature>
+END OF TERMS AND CONDITIONS
+ </license>
+
+ <url>
+ <update label="JBossTools Update Site" url="http://download.jboss.org/jbosstools/updates/stable"/>
+ <discovery label="JBossTools Development Update Site" url="http://download.jboss.org/updates/development"/>
+ </url>
+
+ <plugin
+ id="org.mozilla.xpcom"
+ download-size="0"
+ install-size="0"
+ version="1.8.1.3-20070904"/>
+
+ <plugin
+ id="org.mozilla.xulrunner.carbon.macosx"
+ os="macosx"
+ ws="carbon"
+ download-size="0"
+ install-size="0"
+ version="1.8.1.3-20070904"/>
+
+ <plugin
+ id="org.mozilla.xulrunner.gtk.linux.x86"
+ os="linux"
+ ws="gtk"
+ arch="x86"
+ download-size="0"
+ install-size="0"
+ version="1.8.1.3-20070904"/>
+
+ <plugin
+ id="org.mozilla.xulrunner.gtk.linux.x86_64"
+ os="linux"
+ ws="gtk"
+ arch="x86_64"
+ download-size="0"
+ install-size="0"
+ version="1.8.1.4-20080112"/>
+
+ <plugin
+ id="org.mozilla.xulrunner.win32.win32.x86"
+ os="win32"
+ ws="win32"
+ arch="x86"
+ download-size="0"
+ install-size="0"
+ version="1.8.1.3-20070904"/>
+
+ <plugin
+ id="org.jboss.tools.xulrunner.initializer"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ fragment="true"
+ unpack="false"/>
+
+</feature>
17 years, 7 months
JBoss Tools SVN: r10218 - in trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer: META-INF and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-09-12 06:19:08 -0400 (Fri, 12 Sep 2008)
New Revision: 10218
Added:
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.classpath
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.project
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/META-INF/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/bin/
trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/build.properties
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
Log:
JBIDE-1096 - VPE loading is failed after eclipse HTML Wlcome Screen
Added: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.classpath
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.classpath (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.classpath 2008-09-12 10:19:08 UTC (rev 10218)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.project
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.project (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/.project 2008-09-12 10:19:08 UTC (rev 10218)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.xulrunner.initializer</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/META-INF/MANIFEST.MF (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/META-INF/MANIFEST.MF 2008-09-12 10:19:08 UTC (rev 10218)
@@ -0,0 +1,8 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: XULRunner Initializer
+Bundle-SymbolicName: org.jboss.tools.xulrunner.initializer
+Bundle-Version: 1.0.0
+Bundle-Vendor: Red Hat, Inc.
+Fragment-Host: org.eclipse.swt
+Require-Bundle: org.eclipse.core.runtime
Added: trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/build.properties
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/build.properties (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.xulrunner.initializer/build.properties 2008-09-12 10:19:08 UTC (rev 10218)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: 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-12 10:19:08 UTC (rev 10218)
@@ -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();
+ }
+ }
+ }
+ }
+ }
+}
17 years, 7 months