JBoss Tools SVN: r5787 - trunk/tests/plugins/org.jboss.tools.test.product.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-17 18:44:20 -0500 (Thu, 17 Jan 2008)
New Revision: 5787
Modified:
trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini
Log:
rollback fake test product from build
Modified: trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini 2008-01-17 21:38:00 UTC (rev 5786)
+++ trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini 2008-01-17 23:44:20 UTC (rev 5787)
@@ -38,3 +38,7 @@
# Enables the build id to show up via the default EclipseSplashHandler
# org.eclipse.ui.workbench/SHOW_BUILDID_ON_STARTUP=true
+
+org.eclipse.ui.workbench/WELCOME_DIALOG=false
+
+org.eclipse.ui/WELCOME_DIALOG=false
16 years, 8 months
JBoss Tools SVN: r5786 - trunk/tests/plugins/org.jboss.tools.test.product.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-17 16:38:00 -0500 (Thu, 17 Jan 2008)
New Revision: 5786
Modified:
trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct
trunk/tests/plugins/org.jboss.tools.test.product/config.ini
trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties
Log:
All mentions of JBDS are removed
tests.map path error for org.jboss.tools.test.product fixed
Modified: trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct 2008-01-17 20:58:00 UTC (rev 5785)
+++ trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct 2008-01-17 21:38:00 UTC (rev 5786)
@@ -2,4 +2,4 @@
version=1.0.0
name=JBoss Tools Test
-id=org.jboss.tools.product
+id=org.jboss.tools.test.product.product
Modified: trunk/tests/plugins/org.jboss.tools.test.product/config.ini
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/config.ini 2008-01-17 20:58:00 UTC (rev 5785)
+++ trunk/tests/plugins/org.jboss.tools.test.product/config.ini 2008-01-17 21:38:00 UTC (rev 5786)
@@ -44,7 +44,7 @@
# The product to run. A given Eclipse configuration may contain many products.
# The product identified will supply the branding (window icons, title bar text) etc
# as well as define the default application to run.
-eclipse.product=com.jboss.jbds.product.product
+eclipse.product=com.jboss.tools.test.product.product
# The application to run. The value specified here is the id of the application extension
# the runtime will find, instantiate and execute once the system is up. Note that typically
Modified: trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties 2008-01-17 20:58:00 UTC (rev 5785)
+++ trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties 2008-01-17 21:38:00 UTC (rev 5786)
@@ -1,18 +1,2 @@
-aboutText=JBoss Developer Studio\n\
-\n\
-Version: CR1\n\
-Build id: 1.0.0\n\
-\n\
-(c) Red Hat Middleware LLC, Eclipse contributors, and others 2006.\n\
-Homepage: http://labs.jboss.com/portal/rhdevstudio\n\
-User Forums: http://jboss.com/index.html?module=bb&op=viewforum&f=201\n
+aboutText=JBoss Tools Test Product
-actionSets.online_help.label=JBoss Developer Studio Help
-
-introTitle=Welcome to\nJBoss Developer Studio
-#introBrandingImage=product:ico_16_jbds.png
-introBrandingImage=product:ico_32_jbds.png
-introBrandingImage=ico_16_jbds.png
-introBrandingImage=ico_32_jbds.png
-introBrandingImageText=Red Hat
-
16 years, 8 months
JBoss Tools SVN: r5785 - trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-17 15:58:00 -0500 (Thu, 17 Jan 2008)
New Revision: 5785
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
Log:
more fix to svn mixup
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2008-01-17 20:46:43 UTC (rev 5784)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2008-01-17 20:58:00 UTC (rev 5785)
@@ -13,6 +13,6 @@
assertEquals("from Test where t.x = #{customer.id", ELTransformer.removeEL("from Test where t.x = #{customer.id"));
assertEquals("from Test where t.x = :_customer_id_ and x = :_id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id} and x = #{id} "));
assertEquals("from Test where t.x = :_customer_id_and_x_____id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id and x = #{id} "));
- assertEquals("from Test where t.x = :_id_____", ELTransformer.removeEL("from Test where t.x = #{id+-&*()}"));
+ assertEquals("from Test where t.x = :_id_______", ELTransformer.removeEL("from Test where t.x = #{id+-&*()}"));
}
}
\ No newline at end of file
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2008-01-17 20:46:43 UTC (rev 5784)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2008-01-17 20:58:00 UTC (rev 5785)
@@ -126,7 +126,7 @@
@Override
protected void tearDown() throws Exception {
ccfg.reset();
- //super.tearDown();
+ super.tearDown();
}
public void testHQLDetector() throws JavaModelException {
16 years, 8 months
JBoss Tools SVN: r5784 - in trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test: META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-17 15:46:43 -0500 (Thu, 17 Jan 2008)
New Revision: 5784
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
Log:
clean up bad commit
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF 2008-01-17 20:25:36 UTC (rev 5783)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF 2008-01-17 20:46:43 UTC (rev 5784)
@@ -7,11 +7,11 @@
org.eclipse.core.runtime,
org.hibernate.eclipse.console.test,
org.hibernate.eclipse.console,
- org.hibernate.eclipse.jdt.ui,
org.hibernate.eclipse,
org.junit,
org.eclipse.core.resources,
org.eclipse.jdt.core,
+ org.hibernate.eclipse.jdt.ui,
org.eclipse.jdt.launching
Eclipse-LazyStart: true
Export-Package: org.hibernate.eclipse.jdt.ui.test
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties 2008-01-17 20:25:36 UTC (rev 5783)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties 2008-01-17 20:46:43 UTC (rev 5784)
@@ -1,5 +1,4 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
- .,\
- testresources/
+ .
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2008-01-17 20:25:36 UTC (rev 5783)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2008-01-17 20:46:43 UTC (rev 5784)
@@ -13,6 +13,6 @@
assertEquals("from Test where t.x = #{customer.id", ELTransformer.removeEL("from Test where t.x = #{customer.id"));
assertEquals("from Test where t.x = :_customer_id_ and x = :_id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id} and x = #{id} "));
assertEquals("from Test where t.x = :_customer_id_and_x_____id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id and x = #{id} "));
- assertEquals("from Test where t.x = :_id_______", ELTransformer.removeEL("from Test where t.x = #{id+-&*()}"));
+ assertEquals("from Test where t.x = :_id_____", ELTransformer.removeEL("from Test where t.x = #{id+-&*()}"));
}
}
\ No newline at end of file
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2008-01-17 20:25:36 UTC (rev 5783)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2008-01-17 20:46:43 UTC (rev 5784)
@@ -10,28 +10,23 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.core.dom.CompilationUnit;
-import org.eclipse.jdt.internal.core.JavaProject;
import org.eclipse.jdt.launching.JavaRuntime;
import org.hibernate.HibernateException;
import org.hibernate.console.ConsoleConfiguration;
-import org.hibernate.console.HibernateConsoleRuntimeException;
import org.hibernate.console.KnownConfigurations;
import org.hibernate.console.preferences.ConsoleConfigurationPreferences.ConfigurationMode;
import org.hibernate.eclipse.console.EclipseConsoleConfiguration;
import org.hibernate.eclipse.console.EclipseConsoleConfigurationPreferences;
import org.hibernate.eclipse.console.test.HibernateConsoleTest;
-import org.hibernate.eclipse.console.test.HibernateConsoleTestPlugin;
import org.hibernate.eclipse.console.test.SimpleTestProject;
import org.hibernate.eclipse.console.test.xpl.JavaProjectHelper;
import org.hibernate.eclipse.console.utils.ProjectUtils;
@@ -131,7 +126,7 @@
@Override
protected void tearDown() throws Exception {
ccfg.reset();
- super.tearDown();
+ //super.tearDown();
}
public void testHQLDetector() throws JavaModelException {
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java 2008-01-17 20:25:36 UTC (rev 5783)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java 2008-01-17 20:46:43 UTC (rev 5784)
@@ -65,4 +65,5 @@
throw new CoreException(new Status(IStatus.ERROR, getBundle().getSymbolicName(), IStatus.ERROR, e.getMessage(), e));
}
}
+
}
16 years, 8 months
JBoss Tools SVN: r5783 - trunk/tests/features/org.jboss.tools.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-17 15:25:36 -0500 (Thu, 17 Jan 2008)
New Revision: 5783
Modified:
trunk/tests/features/org.jboss.tools.test.feature/feature.xml
Log:
Plug-in org.jboss.tools.test.product added to build
testBuild.xml scriptnow use "-product org.jboss.tools.test.product.product" to start tests with SWT based welcome screen
Modified: trunk/tests/features/org.jboss.tools.test.feature/feature.xml
===================================================================
--- trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2008-01-17 20:25:30 UTC (rev 5782)
+++ trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2008-01-17 20:25:36 UTC (rev 5783)
@@ -1,24 +1,24 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.jboss.tools.test_feature"
- label="Tools Tests"
- version="2.0.0">
-
- <description url="http://www.jboss.org/tools">
- JBossTools unit tests feature
- </description>
-
- <copyright>
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.test_feature"
+ label="Tools Tests"
+ version="2.0.0">
+
+ <description url="http://www.jboss.org/tools">
+ JBossTools unit tests feature
+ </description>
+
+ <copyright>
Copyright (c) 2007 Exadel, Inc and 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:
-Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- </copyright>
-
- <license url="http://www.eclipse.org/legal/epl-v10.html">
+Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ </copyright>
+
+ <license url="http://www.eclipse.org/legal/epl-v10.html">
Eclipse Public License - v 1.0
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS
ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
@@ -214,134 +214,141 @@
No party to this Agreement will bring a legal action under this
Agreement more than one year after the cause of action arose.
Each party waives its rights to a jury trial in any resulting
-litigation.
- </license>
-
- <plugin
- id="org.jboss.tools.common.kb.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.common.model.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.common.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.common.verification.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.text.ext.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.verification.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jst.web.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.vpe.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jst.web.ui.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.seam.core.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.seam.ui.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.vpe.xulrunner.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.richfaces.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.ui.test"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.facelets.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.jsf.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.seam.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.html.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.struts.vpe.struts.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
-</feature>
+litigation.
+ </license>
+
+ <plugin
+ id="org.jboss.tools.common.kb.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.common.model.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.common.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.common.verification.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.text.ext.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.verification.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jst.web.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.vpe.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jst.web.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.seam.core.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.seam.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.vpe.xulrunner.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.richfaces.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.facelets.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.jsf.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.seam.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.html.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.struts.vpe.struts.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.test.product"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
16 years, 8 months
JBoss Tools SVN: r5782 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.html.test and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-17 15:25:30 -0500 (Thu, 17 Jan 2008)
New Revision: 5782
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.html.test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/
trunk/seam/docs/
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/
Log:
bin/build ignore
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test
___________________________________________________________________
Name: svn:ignore
+ bin
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.html.test
___________________________________________________________________
Name: svn:ignore
+ bin
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test
___________________________________________________________________
Name: svn:ignore
+ bin
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test
___________________________________________________________________
Name: svn:ignore
+ bin
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test
___________________________________________________________________
Name: svn:ignore
+ bin
Property changes on: trunk/seam/docs
___________________________________________________________________
Name: svn:ignore
+ build
Property changes on: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test
___________________________________________________________________
Name: svn:ignore
+ bin
16 years, 8 months
JBoss Tools SVN: r5781 - in trunk/hibernatetools: plugins/org.hibernate.eclipse.jdt.ui/META-INF and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-17 15:14:50 -0500 (Thu, 17 Jan 2008)
New Revision: 5781
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.classpath
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.project
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/testresources/
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/testresources/ejb3-persistence.jar
Modified:
trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLExpressionCompilerParticipant.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLProblem.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1533
HQL validation now "ignores" EL expressions by replacing #{bla blah} with :_bla_bla_ so it looks like a named parameter.
+ proper tests.
Modified: trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml
===================================================================
--- trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml 2008-01-17 20:13:53 UTC (rev 5780)
+++ trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml 2008-01-17 20:14:50 UTC (rev 5781)
@@ -23,4 +23,11 @@
install-size="0"
version="0.0.0"/>
+ <plugin
+ id="org.hibernate.eclipse.jdt.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
</feature>
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANIFEST.MF 2008-01-17 20:13:53 UTC (rev 5780)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANIFEST.MF 2008-01-17 20:14:50 UTC (rev 5781)
@@ -18,3 +18,5 @@
org.hibernate.eclipse,
org.hibernate.eclipse.console
Eclipse-LazyStart: true
+Export-Package: org.hibernate.eclipse.jdt.ui,
+ org.hibernate.eclipse.jdt.ui.internal
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,27 @@
+package org.hibernate.eclipse.jdt.ui.internal;
+
+public class ELTransformer {
+
+ /**
+ * transform any #{el expressions} into named parameters so HQL validation won't fail on it.
+ * @param hql
+ * @return
+ */
+ static public String removeEL(String hql) {
+ int elStart = hql.indexOf("#{");
+ int next = hql.indexOf("}", elStart);
+
+ while(elStart!=-1 && next!=-1) {
+ String result = hql.substring(0, elStart);
+ result += ":_" + hql.substring(elStart+2, next).replaceAll("[^\\p{javaJavaIdentifierStart}]","_") + "_";
+ result += hql.substring(next+1);
+
+ hql = result;
+
+ elStart = hql.indexOf("#{");
+ next = hql.indexOf("}", elStart);
+ }
+
+ return hql;
+ }
+}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java 2008-01-17 20:13:53 UTC (rev 5780)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -43,7 +43,7 @@
if(value instanceof StringLiteral) {
StringLiteral sl = (StringLiteral)value;
try {
- checkQuery( consoleConfiguration, sl.getLiteralValue() );
+ checkQuery( consoleConfiguration, sl.getLiteralValue(), true );
} catch(RuntimeException re) {
problems.add(new HQLProblem(re.getLocalizedMessage(), true, resource, sl.getStartPosition(), sl.getStartPosition()+sl.getLength()-1, getLineNumber(sl.getStartPosition())));
}
@@ -81,7 +81,7 @@
StringLiteral sl = (StringLiteral) object;
String literalValue = sl.getLiteralValue();
try {
- checkQuery( consoleConfiguration, literalValue );
+ checkQuery( consoleConfiguration, literalValue, true );
} catch(RuntimeException re) {
problems.add(new HQLProblem(re.getLocalizedMessage(), true, resource, sl.getStartPosition(), sl.getStartPosition()+sl.getLength()-1, getLineNumber( sl.getStartPosition() )));
}
@@ -96,14 +96,25 @@
}
}
- private void checkQuery(ConsoleConfiguration cc, String query) {
+ /**
+ * Given a ConsoleConfiguration and a query this method validates the query through hibernate if a sessionfactory is available.
+ * @param cc
+ * @param query
+ * @param allowEL if true, EL syntax will be replaced as a named variable
+ * @throws HibernteException if something is wrong with the query
+ */
+ public static void checkQuery(ConsoleConfiguration cc, String query, boolean allowEL) {
if(cc!=null && cc.isSessionFactoryCreated()) {
+ if(allowEL) {
+ query = ELTransformer.removeEL(query);
+ }
new HQLQueryPlan(query, false, Collections.EMPTY_MAP, (SessionFactoryImpl)cc.getSessionFactory());
} else {
//messager.printWarning( annoValue.getPosition(), "Could not verify syntax. SessionFactory not created." );
}
}
+
public List getProblems() {
return problems;
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLExpressionCompilerParticipant.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLExpressionCompilerParticipant.java 2008-01-17 20:13:53 UTC (rev 5780)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLExpressionCompilerParticipant.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -1,9 +1,5 @@
package org.hibernate.eclipse.jdt.ui.internal;
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.compiler.BuildContext;
@@ -15,15 +11,13 @@
import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.hibernate.console.ConsoleConfiguration;
-import org.hibernate.eclipse.console.HibernateConsolePlugin;
import org.hibernate.eclipse.console.utils.ProjectUtils;
-import org.hibernate.eclipse.jdt.ui.Activator;
import org.hibernate.eclipse.nature.HibernateNature;
public class HQLExpressionCompilerParticipant extends CompilationParticipant {
public HQLExpressionCompilerParticipant() {
- // TODO Auto-generated constructor stub
+
}
protected CompilationUnit parse(ICompilationUnit unit) {
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLProblem.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLProblem.java 2008-01-17 20:13:53 UTC (rev 5780)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLProblem.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -5,7 +5,7 @@
import org.eclipse.jdt.core.compiler.IProblem;
import org.hibernate.eclipse.jdt.ui.Activator;
-class HQLProblem extends CategorizedProblem implements IProblem
+public class HQLProblem extends CategorizedProblem implements IProblem
{
private int startingOffset;
private int endingOffset;
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test
___________________________________________________________________
Name: svn:ignore
+ bin
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.classpath
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.classpath (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.classpath 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
+ <accessrules>
+ <accessrule kind="accessible" pattern="**/internal/**"/>
+ </accessrules>
+ </classpathentry>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.project
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.project (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/.project 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.hibernate.eclipse.jdt.ui.test</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/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MANIFEST.MF 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Hibernate Tools JDT integration Test Plug-in
+Bundle-SymbolicName: org.hibernate.eclipse.jdt.ui.test
+Bundle-Version: 1.0.0
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.hibernate.eclipse.console.test,
+ org.hibernate.eclipse.console,
+ org.hibernate.eclipse.jdt.ui,
+ org.hibernate.eclipse,
+ org.junit,
+ org.eclipse.core.resources,
+ org.eclipse.jdt.core,
+ org.eclipse.jdt.launching
+Eclipse-LazyStart: true
+Export-Package: org.hibernate.eclipse.jdt.ui.test
+Bundle-Activator: org.hibernate.eclipse.jdt.ui.test.HibernateJDTuiTestPlugin
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/build.properties 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ testresources/
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,18 @@
+package org.hibernate.eclipse.jdt.ui.test;
+
+import org.hibernate.eclipse.jdt.ui.internal.ELTransformer;
+
+import junit.framework.TestCase;
+
+public class ELTransformerTest extends TestCase {
+
+ public void testTransformer() {
+
+ assertEquals("from Test", ELTransformer.removeEL("from Test"));
+ assertEquals("from Test where t.x = :_customer_id_", ELTransformer.removeEL("from Test where t.x = #{customer.id}"));
+ assertEquals("from Test where t.x = #{customer.id", ELTransformer.removeEL("from Test where t.x = #{customer.id"));
+ assertEquals("from Test where t.x = :_customer_id_ and x = :_id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id} and x = #{id} "));
+ assertEquals("from Test where t.x = :_customer_id_and_x_____id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id and x = #{id} "));
+ assertEquals("from Test where t.x = :_id_______", ELTransformer.removeEL("from Test where t.x = #{id+-&*()}"));
+ }
+}
\ No newline at end of file
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,175 @@
+package org.hibernate.eclipse.jdt.ui.test;
+
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.ICompilationUnit;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jdt.core.dom.AST;
+import org.eclipse.jdt.core.dom.ASTNode;
+import org.eclipse.jdt.core.dom.ASTParser;
+import org.eclipse.jdt.core.dom.CompilationUnit;
+import org.eclipse.jdt.internal.core.JavaProject;
+import org.eclipse.jdt.launching.JavaRuntime;
+import org.hibernate.HibernateException;
+import org.hibernate.console.ConsoleConfiguration;
+import org.hibernate.console.HibernateConsoleRuntimeException;
+import org.hibernate.console.KnownConfigurations;
+import org.hibernate.console.preferences.ConsoleConfigurationPreferences.ConfigurationMode;
+import org.hibernate.eclipse.console.EclipseConsoleConfiguration;
+import org.hibernate.eclipse.console.EclipseConsoleConfigurationPreferences;
+import org.hibernate.eclipse.console.test.HibernateConsoleTest;
+import org.hibernate.eclipse.console.test.HibernateConsoleTestPlugin;
+import org.hibernate.eclipse.console.test.SimpleTestProject;
+import org.hibernate.eclipse.console.test.xpl.JavaProjectHelper;
+import org.hibernate.eclipse.console.utils.ProjectUtils;
+import org.hibernate.eclipse.jdt.ui.internal.HQLDetector;
+import org.hibernate.eclipse.jdt.ui.internal.HQLProblem;
+
+public class HQLQueryValidatorTest extends HibernateConsoleTest {
+
+
+ private ConsoleConfiguration ccfg;
+
+ public HQLQueryValidatorTest(String name) {
+ super(name);
+ }
+
+ @Override
+ protected SimpleTestProject createTestProject() {
+ return new SimpleTestProject("hqlquerytest") {
+
+ @Override
+ protected void buildSimpleTestProject() throws JavaModelException,
+ CoreException, IOException {
+ super.buildSimpleTestProject();
+
+
+ //set up project #3: file system structure with project as source folder
+ //add an internal jar
+ File ejb3lib= HibernateJDTuiTestPlugin.getDefault().getFileInPlugin(new Path("testresources/ejb3-persistence.jar")); //$NON-NLS-1$
+ assertTrue("ejb3 lib not found", ejb3lib != null && ejb3lib.exists()); //$NON-NLS-1$
+
+ JavaProjectHelper.addToClasspath(getIJavaProject(), JavaRuntime.getDefaultJREContainerEntry());
+
+ IPackageFragmentRoot addLibraryWithImport = JavaProjectHelper.addLibraryWithImport(getIJavaProject(), Path.fromOSString(ejb3lib.getPath()), null, null);
+
+ assertEquals(3,getIJavaProject().getRawClasspath().length);
+
+ getIProject().getFolder("src/META-INF").create(true, true, new NullProgressMonitor());
+ getIProject().getFile("src/META-INF/persistence.xml").create(
+ new ByteArrayInputStream(("<persistence>\n" +
+ " <persistence-unit name=\"manager1\" transaction-type=\"RESOURCE_LOCAL\">\n" +
+ " <class>test.TestClass</class>\n" +
+ " <properties>\n" +
+ " <property name=\"hibernate.dialect\" value=\"org.hibernate.dialect.HSQLDialect\"/>\n" +
+ " <property name=\"hibernate.connection.driver_class\" value=\"org.hsqldb.jdbcDriver\"/>\n" +
+ " <property name=\"hibernate.connection.username\" value=\"sa\"/>\n" +
+ " <property name=\"hibernate.connection.password\" value=\"\"/>\n" +
+ " <property name=\"hibernate.connection.url\" value=\"jdbc:hsqldb:.\"/>\n" +
+ " <property name=\"hibernate.query.startup_check\" value=\"false\"/>\n" +
+ " </properties>\n" +
+ " </persistence-unit>\n" +
+ "</persistence>").getBytes()),
+ false /* force */, new NullProgressMonitor());
+
+ getIProject().findMember("src/META-INF/persistence.xml");
+ getIProject().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+ }
+
+ @Override
+ protected IType buildType(IPackageFragment pack, String cuName)
+ throws JavaModelException {
+ ICompilationUnit cu = pack.createCompilationUnit(cuName,
+ "", false, null);
+
+ cu.createPackageDeclaration(pack.getElementName(),null);
+ IType type = cu.createType(
+ "@javax.persistence.NamedQuery(name=\"fromUnknown\", query=\"from Unknown\")\n" +
+ "@javax.persistence.Entity\n" +
+ "public class " + TYPE_NAME + " {}",null,false,null);
+ type.createField("@javax.persistence.Id private int id;",null,false,null);
+ type.createField("private String testField;",null,false,null);
+ type.createMethod("public String getTestField() {return this.testField;}",null,false,null);
+ type.createMethod("public void setTestField(String testField) {this.testField = testField;}",null,false,null);
+ return type;
+ }
+ };
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+
+ super.setUp();
+
+ String prjName = getProject().getIProject().getName();
+
+ EclipseConsoleConfigurationPreferences preferences = new EclipseConsoleConfigurationPreferences(prjName,
+ ConfigurationMode.JPA, prjName, true, null, null, null, new IPath[0], new IPath[0], null, null);
+
+ ccfg = KnownConfigurations.getInstance().addConfiguration(new EclipseConsoleConfiguration(preferences), false);
+
+ assertTrue(ProjectUtils.toggleHibernateOnProject(getProject().getIProject(), true, prjName));
+
+ ccfg.build();
+ ccfg.buildSessionFactory();
+
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ ccfg.reset();
+ super.tearDown();
+ }
+ public void testHQLDetector() throws JavaModelException {
+
+ ASTParser parser = ASTParser.newParser( AST.JLS3 );
+ parser.setKind( ASTParser.K_COMPILATION_UNIT );
+ parser.setSource( getProject().getTestClassType().getSource().toCharArray() );
+ parser.setResolveBindings( false );
+ ASTNode node = parser.createAST( null );
+ CompilationUnit cu = null;
+ if(node instanceof CompilationUnit) {
+ cu = (CompilationUnit) node;
+ }
+ HQLDetector hqlDetector = new HQLDetector(cu, ccfg, getProject().getTestClassType().getResource());
+ node.accept(hqlDetector);
+
+ assertEquals(1, hqlDetector.getProblems().size());
+
+ HQLProblem hqlProblem = (HQLProblem) hqlDetector.getProblems().get(0);
+ assertTrue(hqlProblem.getMessage().contains("from Unknown"));
+
+ }
+
+ public void testCheckQueryEL() {
+
+ HQLDetector.checkQuery(ccfg, "from java.lang.Object", false);
+ HQLDetector.checkQuery(ccfg, "from TestClass", false);
+
+ try {
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}", false);
+ fail("should have failed with EL expressions!");
+ } catch (HibernateException he) {
+ // ok
+ }
+
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}", true);
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field=}", true);
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id and field=}", true);
+ }
+
+
+}
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,68 @@
+package org.hibernate.eclipse.jdt.ui.test;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class HibernateJDTuiTestPlugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.hibernate.eclipse.jdt.ui.test";
+
+ // The shared instance
+ private static HibernateJDTuiTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public HibernateJDTuiTestPlugin() {
+ }
+
+ /*
+ * (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 HibernateJDTuiTestPlugin getDefault() {
+ return plugin;
+ }
+
+ public File getFileInPlugin(IPath path) throws CoreException {
+ try {
+ URL installURL= new URL(getBundle().getEntry("/"), path.toString());
+ URL localURL= FileLocator.toFileURL(installURL);
+ return new File(localURL.getFile());
+ } catch (IOException e) {
+ throw new CoreException(new Status(IStatus.ERROR, getBundle().getSymbolicName(), IStatus.ERROR, e.getMessage(), e));
+ }
+ }
+}
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java 2008-01-17 20:14:50 UTC (rev 5781)
@@ -0,0 +1,18 @@
+package org.hibernate.eclipse.jdt.ui.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class JDTuiAllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.hibernate.eclipse.jdt.ui.test");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(HQLQueryValidatorTest.class);
+ suite.addTestSuite(ELTransformerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/testresources/ejb3-persistence.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/testresources/ejb3-persistence.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 8 months
JBoss Tools SVN: r5780 - in trunk/tests/plugins/org.jboss.tools.test.product: META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-17 15:13:53 -0500 (Thu, 17 Jan 2008)
New Revision: 5780
Added:
trunk/tests/plugins/org.jboss.tools.test.product/.classpath
trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct
trunk/tests/plugins/org.jboss.tools.test.product/.project
trunk/tests/plugins/org.jboss.tools.test.product/License.txt
trunk/tests/plugins/org.jboss.tools.test.product/META-INF/
trunk/tests/plugins/org.jboss.tools.test.product/META-INF/MANIFEST.MF
trunk/tests/plugins/org.jboss.tools.test.product/about.html
trunk/tests/plugins/org.jboss.tools.test.product/build.properties
trunk/tests/plugins/org.jboss.tools.test.product/config.ini
trunk/tests/plugins/org.jboss.tools.test.product/eclipse.ini
trunk/tests/plugins/org.jboss.tools.test.product/intro/
trunk/tests/plugins/org.jboss.tools.test.product/intro/introContent.xml
trunk/tests/plugins/org.jboss.tools.test.product/intro/introData.xml
trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties
trunk/tests/plugins/org.jboss.tools.test.product/plugin.xml
trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini
trunk/tests/plugins/org.jboss.tools.test.product/src/
trunk/tests/plugins/org.jboss.tools.test.product/test.product
Log:
Added: trunk/tests/plugins/org.jboss.tools.test.product/.classpath
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/.classpath (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/.classpath 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="intro"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/.eclipseproduct 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,5 @@
+#Eclipse Product File
+
+version=1.0.0
+name=JBoss Tools Test
+id=org.jboss.tools.product
Added: trunk/tests/plugins/org.jboss.tools.test.product/.project
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/.project (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/.project 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.test.product</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>
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/License.txt
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/License.txt (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/License.txt 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1 @@
+The JBDS License!
\ No newline at end of file
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/License.txt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/META-INF/MANIFEST.MF
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/META-INF/MANIFEST.MF (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/META-INF/MANIFEST.MF 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss Tools Test Product
+Bundle-SymbolicName: org.jboss.tools.test.product;singleton:=true
+Bundle-Version: 2.0.0
+Bundle-Vendor: JBoss, a division of Red Hat
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.ui.ide,
+ org.eclipse.ui.ide.application,
+ org.eclipse.ui.intro,
+ org.eclipse.ui.intro.universal,
+ org.eclipse.help,
+ org.eclipse.ui.cheatsheets
+Eclipse-LazyStart: true
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/about.html
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/about.html (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/about.html 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
+</BODY>
+</HTML>
\ No newline at end of file
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/about.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/build.properties
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/build.properties (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/build.properties 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,26 @@
+output.. = bin/
+bin.includes = META-INF/,\
+ plugin.xml,\
+ plugin.properties,\
+ plugin_customization.ini,\
+ License.txt,\
+ .eclipseproduct,\
+ eclipse.ini,\
+ intro/,\
+ test.product,\
+ about.html,\
+ config.ini
+src.includes = License.txt,\
+ src/,\
+ plugin_customization.ini,\
+ plugin.xml,\
+ plugin.properties,\
+ eclipse.ini,\
+ config.ini,\
+ build.properties,\
+ META-INF/,\
+ .project,\
+ .eclipseproduct,\
+ .classpath,\
+ intro/
+jars.compile.order =
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/config.ini
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/config.ini (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/config.ini 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,58 @@
+# Eclipse runtime configuration file
+# This file contains a number of key/value pairs that are merged into the
+# System properties on system startup. The values control the way the
+# runtime is structured and runs.
+
+# Note: Only platform:/base/ and file: URLs are supported. In general the
+# URLs given may include a version number (e.g., .../location_1.2.3).
+# If a version is not specified, the system binds
+# to the location which matches exactly or to the versioned location with the
+# latest version number. If a version number is given then only exact matches
+# are considered.
+
+# The URL for the runtime entry point. The default value is
+# platform:/base/plugins/org.eclipse.osgi
+#osgi.framework = platform:/base/plugins/org.eclipse.osgi
+
+# The classpath for the framework found at the osgi.framework location. This
+# comma-separated list contains either URLs or simple element names. Simple
+# names are assumed to be relative to the framework's install directory.
+# Typically this value need not be set as it is initialized by the framework itself.
+# Version match searching is not done for URLs listed here.
+#osgi.frameworkClassPath =
+
+# The comma-separated list of locations to search for the splash screen file (splash.bmp).
+# For each list element a subdirectory structure based on the pattern nl/<locale> is searched.
+# The system binds to the first matching file. There is no default value.
+osgi.splashPath =
+
+# The location of the splash screen file. If this value is set at system startup it is used
+# in favour of the osgi.splashPath searching outlined above. If the value is not set
+# the searching is done and this key is bound to the result of the search.
+#osgi.splashLocation =
+
+# The comma-separated list of bundles which are automatically installed and optionally started
+# once the system is up and running. Each entry if of the form
+# <URL | simple bundle location>[@ [<startlevel>] [":start"]]
+# If the startlevel is omitted then the framework will use the default start level for the bundle.
+# If the "start" tag is added then the bundle will be marked as started after being installed.
+# Simple bundle locations are interepreted as relative to the framework's parent directory.
+# The startlevel indicates the OSGi start level at which the bundle should run.
+# If this value is not set, the system computes an appropriate default.
+osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start
+
+# The product to run. A given Eclipse configuration may contain many products.
+# The product identified will supply the branding (window icons, title bar text) etc
+# as well as define the default application to run.
+eclipse.product=com.jboss.jbds.product.product
+
+# The application to run. The value specified here is the id of the application extension
+# the runtime will find, instantiate and execute once the system is up. Note that typically
+# the identified eclipse.product defines the default application to run.
+#eclipse.application=
+
+# The default workspace location
+osgi.instance.area.default=(a)user.home/workspace
+
+# End of file marker - must be here
+eof=eof
\ No newline at end of file
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/config.ini
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/eclipse.ini
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/eclipse.ini (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/eclipse.ini 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,5 @@
+-vmargs
+-Xms128m
+-Xmx512m
+-XX:MaxPermSize=128m
+
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/eclipse.ini
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/intro/introContent.xml
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/intro/introContent.xml (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/intro/introContent.xml 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<introContent>
+
+ <page id="root">
+ </page>
+
+</introContent>
\ No newline at end of file
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/intro/introContent.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/intro/introData.xml
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/intro/introData.xml (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/intro/introData.xml 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<extensions>
+</extensions>
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/intro/introData.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,18 @@
+aboutText=JBoss Developer Studio\n\
+\n\
+Version: CR1\n\
+Build id: 1.0.0\n\
+\n\
+(c) Red Hat Middleware LLC, Eclipse contributors, and others 2006.\n\
+Homepage: http://labs.jboss.com/portal/rhdevstudio\n\
+User Forums: http://jboss.com/index.html?module=bb&op=viewforum&f=201\n
+
+actionSets.online_help.label=JBoss Developer Studio Help
+
+introTitle=Welcome to\nJBoss Developer Studio
+#introBrandingImage=product:ico_16_jbds.png
+introBrandingImage=product:ico_32_jbds.png
+introBrandingImage=ico_16_jbds.png
+introBrandingImage=ico_32_jbds.png
+introBrandingImageText=Red Hat
+
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/plugin.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/plugin.xml
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/plugin.xml (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/plugin.xml 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ id="product"
+ point="org.eclipse.core.runtime.products">
+ <product
+ application="org.jboss.tools.test.product.application"
+ name="JBoss Tools Tests">
+ <property
+ name="preferenceCustomization"
+ value="plugin_customization.ini"/>
+
+
+
+ </product>
+ </extension>
+ <extension
+ id="application"
+ point="org.eclipse.core.runtime.applications">
+ <application>
+ <run class="org.eclipse.ui.internal.ide.application.IDEApplication"/>
+ </application>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.intro">
+ <!-- intro
+ class="org.eclipse.ui.intro.config.CustomizableIntroPart"
+ id="com.jboss.jbds.product.intro">
+ </intro -->
+ <intro
+ class="org.eclipse.ui.intro.config.CustomizableIntroPart"
+ contentDetector="org.eclipse.ui.internal.intro.universal.contentdetect.ContentDetector"
+ id="org.jboss.tools.test.product.intro"/>
+
+ <introProductBinding
+ introId="org.jboss.tools.test.product.intro"
+ productId="org.jboss.tools.test.product.product">
+ </introProductBinding>
+ </extension>
+ <extension
+ point="org.eclipse.ui.intro.config">
+ <!--config
+ content="./intro/introContent.xml"
+ id="com.jboss.jbds.product.introConfigId"
+ introId="com.jboss.jbds.product.intro">
+ <presentation
+ home-page-id="root">
+ <implementation
+ kind="swt"
+ os="win32,macosx"
+ style="content/shared.css">
+ </implementation>
+ <implementation
+ kind="swt"
+ os="linux">
+ </implementation>
+ </presentation>
+ </config-->
+ <config
+ content="$nl$/intro/introContent.xml"
+ id="org.jboss.tools.test.product.introConfigId"
+ introId="org.jboss.tools.test.product.intro">
+ <presentation
+ home-page-id="root" standby-page-id="standby">
+ <implementation
+ kind="swt">
+ </implementation>
+ </presentation>
+ </config>
+
+ </extension>
+
+
+</plugin>
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/plugin.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,40 @@
+# plugin_customization.ini
+# sets default values for plug-in-specific preferences
+# keys are qualified by plug-in id
+# e.g., com.example.acmeplugin/myproperty=myvalue
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in plugin_customization.properties
+# This file does not need to be translated.
+
+# Property "org.eclipse.ui/defaultPerspectiveId" controls the
+# perspective that the workbench opens initially
+org.eclipse.ui/defaultPerspectiveId=org.jboss.tools.seam.ui.SeamPerspective
+
+# new-style tabs by default
+org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=false
+
+# put the perspective switcher on the top right
+org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight
+
+# show progress on startup
+org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP=true
+
+# use the window set by default
+org.eclipse.ui/USE_WINDOW_WORKING_SET_BY_DEFAULT=true
+
+# Intro-related preferences (since 3.2)
+
+# Welcome theme to use
+org.eclipse.ui.intro/INTRO_THEME = com.jboss.jbds.product.intro.jbds
+
+# Root page links to show in the Universal Welcome
+org.eclipse.ui.intro.universal/INTRO_ROOT_PAGES = gettingstarted,createnew,perspectives,webresources
+
+# Initial page layout of the Universal Welcome
+org.eclipse.ui.intro.universal/INTRO_DATA = product:intro/introData.xml
+
+# To enable Use External Browser preference
+# org.eclipse.ui.browser/browser-choice = 1
+
+# Enables the build id to show up via the default EclipseSplashHandler
+# org.eclipse.ui.workbench/SHOW_BUILDID_ON_STARTUP=true
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/plugin_customization.ini
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.test.product/test.product
===================================================================
--- trunk/tests/plugins/org.jboss.tools.test.product/test.product (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.test.product/test.product 2008-01-17 20:13:53 UTC (rev 5780)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.1"?>
+
+<product name="JBoss Developer Studio" id="org.jboss.tools.test.product.product" application="org.jboss.tools.test.product.application" useFeatures="false">
+
+ <aboutInfo>
+ <image path="about_jbds.jpg"/>
+ <text>
+ %aboutText
+ </text>
+ </aboutInfo>
+
+ <configIni use="default"/>
+
+ <launcherArgs>
+ <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
+ </launcherArgs>
+
+ <windowImages i16="/com.jboss.jbds.product/ico_16_jbds.gif" i32="/com.jboss.jbds.product/ico_32_jbds.gif"/>
+
+ <splash
+ location="com.jboss.jbds.product"
+ startupProgressRect="29,232,397,15"
+ startupMessageRect="29,215,417,20"
+ startupForegroundColor="ffffff" />
+ <launcher>
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+ <intro introId="com.jboss.jbds.product.intro"/>
+
+ <vm>
+ </vm>
+
+ <plugins>
+ <plugin id="com.ibm.icu"/>
+ <plugin id="org.eclipse.core.commands"/>
+ <plugin id="org.eclipse.core.contenttype"/>
+ <plugin id="org.eclipse.core.databinding"/>
+ <plugin id="org.eclipse.core.expressions"/>
+ <plugin id="org.eclipse.core.filesystem"/>
+ <plugin id="org.eclipse.core.filesystem.win32.x86"/>
+ <plugin id="org.eclipse.core.jobs"/>
+ <plugin id="org.eclipse.core.net"/>
+ <plugin id="org.eclipse.core.resources"/>
+ <plugin id="org.eclipse.core.resources.compatibility" fragment="true"/>
+ <plugin id="org.eclipse.core.resources.win32"/>
+ <plugin id="org.eclipse.core.runtime"/>
+ <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
+ <plugin id="org.eclipse.equinox.app"/>
+ <plugin id="org.eclipse.equinox.common"/>
+ <plugin id="org.eclipse.equinox.preferences"/>
+ <plugin id="org.eclipse.equinox.registry"/>
+ <plugin id="org.eclipse.help"/>
+ <plugin id="org.eclipse.jface"/>
+ <plugin id="org.eclipse.jface.databinding"/>
+ <plugin id="org.eclipse.jface.text"/>
+ <plugin id="org.eclipse.osgi"/>
+ <plugin id="org.eclipse.swt"/>
+ <plugin id="org.eclipse.swt.win32.win32.x86"/>
+ <plugin id="org.eclipse.text"/>
+ <plugin id="org.eclipse.ui"/>
+ <plugin id="org.eclipse.ui.forms"/>
+ <plugin id="org.eclipse.ui.ide"/>
+ <plugin id="org.eclipse.ui.ide.application"/>
+ <plugin id="org.eclipse.ui.intro"/>
+ <plugin id="org.eclipse.ui.navigator"/>
+ <plugin id="org.eclipse.ui.navigator.resources"/>
+ <plugin id="org.eclipse.ui.views"/>
+ <plugin id="org.eclipse.ui.views.properties.tabbed"/>
+ <plugin id="org.eclipse.ui.win32"/>
+ <plugin id="org.eclipse.ui.workbench"/>
+ <plugin id="org.eclipse.ui.workbench.texteditor"/>
+ <plugin id="org.eclipse.update.configurator"/>
+ <plugin id="org.eclipse.update.core"/>
+ <plugin id="org.eclipse.update.core.win32"/>
+ <plugin id="org.eclipse.update.ui"/>
+ <plugin id="org.jboss.tools.test.product"/>
+ </plugins>
+
+</product>
Property changes on: trunk/tests/plugins/org.jboss.tools.test.product/test.product
___________________________________________________________________
Name: svn:mime-type
+ text/plain
16 years, 8 months
JBoss Tools SVN: r5779 - in trunk/tests: plugins and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-17 15:13:34 -0500 (Thu, 17 Jan 2008)
New Revision: 5779
Added:
trunk/tests/plugins/
trunk/tests/plugins/org.jboss.tools.test.product/
Log:
Product that should be used during JUnut test execution to show SWT Welcome screan insteda of default one which is InternalBrowser based
16 years, 8 months
JBoss Tools SVN: r5778 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-17 14:33:19 -0500 (Thu, 17 Jan 2008)
New Revision: 5778
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-232 text correction
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml 2008-01-17 19:22:07 UTC (rev 5777)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml 2008-01-17 19:33:19 UTC (rev 5778)
@@ -188,7 +188,7 @@
]]></programlisting>
<para>If you come back to design mode you will see that the changes made are
automatically reflected in that mode.</para>
- <para>Actually you don't really need any config right now. You can clear the
+ <para>Actually you don't really need to do any configurations right now. You can clear the
web.xml file, save it and you'll still be able to launch your
application.</para>
</section>
16 years, 8 months