JBoss Tools SVN: r35521 - workspace/Denny/esb-example-soa-p5.0.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2011-10-10 15:04:36 -0400 (Mon, 10 Oct 2011)
New Revision: 35521
Modified:
workspace/Denny/esb-example-soa-p5.0/helloworld_file_action.zip
workspace/Denny/esb-example-soa-p5.0/helloworld_file_action_all.zip
workspace/Denny/esb-example-soa-p5.0/helloworld_file_action_client.zip
Log:
JBDS-1859 - fixing contradictory readmes in the helloworld_file_action project example
Modified: workspace/Denny/esb-example-soa-p5.0/helloworld_file_action.zip
===================================================================
(Binary files differ)
Modified: workspace/Denny/esb-example-soa-p5.0/helloworld_file_action_all.zip
===================================================================
(Binary files differ)
Modified: workspace/Denny/esb-example-soa-p5.0/helloworld_file_action_client.zip
===================================================================
(Binary files differ)
13 years, 3 months
JBoss Tools SVN: r35520 - trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-10-10 14:35:04 -0400 (Mon, 10 Oct 2011)
New Revision: 35520
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java
Log:
https://issues.jboss.org/browse/JBIDE-9844 Cleanup perspectives
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java 2011-10-10 18:23:58 UTC (rev 35519)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java 2011-10-10 18:35:04 UTC (rev 35520)
@@ -15,6 +15,7 @@
import junit.framework.TestCase;
+import org.eclipse.ui.IViewReference;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.WorkbenchException;
import org.jboss.tools.test.util.WorkbenchUtils;
@@ -24,6 +25,10 @@
*/
public class CDIPerspectiveTest extends TestCase {
+ /**
+ * Tests JEE perspective has CDI/JSF stuff
+ * @throws WorkbenchException
+ */
public void testPerspective() throws WorkbenchException {
IWorkbenchPage page = WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow().openPage("org.eclipse.jst.j2ee.J2EEPerspective", null);
assertNotNull(page);
@@ -41,5 +46,11 @@
assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewDecoratorCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewDecoratorCreationWizard"));
assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard"));
assertTrue("Have not found org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard in org.eclipse.jst.j2ee.J2EEPerspective.", shortcutSet.contains("org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard"));
+ IViewReference[] viewReferences = page.getViewReferences();
+ Set<String> viewIds = new HashSet<String>();
+ for (IViewReference viewReference : viewReferences) {
+ viewIds.add(viewReference.getId());
+ }
+ assertTrue("Have not found org.eclipse.gef.ui.palette_view in org.eclipse.jst.j2ee.J2EEPerspective.", viewIds.contains("org.eclipse.gef.ui.palette_view"));
}
}
\ No newline at end of file
13 years, 3 months
JBoss Tools SVN: r35519 - trunk/cdi/plugins/org.jboss.tools.cdi.ui.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-10-10 14:23:58 -0400 (Mon, 10 Oct 2011)
New Revision: 35519
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml
Log:
https://issues.jboss.org/browse/JBIDE-9844 Cleanup perspectives
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml 2011-10-10 18:22:23 UTC (rev 35518)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml 2011-10-10 18:23:58 UTC (rev 35519)
@@ -377,6 +377,10 @@
<perspectiveShortcut
id="org.hibernate.eclipse.console.HibernateConsolePerspective">
</perspectiveShortcut>
+ <view relative="org.eclipse.ui.views.ContentOutline"
+ relationship="stack"
+ id="org.eclipse.gef.ui.palette_view">
+ </view>
</perspectiveExtension>
</extension>
13 years, 3 months
JBoss Tools SVN: r35518 - trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-10-10 14:22:23 -0400 (Mon, 10 Oct 2011)
New Revision: 35518
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java
Log:
https://issues.jboss.org/browse/JBIDE-9868 org.jboss.tools.jsf.jsp.ca.test.CAForJSF2BeansInJavaTest failure
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java 2011-10-10 18:02:20 UTC (rev 35517)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java 2011-10-10 18:22:23 UTC (rev 35518)
@@ -18,27 +18,28 @@
boolean makeCopy = true;
private static final String PROJECT_NAME = "JSF2Beans";
private static final String PAGE_NAME = "/src/test/beans/Bean1.java";
-
+
+ @Override
public void setUp() throws Exception {
provider = new TestProjectProvider("org.jboss.tools.jsf.test", null, PROJECT_NAME, makeCopy);
project = provider.getProject();
}
+ @Override
protected void tearDown() throws Exception {
if(provider != null) {
provider.dispose();
}
}
-
+
/**
* JBIDE-9362
*/
public void testCAForJSF2Beans(){
String[] proposals = {
- "mybean1 : Bean1", "mybean2 : Bean3"
+ "mybean1 : Bean1", "bean4 : Bean4", "bean5 : Bean5"
};
checkProposals(PAGE_NAME, "#{}", 2, proposals, false);
-
}
-}
+}
\ No newline at end of file
13 years, 3 months
JBoss Tools SVN: r35517 - trunk/central/features/org.jboss.tools.central.feature.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-10-10 14:02:20 -0400 (Mon, 10 Oct 2011)
New Revision: 35517
Modified:
trunk/central/features/org.jboss.tools.central.feature/feature.xml
Log:
JBIDE-9368 Dashboard(s) for easy news aggregation, twitter and easy additional/3rd party plugin installation and project template/creation
Modified: trunk/central/features/org.jboss.tools.central.feature/feature.xml
===================================================================
--- trunk/central/features/org.jboss.tools.central.feature/feature.xml 2011-10-10 17:59:44 UTC (rev 35516)
+++ trunk/central/features/org.jboss.tools.central.feature/feature.xml 2011-10-10 18:02:20 UTC (rev 35517)
@@ -18,7 +18,11 @@
%license
</license>
- <plugin id="org.jboss.tools.central" download-size="0" install-size="0" version="0.0.0" unpack="false"/>
- <plugin id="org.jboss.tools.central.discovery" download-size="0" install-size="0" version="0.0.0" unpack="false"/>
+ <plugin
+ id="org.jboss.tools.central"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
</feature>
13 years, 3 months
JBoss Tools SVN: r35516 - in trunk: jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-10-10 13:59:44 -0400 (Mon, 10 Oct 2011)
New Revision: 35516
Modified:
trunk/common/plugins/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/contentassist/AbstractContentAssistantTestCase.java
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java
Log:
https://issues.jboss.org/browse/JBIDE-9868 org.jboss.tools.jsf.jsp.ca.test.CAForJSF2BeansInJavaTest failure
Modified: trunk/common/plugins/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/contentassist/AbstractContentAssistantTestCase.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/contentassist/AbstractContentAssistantTestCase.java 2011-10-10 15:29:04 UTC (rev 35515)
+++ trunk/common/plugins/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/contentassist/AbstractContentAssistantTestCase.java 2011-10-10 17:59:44 UTC (rev 35516)
@@ -106,7 +106,7 @@
ICompletionProposal[] result = res.toArray(new ICompletionProposal[res.size()]);
StringBuffer sb = new StringBuffer("[");
for (ICompletionProposal p : result) {
- sb.append(p.getDisplayString()).append(", ");
+ sb.append(p.getDisplayString()).append("; ");
}
sb.append("]");
int foundCounter = 0;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java 2011-10-10 15:29:04 UTC (rev 35515)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java 2011-10-10 17:59:44 UTC (rev 35516)
@@ -35,7 +35,7 @@
*/
public void testCAForJSF2Beans(){
String[] proposals = {
- "mybean1 : Bean1", "mybean2 : Bean2"
+ "mybean1 : Bean1", "mybean2 : Bean3"
};
checkProposals(PAGE_NAME, "#{}", 2, proposals, false);
13 years, 3 months
JBoss Tools SVN: r35515 - in trunk/cdi/tests/org.jboss.tools.cdi.bot.test: resources/cdi and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2011-10-10 11:29:04 -0400 (Mon, 10 Oct 2011)
New Revision: 35515
Added:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/seam-international.jar
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/seam-solder.jar
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/PluginActivator.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIUtil.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIWizard.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java
Log:
New OpenOn CDI test, seam-solder and seam-international libraries were added
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi 2011-10-10 15:29:04 UTC (rev 35515)
@@ -0,0 +1,19 @@
+package org.cdi.test;
+
+import java.net.URL;
+
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.resourceLoader.Resource;
+
+public class B2 {
+
+ @Inject
+ @Resource("WEB-INF/beans.xml")
+ URL beansXml;
+
+ public ResourceBean() {
+ // TODO Auto-generated constructor stub
+ }
+
+}
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/seam-international.jar
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/seam-international.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/seam-solder.jar
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/seam-solder.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java 2011-10-10 15:29:04 UTC (rev 35515)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2010-2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.bot.test;
+
+import org.jboss.tools.cdi.bot.test.wizard.CdiATWizardTest;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+/**
+ * This test suite requires JBoss AS 6 or newer
+ *
+ * System properties:
+ * -Dswtbot.test.properties.file=$PATH
+ * -Dusage_reporting_enabled=$BOOLEAN
+ *
+ * Format of swtbot.properties file:
+ * SERVER=EAP|JBOSS_AS,<server version>,<jre version to run with>|default,<server home>
+ *
+ * Sample swtbot.properties file:
+ *
+ * SERVER=JBOSS_AS,6.0,default,/home/lukas/latest/jboss-6.0.0.Final
+ * JAVA=1.6,/space/java/sdk/jdk1.6.0_22
+ *
+ *
+ * Suite duration: aprox. 12min
+ *
+ * @author Lukas Jungmann
+ * @author Jaroslav Jankovic
+ */
+(a)RunWith(RequirementAwareSuite.class)
+@SuiteClasses({
+ CdiATWizardTest.class,
+ })
+public class CDISmokeBotTests {
+}
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/PluginActivator.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/PluginActivator.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/PluginActivator.java 2011-10-10 15:29:04 UTC (rev 35515)
@@ -0,0 +1,66 @@
+ /*******************************************************************************
+ * Copyright (c) 2007-2009 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.bot.test;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class PluginActivator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.cdi.bot.test";
+
+ // The shared instance
+ private static PluginActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public PluginActivator() {
+ }
+
+ /*
+ * (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 PluginActivator getDefault() {
+ return plugin;
+ }
+
+}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java 2011-10-10 15:20:49 UTC (rev 35514)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java 2011-10-10 15:29:04 UTC (rev 35515)
@@ -1,12 +1,20 @@
package org.jboss.tools.cdi.bot.test.openon;
+import java.io.IOException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
+import org.jboss.tools.cdi.bot.test.quickfix.CDIQuickFixTest;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.helper.TreeHelper;
import org.jboss.tools.ui.bot.ext.types.ViewType;
import org.junit.After;
import org.junit.BeforeClass;
@@ -33,8 +41,7 @@
@SuiteClasses({ CDIAllBotTests.class })
public class CDIOpenOnTest extends CDIBase {
- // private static final Logger LOGGER =
- // Logger.getLogger(CDIQuickFixTest.class.getName());
+ private static final Logger LOGGER = Logger.getLogger(CDIQuickFixTest.class.getName());
private static final String PROJECT_NAME = "CDIProject3";
private static final String PACKAGE_NAME = "org.cdi.test";
@@ -52,7 +59,7 @@
public void testCreateProject() {
createAndCheckCDIProject(bot, util, projectExplorer, PROJECT_NAME);
}
-
+
@Test
public void testInjectOpenOn() {
@@ -63,39 +70,112 @@
CDIUtil.copyResourceToClass(getEd(), CDIOpenOnTest.class
.getResourceAsStream("/resources/cdi/BrokenFarm.java.cdi"),
false);
- openOn("@Inject", "BrokenFarm.java", true);
+ openOn("@Inject", "BrokenFarm.java", "@Inject");
assertTrue("ERROR: redirected to " + getEd().getTitle(), getEd()
.getTitle().equals("Animal.java"));
}
-
+
@Test
public void testBeansXMLClassesOpenOn() {
// https://issues.jboss.org/browse/JBIDE-7025
- createComponent(CDICOMPONENT.BEANSXML, null, PROJECT_NAME + "/WebContent/WEB-INF", null);
+ createComponent(CDICOMPONENT.BEANSXML, null, PROJECT_NAME
+ + "/WebContent/WEB-INF", null);
- createComponent(CDICOMPONENT.DECORATOR, "D1", PACKAGE_NAME, "java.util.Set");
+ createComponent(CDICOMPONENT.DECORATOR, "D1", PACKAGE_NAME,
+ "java.util.Set");
bot.editorByTitle("beans.xml").show();
- bot.cTabItem("Source").activate();
- openOn(PACKAGE_NAME + ".D1", "beans.xml", false);
- //assertTrue(bot.activeEditor().getTitle(), bot.activeEditor().getTitle().equals("D1.java"));
+ bot.cTabItem("Source").activate();
+ openOn(PACKAGE_NAME + ".D1", "beans.xml", null);
+ assertTrue("ERROR: redirected to " + getEd(),
+ getEd().getTitle().equals("D1.java"));
- createComponent(CDICOMPONENT.INTERCEPTOR, "Interceptor1", PACKAGE_NAME, null);
- bot.editorByTitle("beans.xml").show();
- openOn(PACKAGE_NAME + ".Interceptor1", "beans.xml", false);
- //assertTrue("ERROR: redirected to " + getEd(), getEd().getTitle().equals("Interceptor1.java"));
+ createComponent(CDICOMPONENT.INTERCEPTOR, "Interceptor1", PACKAGE_NAME,
+ null);
+ bot.editorByTitle("beans.xml").show();
+ openOn(PACKAGE_NAME + ".Interceptor1", "beans.xml", null);
+ assertTrue("ERROR: redirected to " + getEd(),
+ getEd().getTitle().equals("Interceptor1.java"));
+
+ createComponent(CDICOMPONENT.BEAN, "B1", PACKAGE_NAME,
+ "alternative+beansxml");
+ bot.editorByTitle("beans.xml").show();
+ openOn(PACKAGE_NAME + ".B1", "beans.xml", null);
+ assertTrue("ERROR: redirected to " + getEd(),
+ getEd().getTitle().equals("B1.java"));
+
+ createComponent(CDICOMPONENT.STEREOSCOPE, "S1", PACKAGE_NAME,
+ "alternative+beansxml");
+ bot.editorByTitle("beans.xml").show();
+ openOn(PACKAGE_NAME + ".S1", "beans.xml", null);
+ assertTrue("ERROR: redirected to " + getEd(),
+ getEd().getTitle().equals("S1.java"));
+
}
@Test
public void testResourceOpenOn() {
// https://issues.jboss.org/browse/JBIDE-8202
+ addLibrary("seam-solder.jar");
+
+ createComponent(CDICOMPONENT.BEAN, "B2", PACKAGE_NAME, null);
+ CDIUtil.copyResourceToClass(getEd(), CDIQuickFixTest.class
+ .getResourceAsStream("/resources/cdi/B2.java.cdi"), false);
+ openOn("beansXml", "B2.java", "Open Resource");
+ String destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals("beans.xml"));
+
+ moveFileInProjectExplorer("beans.xml", PROJECT_NAME + "/WebContent/WEB-INF",
+ PROJECT_NAME + "/WebContent/META-INF");
+ LOGGER.info("bean.xml was moved to META-INF");
+
+ setEd(bot.swtBotEditorExtByTitle("B2.java"));
+ CDIUtil.replaceInEditor(getEd(), bot, "WEB", "META");
+ openOn("beansXml", "B2.java", "Open Resource");
+
+ destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals("beans.xml"));
+
}
-
+
@Test
public void testGenericOpenOn() {
// https://issues.jboss.org/browse/JBIDE-8692
+
+ /*
+ * copy files from project which is mentioned in JIRA, then it will be easy
+ */
}
+
+ private void moveFileInProjectExplorer(String file, String sourceFolder, String destFolder) {
+ SWTBotTree tree = projectExplorer.bot().tree();
+ SWTBotTreeItem item = projectExplorer.selectTreeItem(file, sourceFolder.split("/"));
+
+ CDIUtil.nodeContextMenu(tree, item, "Move...").click();
+
+ assertFalse(bot.button("OK").isEnabled());
+
+ tree = bot.tree();
+ tree.collapseNode(destFolder.split("/")[0]);
+
+ TreeHelper.expandNode(bot, destFolder.split("/")).select();
+ assertTrue(bot.button("OK").isEnabled());
+ bot.button("OK").click();
+ }
+
+ private void addLibrary(String libraryName) {
+ try {
+ addLibraryIntoProject(PROJECT_NAME, libraryName);
+ LOGGER.info("Library: \"" + libraryName + "\" copied");
+ addLibraryToProjectsClassPath(PROJECT_NAME, libraryName);
+ } catch (IOException exc) {
+ LOGGER.log(Level.SEVERE, "Error while adding seam solder library into project");
+ }
+ }
+
}
\ No newline at end of file
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java 2011-10-10 15:20:49 UTC (rev 35514)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java 2011-10-10 15:29:04 UTC (rev 35515)
@@ -1,17 +1,28 @@
package org.jboss.tools.cdi.bot.test.uiutils.actions;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.nio.channels.FileChannel;
+
+import org.eclipse.core.runtime.Platform;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.keyboard.Keystrokes;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.jboss.tools.cdi.bot.test.PluginActivator;
import org.jboss.tools.cdi.bot.test.uiutils.wizards.DynamicWebProjectWizard;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
import org.jboss.tools.ui.bot.ext.SWTJBTExt;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.SWTUtilExt;
import org.jboss.tools.ui.bot.ext.Timing;
+import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.ui.bot.ext.view.ProjectExplorer;
public class CDIBase extends SWTTestExt {
@@ -48,7 +59,17 @@
String packageName, String necessaryParam) {
switch (component) {
case STEREOSCOPE:
- CDIUtil.stereotype(packageName, name, null, null, false, false, false,
+ boolean alternative = false;
+ boolean regInBeansXml = false;
+ if (necessaryParam != null) {
+ if (necessaryParam.equals("alternative+beansxml")) {
+ alternative = true;
+ regInBeansXml = true;
+ } else if (necessaryParam.equals("alternative")) {
+ alternative = true;
+ }
+ }
+ CDIUtil.stereotype(packageName, name, null, null, false, false, alternative, regInBeansXml,
false).finish();
break;
case QUALIFIER:
@@ -58,7 +79,17 @@
CDIUtil.scope(packageName, name, false, false, true, false).finish();
break;
case BEAN:
- CDIUtil.bean(packageName, name, true, false, false, false, null, null,
+ alternative = false;
+ regInBeansXml = false;
+ if (necessaryParam != null) {
+ if (necessaryParam.equals("alternative+beansxml")) {
+ alternative = true;
+ regInBeansXml = true;
+ } else if (necessaryParam.equals("alternative")) {
+ alternative = true;
+ }
+ }
+ CDIUtil.bean(packageName, name, true, false, false, false, alternative, regInBeansXml, null, null,
null, null).finish();
break;
case INTERCEPTOR:
@@ -108,32 +139,78 @@
util.waitForNonIgnoredJobs();
}
- public void openOn(String openOnString, String titleName, boolean moreOptions) {
+ public void openOn(String openOnString, String titleName, String chosenOption) {
SWTBotEditor ed = bot.editorByTitle(titleName);
ed.show();
ed.setFocus();
int offset = openOnString.contains("@")?1:0;
setEd(SWTJBTExt.selectTextInSourcePane(bot, titleName,
openOnString, offset, openOnString.length() - offset));
- if (moreOptions) {
+ if (chosenOption != null) {
SWTBotMenu navigateMenu = bot.menu("Navigate");
bot.sleep(TIME_500MS);
navigateMenu.menu("Open Hyperlink").click();
bot.sleep(TIME_500MS);
SWTBotTable table = bot.activeShell().bot().table(0);
for (int i = 0; i < table.rowCount(); i++) {
- if (table.getTableItem(i).getText().contains(openOnString)) {
+ if (table.getTableItem(i).getText().contains(chosenOption)) {
table.click(i, 0);
break;
}
}
} else {
- getEd().setFocus();
+ getEd().setFocus();
bot.sleep(TIME_500MS);
- //KeyboardHelper.pressKeyCodeUsingAWT(KeyEvent.VK_F3);
+ getEd().pressShortcut(Keystrokes.F3);
}
bot.sleep(Timing.time1S());
setEd(bot.activeEditor().toTextEditor());
}
+
+ public void addLibraryToProjectsClassPath(String projectName, String libraryName) {
+ SWTBotTree tree = projectExplorer.bot().tree();
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(tree);
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,"Refresh",false)).click();
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(tree);
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,"Properties",false)).click();
+
+ bot.tree().expandNode("Java Build Path").select();
+ bot.tabItem("Libraries").activate();
+ bot.button("Add JARs...").click();
+ bot.sleep(TIME_500MS);
+ String file = libraryName;
+ bot.tree().expandNode(projectName).expandNode(file).select();
+
+ bot.button(IDELabel.Button.OK).click();
+ bot.sleep(TIME_1S);
+ bot.button(IDELabel.Button.OK).click();
+ bot.sleep(TIME_1S);
+ }
+ /*
+ * copy library located in PROJECT_NAME/resources/libraries into project
+ * libraryName must include extension: seam-solder.jar
+ */
+ public static void addLibraryIntoProject(String projectName, String libraryName) throws IOException {
+ File in = null;
+ FileChannel inChannel = null;
+ FileChannel outChannel = null;
+
+
+ in = SWTUtilExt.getResourceFile(PluginActivator.PLUGIN_ID, "libraries", libraryName);
+
+ File out = new File(Platform.getLocation() + File.separator + projectName +
+ File.separator + File.separator + libraryName);
+
+ inChannel = new FileInputStream(in).getChannel();
+ outChannel = new FileOutputStream(out).getChannel();
+
+ inChannel.transferTo(0, inChannel.size(), outChannel);
+
+ if (inChannel != null) inChannel.close();
+ if (outChannel != null) outChannel.close();
+ }
+
}
\ No newline at end of file
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIUtil.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIUtil.java 2011-10-10 15:20:49 UTC (rev 35514)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIUtil.java 2011-10-10 15:29:04 UTC (rev 35515)
@@ -129,12 +129,15 @@
public static CDIWizard stereotype(String pkg, String name, String scope,
String target, boolean inherited, boolean named,
- boolean alternative, boolean comments) {
+ boolean alternative, boolean regInBeansXML, boolean comments) {
CDIWizard w = create(CDIWizardType.STEREOTYPE, pkg, name, inherited,
comments).setAlternative(alternative).setNamed(named);
if (scope != null) {
w = w.setScope(scope);
}
+ if (alternative && regInBeansXML) {
+ w.setRegisterInBeansXml(regInBeansXML);
+ }
return target != null ? w.setTarget(target) : w;
}
@@ -163,7 +166,8 @@
}
public static CDIWizard bean(String pkg, String name, boolean isPublic,
- boolean isAbstract, boolean isFinal, boolean comments,
+ boolean isAbstract, boolean isFinal, boolean comments,
+ boolean alternative, boolean registerInBeansXML,
String named, String interfaces, String scope, String qualifier) {
CDIWizard w = create(CDIWizardType.BEAN, pkg, name, comments);
if (named != null) {
@@ -172,7 +176,7 @@
w.setNamedName(named);
}
}
- w = w.setPublic(isPublic).setFinal(isFinal).setAbstract(isAbstract);
+ w = w.setPublic(isPublic).setFinal(isFinal).setAbstract(isAbstract).setAlternative(alternative);
if (interfaces != null && !"".equals(interfaces.trim())) {
w.addInterface(interfaces);
}
@@ -182,6 +186,9 @@
if (qualifier != null && !"".equals(qualifier.trim())) {
w.addQualifier(qualifier);
}
+ if (alternative && registerInBeansXML) {
+ w.setRegisterInBeansXml(registerInBeansXML);
+ }
return w;
}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIWizard.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIWizard.java 2011-10-10 15:20:49 UTC (rev 35514)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/CDIWizard.java 2011-10-10 15:29:04 UTC (rev 35515)
@@ -15,16 +15,10 @@
import org.eclipse.swt.widgets.Button;
import org.eclipse.swtbot.swt.finder.SWTBot;
-import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
-import org.eclipse.swtbot.swt.finder.results.Result;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotRadio;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
-import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
public class CDIWizard extends Wizard {
@@ -120,6 +114,7 @@
public CDIWizard setAlternative(boolean set) {
switch (type) {
case STEREOTYPE:
+ case BEAN:
setCheckbox("Add @Alternative", set);
break;
default:
@@ -131,11 +126,34 @@
public boolean isAlternative() {
switch (type) {
case STEREOTYPE:
+ case BEAN:
return isCheckboxSet("Add @Alternative");
default:
return false;
}
}
+
+ public CDIWizard setRegisterInBeansXml(boolean set) {
+ switch (type) {
+ case STEREOTYPE:
+ case BEAN:
+ setCheckbox("Register in beans.xml", set);
+ break;
+ default:
+ throw new UnsupportedOperationException();
+ }
+ return this;
+ }
+
+ public boolean isRegisteredInBeansXML() {
+ switch (type) {
+ case STEREOTYPE:
+ case BEAN:
+ return isCheckboxSet("Register in beans.xml");
+ default:
+ return false;
+ }
+ }
public CDIWizard setNamed(boolean set) {
switch (type) {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java 2011-10-10 15:20:49 UTC (rev 35514)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java 2011-10-10 15:29:04 UTC (rev 35515)
@@ -15,6 +15,7 @@
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
+import org.jboss.tools.cdi.bot.test.CDISmokeBotTests;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
import org.jboss.tools.cdi.bot.test.uiutils.actions.NewCDIFileWizard;
@@ -31,7 +32,7 @@
@Require(perspective = "Java EE", server = @Server(state = ServerState.NotRunning, version = "6.0", operator = ">="))
@RunWith(RequirementAwareSuite.class)
-@SuiteClasses({ CDIAllBotTests.class })
+@SuiteClasses({ CDIAllBotTests.class, CDISmokeBotTests.class })
public class CdiATWizardTest extends CDIBase {
private static final String PROJECT_NAME = "CDIProject1";
@@ -175,7 +176,7 @@
@Test
public void testStereotype() {
- CDIWizard w = CDIUtil.stereotype("cdi", "S1", null, null, false, false, false,
+ CDIWizard w = CDIUtil.stereotype("cdi", "S1", null, null, false, false, false, false,
false);
assertEquals(9, w.getScopes().size());
assertEquals(5, w.getTargets().size());
@@ -193,7 +194,7 @@
assertFalse(code.contains("@Inherited"));
assertFalse(code.startsWith("/**"));
- CDIUtil.stereotype("cdi", "S2", "@Scope3", "FIELD", true, true, true, true)
+ CDIUtil.stereotype("cdi", "S2", "@Scope3", "FIELD", true, true, true, false, true)
.finish();
util.waitForNonIgnoredJobs();
ed = new SWTWorkbenchBot().activeEditor();
@@ -209,7 +210,7 @@
assertTrue(code.contains("@Target({ FIELD })"));
assertTrue(code.startsWith("/**"));
- w = CDIUtil.stereotype("cdi", "S3", null, null, false, false, true, false);
+ w = CDIUtil.stereotype("cdi", "S3", null, null, false, false, true, false, false);
w.addIBinding("cdi.B1");
w.addStereotype("cdi.S1");
w.finish();
@@ -312,7 +313,7 @@
@Test
public void testBean() {
- CDIWizard w = CDIUtil.bean("cdi", "Bean1", true, true, false, false, null, null, null, null);
+ CDIWizard w = CDIUtil.bean("cdi", "Bean1", true, true, false, false, false, false, null, null, null, null);
w.finish();
util.waitForNonIgnoredJobs();
SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
@@ -325,7 +326,7 @@
assertFalse(code.contains("final"));
assertFalse(code.startsWith("/**"));
- w = CDIUtil.bean("cdi", "Bean2", false, false, true, true, "", null, "@Dependent", null);
+ w = CDIUtil.bean("cdi", "Bean2", false, false, true, true, false, false, "", null, "@Dependent", null);
w.finish();
util.waitForNonIgnoredJobs();
ed = new SWTWorkbenchBot().activeEditor();
@@ -339,7 +340,7 @@
assertTrue(code.contains("final class Bean2 {"));
assertTrue(code.startsWith("/**"));
- w = CDIUtil.bean("cdi", "Bean3", true, false, false, true, "TestedBean", null, "@Scope2", "Q1");
+ w = CDIUtil.bean("cdi", "Bean3", true, false, false, true, false, false, "TestedBean", null, "@Scope2", "Q1");
w.finish();
util.waitForNonIgnoredJobs();
ed = new SWTWorkbenchBot().activeEditor();
13 years, 3 months
JBoss Tools SVN: r35514 - in trunk/bpel: plugins/org.jboss.tools.bpel.runtimes and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2011-10-10 11:20:49 -0400 (Mon, 10 Oct 2011)
New Revision: 35514
Added:
trunk/bpel/.project
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
Log:
Merge workspace/bbrodt/o.j.t.bpel.runtimes with trunk/bpel - see https://issues.jboss.org/browse/JBDS-1810
Added: trunk/bpel/.project
===================================================================
--- trunk/bpel/.project (rev 0)
+++ trunk/bpel/.project 2011-10-10 15:20:49 UTC (rev 35514)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.bpel-trunk</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Modified: trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml
===================================================================
--- trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml 2011-10-10 15:13:43 UTC (rev 35513)
+++ trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml 2011-10-10 15:20:49 UTC (rev 35514)
@@ -32,12 +32,13 @@
<description>%NEW_BPEL_PROJECT_DESCRIPTION</description>
</wizard>
</extension>
-
+ <!--
<extension point="org.eclipse.wst.common.project.facet.ui.wizardPages">
<wizard-pages action="bpel.facet.core.install">
<page class="org.jboss.tools.bpel.runtimes.ui.wizards.BPELFacetInstallPage"/>
</wizard-pages>
</extension>
+ -->
<!--=========================================================================-->
@@ -107,7 +108,8 @@
</and>
</constraint>
</project-facet-version>
-
+
+<!--
<action facet="bpel.facet.core" version="2.0" type="INSTALL" id="bpel.facet.core.install">
<delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetInstallDelegate"/>
<config-factory class="org.jboss.tools.bpel.runtimes.facets.BPELFacetInstallDataModelProvider"/>
@@ -116,6 +118,7 @@
<action facet="bpel.facet.core" version="2.0" type="UNINSTALL" id="bpel.facet.core.uninstall">
<delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetUninstallDelegate"/>
</action>
+-->
<category id="bpel.category">
<label>%BPEL_FACET_CATEGORY_LABEL</label>
Modified: trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java
===================================================================
--- trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java 2011-10-10 15:13:43 UTC (rev 35513)
+++ trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/BPELModuleFactoryDelegate.java 2011-10-10 15:20:49 UTC (rev 35514)
@@ -95,7 +95,7 @@
protected boolean canHandleProject(IProject p) {
// https://issues.jboss.org/browse/JBIDE-8533
// Added support for deprecated jbt.bpel.facet.core
- return FacetedProjectUtilities.isProjectOfType(p, IBPELModuleFacetConstants.BPEL_PROJECT_FACET) ||
+ return //FacetedProjectUtilities.isProjectOfType(p, IBPELModuleFacetConstants.BPEL_PROJECT_FACET) ||
FacetedProjectUtilities.isProjectOfType(p, IBPELModuleFacetConstants.JBT_BPEL_PROJECT_FACET);
}
Modified: trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
===================================================================
--- trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-10-10 15:13:43 UTC (rev 35513)
+++ trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-10-10 15:20:49 UTC (rev 35514)
@@ -72,7 +72,10 @@
if( LocalPublishMethod.LOCAL_PUBLISH_METHOD.equals(method)
&& module != null && module.length > 0
&& module[module.length-1] != null
- && module[module.length-1].getModuleType().getId().equals(IBPELModuleFacetConstants.BPEL_MODULE_TYPE))
+ && (
+ module[module.length-1].getModuleType().getId().equals(IBPELModuleFacetConstants.BPEL_MODULE_TYPE) ||
+ module[module.length-1].getModuleType().getId().equals("bpel.module"))
+ )
return true;
return false;
}
@@ -104,17 +107,15 @@
// org.eclipse.wst.server.ui.internal.wizard.ModifyModulesWizard
// but there is no WizardFragment extension point for this class...
//
- if (status!=null) {
+ if (status!=null && !status.isOK()) {
final IStatus s = status;
- if (!s.isOK()) {
- Display.getDefault().syncExec(new Runnable() {
- public void run() {
- MessageDialog.openWarning(Display.getDefault()
- .getActiveShell(), Messages.DeployError, s
- .getMessage());
- }
- });
- }
+ Display.getDefault().syncExec(new Runnable() {
+ public void run() {
+ MessageDialog.openWarning(Display.getDefault()
+ .getActiveShell(), Messages.DeployError, s
+ .getMessage());
+ }
+ });
}
return status == null ? Status.OK_STATUS : status;
}
@@ -140,7 +141,7 @@
}
}
if (!hasDeployXML) {
- MultiStatus ms = new MultiStatus(JBossServerCorePlugin.PLUGIN_ID, IEventCodes.JST_PUB_FULL_FAIL,
+ Status ms = new Status(IStatus.ERROR,JBossServerCorePlugin.PLUGIN_ID, IEventCodes.JST_PUB_FULL_FAIL,
NLS.bind(Messages.MissingDeployXML, last.getName()), null);
return ms;
}
13 years, 3 months
JBoss Tools SVN: r35513 - trunk/central/plugins/org.jboss.tools.central.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-10-10 11:13:43 -0400 (Mon, 10 Oct 2011)
New Revision: 35513
Modified:
trunk/central/plugins/org.jboss.tools.central/
Log:
JBIDE-9368 Dashboard(s) for easy news aggregation, twitter and easy additional/3rd party plugin installation and project template/creation
Property changes on: trunk/central/plugins/org.jboss.tools.central
___________________________________________________________________
Added: svn:ignore
+ bin
13 years, 3 months
JBoss Tools SVN: r35512 - trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-10-10 08:15:41 -0400 (Mon, 10 Oct 2011)
New Revision: 35512
Modified:
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ServerAdapterWizardModel.java
Log:
JBIDE-9793 - preparing for pair-coding, to minimize collisions.
Modified: trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java
===================================================================
--- trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-10 12:02:05 UTC (rev 35511)
+++ trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/AdapterWizardPage.java 2011-10-10 12:15:41 UTC (rev 35512)
@@ -63,6 +63,10 @@
fillLayout.marginHeight = 6;
fillLayout.marginWidth = 6;
serverAdapterGroup.setLayout(fillLayout);
+ fillServerAdapterGroup(serverAdapterGroup);
+ }
+
+ private void fillServerAdapterGroup(Group serverAdapterGroup) {
Button serverAdapterCheckbox = new Button(serverAdapterGroup, SWT.CHECK);
serverAdapterCheckbox.setText("Create a JBoss server adapter");
}
Modified: trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ServerAdapterWizardModel.java
===================================================================
--- trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ServerAdapterWizardModel.java 2011-10-10 12:02:05 UTC (rev 35511)
+++ trunk/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ServerAdapterWizardModel.java 2011-10-10 12:15:41 UTC (rev 35512)
@@ -61,7 +61,13 @@
Repository repository = createRepository(applicationWorkingdir);
// TODO replace remote name by user setting
EGitUtils.addRemoteTo("openshift", new URIish(application.getGitUri()), repository);
+
+ createServerAdapterIfRequired();
}
+
+ private void createServerAdapterIfRequired() {
+ // TODO
+ }
private Repository createRepository(String name) throws IOException {
InitCommand init = Git.init();
13 years, 3 months