JBoss Tools SVN: r37823 - trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-01-13 08:53:17 -0500 (Fri, 13 Jan 2012)
New Revision: 37823
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties
Log:
Removing all commented lines in swtbot.properties
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties 2012-01-13 13:48:50 UTC (rev 37822)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties 2012-01-13 13:53:17 UTC (rev 37823)
@@ -1,18 +1 @@
-# SWTBotTest properties
-# all defined paths should exist
-#JAVA=1.6,/opt/sun-jdk-1.6.0.19/
-#EAP|JBOSS_AS,<server version>,<jre version to run with>|default,<server home>
SERVER=AS,6.0,default,../../../requirements/target/jboss-6.0.0.Final
-#SERVER=AS,7.0,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-as-7.0.1.Final
-#SERVER=EAP,5.1,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-eap-5.1/jboss-as
-#SERVER=EAP,5.1,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-eap-5.1.JBDS/jboss-as
-#SERVER=EAP,4.3,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-eap-4.3/jboss-as
-#SERVER=SOA,5.1,default,/home/lukas/latest/jboss-soa-p-5/jboss-as
-#<seam version>,<seam runtime home>
-#SEAM=2.2,/space/java/jboss-seam-2.2.1.CR1
-
-#/space/java/servers/jboss-5.1.0.GA
-#/home/lukas/latest/jboss-6.0.0.20100721-M4
-#/home/lukas/latest/jboss-6.0.0-SNAPSHOT
-#/home/lukas/latest/jboss-6.0.0.20100911-M5
-#/home/lukas/latest/jboss-6.0.0.Final
12 years, 12 months
JBoss Tools SVN: r37822 - in trunk/cdi/tests/org.jboss.tools.cdi.bot.test: properties and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-01-13 08:48:50 -0500 (Fri, 13 Jan 2012)
New Revision: 37822
Added:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTests.launch
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTestsMaven.launch
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTests.launch
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTestsMaven.launch
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTests.launch
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTestsMaven.launch
Removed:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml
Log:
Moving all config files (eclipse launchers + swtbot.properties) into properties folder
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml 2012-01-13 13:46:38 UTC (rev 37821)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml 2012-01-13 13:48:50 UTC (rev 37822)
@@ -11,7 +11,7 @@
<packaging>eclipse-test-plugin</packaging>
<properties>
- <systemProperties>-Dswtbot.test.properties.file=${swtbot.properties}</systemProperties>
+ <systemProperties>-Dswtbot.test.properties.file=${project.basedir}/properties/config_files/swtbot.properties</systemProperties>
<test.suite.class>org.jboss.tools.cdi.bot.test.CDIAllBotTests</test.suite.class>
</properties>
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/config_files/swtbot.properties 2012-01-13 13:48:50 UTC (rev 37822)
@@ -0,0 +1,18 @@
+# SWTBotTest properties
+# all defined paths should exist
+#JAVA=1.6,/opt/sun-jdk-1.6.0.19/
+#EAP|JBOSS_AS,<server version>,<jre version to run with>|default,<server home>
+SERVER=AS,6.0,default,../../../requirements/target/jboss-6.0.0.Final
+#SERVER=AS,7.0,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-as-7.0.1.Final
+#SERVER=EAP,5.1,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-eap-5.1/jboss-as
+#SERVER=EAP,5.1,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-eap-5.1.JBDS/jboss-as
+#SERVER=EAP,4.3,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-eap-4.3/jboss-as
+#SERVER=SOA,5.1,default,/home/lukas/latest/jboss-soa-p-5/jboss-as
+#<seam version>,<seam runtime home>
+#SEAM=2.2,/space/java/jboss-seam-2.2.1.CR1
+
+#/space/java/servers/jboss-5.1.0.GA
+#/home/lukas/latest/jboss-6.0.0.20100721-M4
+#/home/lukas/latest/jboss-6.0.0-SNAPSHOT
+#/home/lukas/latest/jboss-6.0.0.20100911-M5
+#/home/lukas/latest/jboss-6.0.0.Final
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTests.launch
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTests.launch (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTests.launch 2012-01-13 13:48:50 UTC (rev 37822)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<booleanAttribute key="com.mountainminds.eclemma.core.INPLACE_INSTRUMENTATION" value="true"/>
+<listAttribute key="com.mountainminds.eclemma.core.INSTRUMENTATION_PATHS">
+<listEntry value="/org.jboss.tools.cdi.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.solder.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.text.ext/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml.ui/bin"/>
+<listEntry value="/org.jboss.tools.cdi.ui/bin"/>
+</listAttribute>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDIAllBotTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.cdi.bot.test.CDIAllBotTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.cdi.bot.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms256m -Xmx512m -Dswtbot.test.properties.file=${env_var:HOME}/swtbot.properties -Dusage_reporting_enabled=false"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTestsMaven.launch
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTestsMaven.launch (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDIAllBotTestsMaven.launch 2012-01-13 13:48:50 UTC (rev 37822)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
+<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
+<stringAttribute key="M2_GOALS" value="clean install"/>
+<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
+<booleanAttribute key="M2_OFFLINE" value="false"/>
+<stringAttribute key="M2_PROFILES" value=""/>
+<listAttribute key="M2_PROPERTIES">
+<listEntry value="swtbot.test.skip=false"/>
+<listEntry value="swtbot.properties=/home/jjankovi/swtbot.properties"/>
+</listAttribute>
+<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
+<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
+<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
+<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29"/>
+<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.jboss.tools.cdi.bot.test}"/>
+</launchConfiguration>
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTests.launch
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTests.launch (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTests.launch 2012-01-13 13:48:50 UTC (rev 37822)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<booleanAttribute key="com.mountainminds.eclemma.core.INPLACE_INSTRUMENTATION" value="true"/>
+<listAttribute key="com.mountainminds.eclemma.core.INSTRUMENTATION_PATHS">
+<listEntry value="/org.jboss.tools.cdi.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.solder.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.text.ext/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml.ui/bin"/>
+<listEntry value="/org.jboss.tools.cdi.ui/bin"/>
+</listAttribute>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISeam3AllBotTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.cdi.bot.test.CDISeam3AllBotTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.cdi.bot.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms256m -Xmx512m -Dswtbot.test.properties.file=${env_var:HOME}/swtbot.properties -Dusage_reporting_enabled=false"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTestsMaven.launch
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTestsMaven.launch (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISeam3AllBotTestsMaven.launch 2012-01-13 13:48:50 UTC (rev 37822)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
+<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
+<stringAttribute key="M2_GOALS" value="clean install"/>
+<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
+<booleanAttribute key="M2_OFFLINE" value="false"/>
+<stringAttribute key="M2_PROFILES" value="-P seam3-bot-tests"/>
+<listAttribute key="M2_PROPERTIES">
+<listEntry value="swtbot.test.skip=false"/>
+<listEntry value="swtbot.properties=/home/jjankovi/swtbot.properties"/>
+</listAttribute>
+<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
+<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
+<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
+<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29"/>
+<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.jboss.tools.cdi.bot.test}"/>
+</launchConfiguration>
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTests.launch
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTests.launch (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTests.launch 2012-01-13 13:48:50 UTC (rev 37822)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<booleanAttribute key="com.mountainminds.eclemma.core.INPLACE_INSTRUMENTATION" value="true"/>
+<listAttribute key="com.mountainminds.eclemma.core.INSTRUMENTATION_PATHS">
+<listEntry value="/org.jboss.tools.cdi.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.solder.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.text.ext/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml.ui/bin"/>
+<listEntry value="/org.jboss.tools.cdi.ui/bin"/>
+</listAttribute>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.cdi.bot.test.CDISmokeBotTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.cdi.bot.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms256m -Xmx512m -Dswtbot.test.properties.file=${env_var:HOME}/swtbot.properties -Dusage_reporting_enabled=false"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTestsMaven.launch
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTestsMaven.launch (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/properties/launchers/CDISmokeBotTestsMaven.launch 2012-01-13 13:48:50 UTC (rev 37822)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
+<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
+<stringAttribute key="M2_GOALS" value="clean install"/>
+<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
+<booleanAttribute key="M2_OFFLINE" value="false"/>
+<stringAttribute key="M2_PROFILES" value="-P smoke-bot-tests"/>
+<listAttribute key="M2_PROPERTIES">
+<listEntry value="swtbot.test.skip=false"/>
+<listEntry value="swtbot.properties=/home/jjankovi/swtbot.properties"/>
+</listAttribute>
+<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
+<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
+<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
+<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29"/>
+<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.jboss.tools.cdi.bot.test}"/>
+</launchConfiguration>
12 years, 12 months
JBoss Tools SVN: r37821 - trunk/cdi/tests/org.jboss.tools.cdi.bot.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-01-13 08:46:38 -0500 (Fri, 13 Jan 2012)
New Revision: 37821
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/META-INF/MANIFEST.MF
Log:
Removing unnecessary dependencies from manifest
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/META-INF/MANIFEST.MF 2012-01-13 11:51:51 UTC (rev 37820)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/META-INF/MANIFEST.MF 2012-01-13 13:46:38 UTC (rev 37821)
@@ -10,7 +10,6 @@
org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
org.eclipse.swtbot.junit4_x;bundle-version="2.0.0",
org.eclipse.swtbot.swt.finder;bundle-version="2.0.0",
- org.hamcrest;bundle-version="1.1.0",
org.junit4;bundle-version="4.8.1",
org.apache.log4j;bundle-version="1.2.15",
org.eclipse.ui;bundle-version="3.6.0",
12 years, 12 months
JBoss Tools SVN: r37820 - trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2012-01-13 06:51:51 -0500 (Fri, 13 Jan 2012)
New Revision: 37820
Modified:
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
Log:
JBIDE-10270: Fixed NPE
Modified: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2012-01-13 11:07:05 UTC (rev 37819)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2012-01-13 11:51:51 UTC (rev 37820)
@@ -280,7 +280,9 @@
goToPath(((IResource)first).getLocation().toOSString());
} else if (first instanceof IJavaElement) {
try {
- goToPath(((IJavaElement)first).getCorrespondingResource().getLocation().toOSString());
+ IResource resource = ((IJavaElement)first).getCorrespondingResource();
+ if (resource == null) return false;
+ goToPath(resource.getLocation().toOSString());
} catch (JavaModelException e) {
ForgeUIPlugin.log(e);
return false;
12 years, 12 months
JBoss Tools SVN: r37819 - in trunk/forge/plugins/org.jboss.tools.forge.ui: icons and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2012-01-13 06:07:05 -0500 (Fri, 13 Jan 2012)
New Revision: 37819
Added:
trunk/forge/plugins/org.jboss.tools.forge.ui/icons/goto_obj.gif
trunk/forge/plugins/org.jboss.tools.forge.ui/icons/redo_edit.gif
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/GoToHandler.java
Modified:
trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
Log:
JBIDE-10270: Bring back the 'Show in Forge' functionality
Added: trunk/forge/plugins/org.jboss.tools.forge.ui/icons/goto_obj.gif
===================================================================
(Binary files differ)
Property changes on: trunk/forge/plugins/org.jboss.tools.forge.ui/icons/goto_obj.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/forge/plugins/org.jboss.tools.forge.ui/icons/redo_edit.gif
===================================================================
(Binary files differ)
Property changes on: trunk/forge/plugins/org.jboss.tools.forge.ui/icons/redo_edit.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml 2012-01-13 09:54:00 UTC (rev 37818)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml 2012-01-13 11:07:05 UTC (rev 37819)
@@ -46,9 +46,14 @@
name="Stop Forge"/>
<command
categoryId="org.jboss.tools.forge.ui"
- description="Link the currently selected item to the running Forge runtime"
+ description="Link the editor currently on top to the running Forge runtime"
id="org.jboss.tools.forge.ui.link"
- name="Link To Selection"/>
+ name="Link with Editor"/>
+ <command
+ categoryId="org.jboss.tools.forge.ui"
+ description="Instruct the running Forge runtime to go to the current selection"
+ id="org.jboss.tools.forge.ui.goto"
+ name="Go To Selection"/>
<command
categoryId="org.eclipse.ui.category.window"
defaultHandler="org.jboss.tools.forge.ui.commands.ForgeCommandListHandler"
@@ -77,12 +82,20 @@
tooltip="Stop the running Forge runtime">
</command>
<command
+ commandId="org.jboss.tools.forge.ui.goto"
+ icon="icons/goto_obj.gif"
+ label="Go to Selection"
+ mnemonic="G"
+ style="push"
+ tooltip="Go to Selection">
+ </command>
+ <command
commandId="org.jboss.tools.forge.ui.link"
icon="icons/link.gif"
- label="Link To Forge"
+ label="Link with Editor"
mnemonic="L"
style="toggle"
- tooltip="Link the current selection to Forge">
+ tooltip="Link with Editor">
</command>
</menuContribution>
</extension>
@@ -138,6 +151,18 @@
</enabledWhen>
</handler>
<handler
+ class="org.jboss.tools.forge.ui.commands.GoToHandler"
+ commandId="org.jboss.tools.forge.ui.goto">
+ <enabledWhen>
+ <with
+ variable="org.jboss.tools.forge.runtime.state">
+ <equals
+ value="org.jboss.tools.forge.runtime.running">
+ </equals>
+ </with>
+ </enabledWhen>
+ </handler>
+ <handler
class="org.jboss.tools.forge.ui.commands.LinkHandler"
commandId="org.jboss.tools.forge.ui.link">
<enabledWhen>
Added: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/GoToHandler.java
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/GoToHandler.java (rev 0)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/GoToHandler.java 2012-01-13 11:07:05 UTC (rev 37819)
@@ -0,0 +1,18 @@
+package org.jboss.tools.forge.ui.commands;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.jboss.tools.forge.ui.part.ForgeView;
+import org.jboss.tools.forge.ui.util.ForgeHelper;
+
+public class GoToHandler extends AbstractHandler {
+
+ public Object execute(ExecutionEvent executionEvent) {
+ ForgeView forgeView = ForgeHelper.getForgeView();
+ if (forgeView != null) {
+ forgeView.goToSelection(forgeView.getSelection());
+ }
+ return null;
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/GoToHandler.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2012-01-13 09:54:00 UTC (rev 37818)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2012-01-13 11:07:05 UTC (rev 37819)
@@ -4,7 +4,6 @@
import java.beans.PropertyChangeListener;
import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -13,10 +12,13 @@
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.ISelectionListener;
+import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.part.IShowInTarget;
import org.eclipse.ui.part.MessagePage;
import org.eclipse.ui.part.Page;
@@ -72,7 +74,7 @@
private String notRunningMessage;
private ForgeRuntime runtime;
-// private ISelection selection;
+ private ISelection selection;
private SelectionSynchronizer synchronizer;
@Override
@@ -81,17 +83,17 @@
pageBook = new PageBook(parent, SWT.NONE);
createNotRunningPage(parent);
showPage(notRunning);
-// getSite().getWorkbenchWindow().getSelectionService().addSelectionListener(new ISelectionListener() {
-// @Override
-// public void selectionChanged(IWorkbenchPart part, ISelection newSelection) {
-// selection = newSelection;
-// }
-// });
+ getSite().getWorkbenchWindow().getSelectionService().addSelectionListener(new ISelectionListener() {
+ @Override
+ public void selectionChanged(IWorkbenchPart part, ISelection newSelection) {
+ selection = newSelection;
+ }
+ });
}
-// public ISelection getSelection() {
-// return selection;
-// }
+ public ISelection getSelection() {
+ return selection;
+ }
public void setSynchronized(boolean synced) {
synchronizer.setEnabled(synced);
@@ -265,25 +267,38 @@
return false;
}
if (runtime != null && ForgeRuntime.STATE_RUNNING.equals(runtime.getState())) {
- ISelection sel = context.getSelection();
- if (sel instanceof IStructuredSelection) {
- IStructuredSelection ss = (IStructuredSelection)sel;
- Object first = ss.getFirstElement();
- if (first instanceof IResource) {
- IPath path = ((IResource)first).getLocation();
- runtime.sendInput("pick-up " + path + "\n");
- } else if (first instanceof IJavaElement) {
- try {
- IPath path = ((IJavaElement)first).getCorrespondingResource().getLocation();
- runtime.sendInput("pick-up " + path + "\n");
- } catch (JavaModelException e) {
- ForgeUIPlugin.log(e);
- }
- }
- return true;
- }
+ return goToSelection(context.getSelection());
}
return false;
}
+ public boolean goToSelection(ISelection sel) {
+ if (sel instanceof IStructuredSelection) {
+ IStructuredSelection ss = (IStructuredSelection)sel;
+ Object first = ss.getFirstElement();
+ if (first instanceof IResource) {
+ goToPath(((IResource)first).getLocation().toOSString());
+ } else if (first instanceof IJavaElement) {
+ try {
+ goToPath(((IJavaElement)first).getCorrespondingResource().getLocation().toOSString());
+ } catch (JavaModelException e) {
+ ForgeUIPlugin.log(e);
+ return false;
+ }
+ } else if (first instanceof IRemoteFile) {
+ goToPath(((IRemoteFile)first).getAbsolutePath());
+ }
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ private void goToPath(String str) {
+ if (str.indexOf(' ') != -1) {
+ str = '\"' + str + '\"';
+ }
+ runtime.sendInput("pick-up " + str + "\n");
+ }
+
}
\ No newline at end of file
12 years, 12 months
JBoss Tools SVN: r37818 - in trunk/forge/plugins/org.jboss.tools.forge.ui: src/org/jboss/tools/forge/ui/commands and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2012-01-13 04:54:00 -0500 (Fri, 13 Jan 2012)
New Revision: 37818
Added:
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/SelectionSynchronizer.java
Modified:
trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/LinkHandler.java
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
Log:
JBIDE-10270: Link with Editor button works
Modified: trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml 2012-01-13 09:35:47 UTC (rev 37817)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/plugin.xml 2012-01-13 09:54:00 UTC (rev 37818)
@@ -44,11 +44,11 @@
description="Stop the default Forge runtime"
id="org.jboss.tools.forge.ui.stop"
name="Stop Forge"/>
-<!-- <command
+ <command
categoryId="org.jboss.tools.forge.ui"
description="Link the currently selected item to the running Forge runtime"
id="org.jboss.tools.forge.ui.link"
- name="Link To Selection"/> -->
+ name="Link To Selection"/>
<command
categoryId="org.eclipse.ui.category.window"
defaultHandler="org.jboss.tools.forge.ui.commands.ForgeCommandListHandler"
@@ -59,33 +59,6 @@
<extension
point="org.eclipse.ui.menus">
<menuContribution
- locationURI="menu:org.jboss.tools.forge.ui.view">
- <command
- commandId="org.jboss.tools.forge.ui.start"
- icon="icons/start.gif"
- label="Start Forge"
- mnemonic="A"
- style="push"
- tooltip="Start the default Forge runtime">
- </command>
- <command
- commandId="org.jboss.tools.forge.ui.stop"
- icon="icons/stop.gif"
- label="Stop Forge"
- mnemonic="O"
- style="push"
- tooltip="Stop the running Forge runtime">
- </command>
-<!-- <command
- commandId="org.jboss.tools.forge.ui.link"
- icon="icons/link.gif"
- label="Link To Forge"
- mnemonic="L"
- style="toggle"
- tooltip="Link the current selection to Forge">
- </command> -->
- </menuContribution>
- <menuContribution
locationURI="toolbar:org.jboss.tools.forge.ui.view">
<command
commandId="org.jboss.tools.forge.ui.start"
@@ -103,14 +76,14 @@
style="push"
tooltip="Stop the running Forge runtime">
</command>
-<!-- <command
+ <command
commandId="org.jboss.tools.forge.ui.link"
icon="icons/link.gif"
label="Link To Forge"
mnemonic="L"
style="toggle"
tooltip="Link the current selection to Forge">
- </command> -->
+ </command>
</menuContribution>
</extension>
<extension
@@ -125,17 +98,17 @@
<perspectiveExtension
targetID = "org.eclipse.jst.j2ee.J2EEPerspective">
<showInPart
- id = "org.jboss.tools.forge.console"/>
+ id = "org.jboss.tools.forge.ui.view"/>
</perspectiveExtension>
<perspectiveExtension
targetID = "org.eclipse.jdt.ui.JavaPerspective">
<showInPart
- id = "org.jboss.tools.forge.console"/>
+ id = "org.jboss.tools.forge.ui.view"/>
</perspectiveExtension>
<perspectiveExtension
targetID = "org.jboss.tools.common.ui.JBossPerspective">
<showInPart
- id = "org.jboss.tools.forge.console"/>
+ id = "org.jboss.tools.forge.ui.view"/>
</perspectiveExtension>
</extension>
<extension
@@ -164,7 +137,7 @@
</with>
</enabledWhen>
</handler>
-<!-- <handler
+ <handler
class="org.jboss.tools.forge.ui.commands.LinkHandler"
commandId="org.jboss.tools.forge.ui.link">
<enabledWhen>
@@ -175,7 +148,7 @@
</equals>
</with>
</enabledWhen>
- </handler> -->
+ </handler>
</extension>
<extension
point="org.eclipse.ui.services">
Modified: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/LinkHandler.java
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/LinkHandler.java 2012-01-13 09:35:47 UTC (rev 37817)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/commands/LinkHandler.java 2012-01-13 09:54:00 UTC (rev 37818)
@@ -2,11 +2,27 @@
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.ToolItem;
+import org.eclipse.swt.widgets.Widget;
+import org.jboss.tools.forge.ui.part.ForgeView;
+import org.jboss.tools.forge.ui.util.ForgeHelper;
public class LinkHandler extends AbstractHandler {
public Object execute(ExecutionEvent executionEvent) {
- System.out.println("Execute Link Handler");
+ Object object = executionEvent.getTrigger();
+ if (object != null && object instanceof Event) {
+ Widget widget = ((Event)object).widget;
+ if (widget != null) {
+ if (widget instanceof ToolItem) {
+ ForgeView forgeView = ForgeHelper.getForgeView();
+ if (forgeView != null) {
+ forgeView.setSynchronized(((ToolItem)widget).getSelection());
+ }
+ }
+ }
+ }
return null;
}
Modified: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2012-01-13 09:35:47 UTC (rev 37817)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2012-01-13 09:54:00 UTC (rev 37818)
@@ -17,8 +17,6 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.ISelectionListener;
-import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.part.IShowInTarget;
import org.eclipse.ui.part.MessagePage;
import org.eclipse.ui.part.Page;
@@ -74,23 +72,29 @@
private String notRunningMessage;
private ForgeRuntime runtime;
- private ISelection selection;
+// private ISelection selection;
+ private SelectionSynchronizer synchronizer;
@Override
public void createPartControl(Composite parent) {
+ synchronizer = new SelectionSynchronizer(this);
pageBook = new PageBook(parent, SWT.NONE);
createNotRunningPage(parent);
- showPage(notRunning);
- getSite().getWorkbenchWindow().getSelectionService().addSelectionListener(new ISelectionListener() {
- @Override
- public void selectionChanged(IWorkbenchPart part, ISelection newSelection) {
- selection = newSelection;
- }
- });
+ showPage(notRunning);
+// getSite().getWorkbenchWindow().getSelectionService().addSelectionListener(new ISelectionListener() {
+// @Override
+// public void selectionChanged(IWorkbenchPart part, ISelection newSelection) {
+// selection = newSelection;
+// }
+// });
}
- public ISelection getSelection() {
- return selection;
+// public ISelection getSelection() {
+// return selection;
+// }
+
+ public void setSynchronized(boolean synced) {
+ synchronizer.setEnabled(synced);
}
private void createNotRunningPage(Composite parent) {
Added: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/SelectionSynchronizer.java
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/SelectionSynchronizer.java (rev 0)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/SelectionSynchronizer.java 2012-01-13 09:54:00 UTC (rev 37818)
@@ -0,0 +1,107 @@
+package org.jboss.tools.forge.ui.part;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.IPartListener;
+import org.eclipse.ui.IPartService;
+import org.eclipse.ui.ISelectionListener;
+import org.eclipse.ui.ISelectionService;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.jboss.tools.forge.core.process.ForgeRuntime;
+
+
+public class SelectionSynchronizer implements ISelectionListener {
+
+ private ForgeView forgeView;
+ private ISelectionService selectionService;
+ private IEditorPart selectedPart;
+ private IPartService partService;
+
+ private IPartListener partListener = new IPartListener() {
+
+ @Override
+ public void partOpened(IWorkbenchPart part) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void partDeactivated(IWorkbenchPart part) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void partClosed(IWorkbenchPart part) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void partBroughtToTop(IWorkbenchPart part) {
+ if (!(part instanceof IEditorPart) || part == selectedPart) return;
+ selectedPart = (IEditorPart)part;
+ IEditorInput editorInput = selectedPart.getEditorInput();
+ if (!(editorInput instanceof IFileEditorInput)) return;
+ IFile file = ((IFileEditorInput)editorInput).getFile();
+ if (file == null) return;
+ String path = file.getLocation().toOSString();
+ if (path.indexOf(' ') != -1) {
+ path = '\"' + path + '\"';
+ }
+ ForgeRuntime forgeRuntime = forgeView.getRuntime();
+ if (forgeRuntime != null && ForgeRuntime.STATE_RUNNING.equals(forgeRuntime.getState())) {
+ forgeRuntime.sendInput("pick-up " + path + "\n");
+ }
+ }
+
+ @Override
+ public void partActivated(IWorkbenchPart part) {
+ // TODO Auto-generated method stub
+
+ }
+ };
+
+ public SelectionSynchronizer(ForgeView forgeView) {
+ this.forgeView = forgeView;
+ IWorkbenchWindow workbenchWindow = forgeView.getSite().getWorkbenchWindow();
+ selectionService =
+ forgeView.getSite().getWorkbenchWindow().getSelectionService();
+ partService = workbenchWindow.getPartService();
+ }
+
+ public void setEnabled(boolean enabled) {
+ if (enabled) {
+// selectionService.addSelectionListener(this);
+ partService.addPartListener(partListener);
+ } else {
+// selectionService.removeSelectionListener(this);
+ partService.removePartListener(partListener);
+ }
+ }
+
+ @Override
+ public void selectionChanged(IWorkbenchPart part, ISelection selection) {
+ if (!(part instanceof IEditorPart) || part == selectedPart) return;
+ selectedPart = (IEditorPart)part;
+ IWorkbenchWindow workbenchWindow = forgeView.getSite().getWorkbenchWindow();
+ if (workbenchWindow.getPartService().getActivePart() == part) return;
+ IEditorInput editorInput = selectedPart.getEditorInput();
+ if (!(editorInput instanceof IFileEditorInput)) return;
+ IFile file = ((IFileEditorInput)editorInput).getFile();
+ if (file == null) return;
+ String path = file.getLocation().toOSString();
+ if (path.indexOf(' ') != -1) {
+ path = '\"' + path + '\"';
+ }
+ ForgeRuntime forgeRuntime = forgeView.getRuntime();
+ if (forgeRuntime != null && ForgeRuntime.STATE_RUNNING.equals(forgeRuntime.getState())) {
+ forgeRuntime.sendInput("pick-up " + path + "\n");
+ }
+ }
+
+}
Property changes on: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/SelectionSynchronizer.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 12 months
JBoss Tools SVN: r37817 - in trunk/cdi/tests/org.jboss.tools.cdi.bot.test: src/org/jboss/tools/cdi/bot/test/named and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-01-13 04:35:47 -0500 (Fri, 13 Jan 2012)
New Revision: 37817
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/BeansXMLValidationQuickFixTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/FacetTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/todo.txt
Log:
Nonimportant commit, only some comments and todo list changed
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java 2012-01-13 09:34:29 UTC (rev 37816)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java 2012-01-13 09:35:47 UTC (rev 37817)
@@ -61,7 +61,7 @@
assertTrue(bot.activeEditor().toTextEditor().getSelection().equals(beanName));
}
-
+ /*
@Test
public void testSearchNamedParameterBean() {
@@ -224,6 +224,7 @@
assertTrue(bot.activeEditor().getTitle().equals(beanName + ".java"));
assertTrue(bot.activeEditor().toTextEditor().getSelection().equals(beanName));
}
+ */
private SearchNamedDialogWizard openSearchNamedDialog() {
bot.menu("Navigate").menu("Open CDI Named Bean").click();
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/BeansXMLValidationQuickFixTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/BeansXMLValidationQuickFixTest.java 2012-01-13 09:34:29 UTC (rev 37816)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/BeansXMLValidationQuickFixTest.java 2012-01-13 09:35:47 UTC (rev 37817)
@@ -105,5 +105,5 @@
assertTrue(isBeanXMLValidationProblemsEmpty());
}
-
+
}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/FacetTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/FacetTest.java 2012-01-13 09:34:29 UTC (rev 37816)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/FacetTest.java 2012-01-13 09:35:47 UTC (rev 37817)
@@ -41,7 +41,7 @@
@Test
public void testCDIFacet() {
if (projectHelper.projectExists(getProjectName())) {
- LOGGER.info("Dynamic Web Project with CDI Facet created");
+ LOGGER.info("Dynamic Web Project with CDI Facet created");
assertTrue("Error: beans.xml should be created when selecting CDI Facet",
projectExplorer.isFilePresent(getProjectName(), "WebContent/WEB-INF/beans.xml".split("/")));
} else {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/todo.txt
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/todo.txt 2012-01-13 09:34:29 UTC (rev 37816)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/todo.txt 2012-01-13 09:35:47 UTC (rev 37817)
@@ -2,9 +2,7 @@
what tests have to be done(JBDS50_0010):
* Validations works good for Inconsistent specialization,
Ambiguous EL names, Unproxyable bean types, Decorator resolution
- * Code completion works in beans.xml
* Quick fixes for problem markers in beans.xml(https://issues.jboss.org/browse/JBIDE-9833)
- * Complex test from Weld is working in JBDS and CDI functionality works without errors
* CDI @Named beans are renamed via refactoring and shows up correctly
when using Find References for EL Expressions
* Create new decorator from existing Web Bean
12 years, 12 months
JBoss Tools SVN: r37816 - trunk/cdi/tests/org.jboss.tools.cdi.bot.test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-01-13 04:34:29 -0500 (Fri, 13 Jan 2012)
New Revision: 37816
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml
Log:
Profiles and needed features group added to pom.xml
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml 2012-01-13 09:31:39 UTC (rev 37815)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/pom.xml 2012-01-13 09:34:29 UTC (rev 37816)
@@ -11,7 +11,8 @@
<packaging>eclipse-test-plugin</packaging>
<properties>
- <systemProperties>-Dswtbot.test.properties.file=./swtbot.properties</systemProperties>
+ <systemProperties>-Dswtbot.test.properties.file=${swtbot.properties}</systemProperties>
+ <test.suite.class>org.jboss.tools.cdi.bot.test.CDIAllBotTests</test.suite.class>
</properties>
<build>
@@ -20,12 +21,14 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
+ <testSuite>org.jboss.tools.cdi.bot.test</testSuite>
+ <testClass>${test.suite.class}</testClass>
<useUIThread>false</useUIThread>
<skip>${swtbot.test.skip}</skip>
<dependencies combine.children="append">
<dependency>
<type>p2-installable-unit</type>
- <artifactId>org.eclipse.jst.server_ui.feature.feature.group</artifactId>
+ <artifactId>org.jboss.tools.cdi.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
@@ -33,19 +36,47 @@
<artifactId>org.jboss.ide.eclipse.as.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.jsf.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
<dependency>
<type>p2-installable-unit</type>
- <artifactId>org.jboss.tools.cdi.feature.feature.group</artifactId>
+ <artifactId>org.jboss.tools.cdi.seam.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
+
+ <!--
<dependency>
<type>p2-installable-unit</type>
+ <artifactId>org.eclipse.jst.server_ui.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
<artifactId>org.jboss.tools.richfaces.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
+ -->
</dependencies>
</configuration>
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>smoke-bot-tests</id>
+ <properties>
+ <test.suite.class>org.jboss.tools.cdi.bot.test.CDISmokeBotTests</test.suite.class>
+ </properties>
+ </profile>
+ <profile>
+ <id>seam3-bot-tests</id>
+ <properties>
+ <test.suite.class>org.jboss.tools.cdi.bot.test.CDISeam3AllBotTests</test.suite.class>
+ </properties>
+ </profile>
+ </profiles>
</project>
12 years, 12 months
JBoss Tools SVN: r37815 - trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-01-13 04:31:39 -0500 (Fri, 13 Jan 2012)
New Revision: 37815
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java
Log:
Correction of QuickFixTest to work with 5.0.0Beta1
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java 2012-01-13 09:30:30 UTC (rev 37814)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/IBindingValidationQuickFixTest.java 2012-01-13 09:31:39 UTC (rev 37815)
@@ -46,7 +46,10 @@
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.INTERCEPTOR_BINDING);
- editResourceUtil.replaceInEditor("@Nonbinding AAnnotation", "String[]");
+ editResourceUtil.replaceClassContentByResource(QuickFixTestBase.class
+ .getResourceAsStream("/resources/quickfix/interceptorBinding/IBindingWithStringArray.java.cdi"),
+ false);
+ editResourceUtil.replaceInEditor("IBindingComponent", className);
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.INTERCEPTOR_BINDING);
}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java 2012-01-13 09:30:30 UTC (rev 37814)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/test/QualifierValidationQuickFixTest.java 2012-01-13 09:31:39 UTC (rev 37815)
@@ -81,7 +81,9 @@
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.QUALIFIER);
- editResourceUtil.replaceInEditor("@Nonbinding AAnnotation", "String[]");
+ editResourceUtil.replaceClassContentByResource(QuickFixTestBase.class
+ .getResourceAsStream("/resources/quickfix/qualifier/QualifierWithStringArray.java.cdi"), false);
+ editResourceUtil.replaceInEditor("QualifierComponent", className);
checkQuickFix(CDIAnnotationsType.NONBINDING, CDIWizardType.QUALIFIER);
}
12 years, 12 months
JBoss Tools SVN: r37814 - trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-01-13 04:30:30 -0500 (Fri, 13 Jan 2012)
New Revision: 37814
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIRefactorWizard.java
Log:
Correction of CDIRefactorWizard to work with 5.0.0Beta1
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIRefactorWizard.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIRefactorWizard.java 2012-01-13 09:29:02 UTC (rev 37813)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIRefactorWizard.java 2012-01-13 09:30:30 UTC (rev 37814)
@@ -32,11 +32,9 @@
* Method gets all files which will be affected by CDI refactoring
* @return
*/
- public List<String> getAffectedFiles() {
- String temp = null;
- for (SWTBotTreeItem ti : bot().tree().getTreeItem(RENAME_TEXT_LABEL).getItems()) {
- temp = ti.getText().split("-")[0];
- affectedFiles.add(temp.substring(0, temp.length() - 1));
+ public List<String> getAffectedFiles() {
+ for (SWTBotTreeItem ti : bot().tree().getTreeItem(RENAME_TEXT_LABEL).getItems()) {
+ affectedFiles.add(ti.getText());
}
return affectedFiles;
}
12 years, 12 months