JBoss Tools SVN: r18648 - trunk/jsf/docs/userguide/en/images/editors_features.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-11-12 09:03:47 -0500 (Thu, 12 Nov 2009)
New Revision: 18648
Added:
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_38.png
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_39.png
Log:
https://jira.jboss.org/jira/browse/JBDS-923
https://jira.jboss.org/jira/browse/JBDS-915
openon css classes functinality is documented
Added: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_38.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_38.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_39.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_39.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 2 months
JBoss Tools SVN: r18647 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-11-12 09:03:06 -0500 (Thu, 12 Nov 2009)
New Revision: 18647
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-923
https://jira.jboss.org/jira/browse/JBDS-915
openon css classes functinality is documented
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-11-12 13:55:57 UTC (rev 18646)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-11-12 14:03:06 UTC (rev 18647)
@@ -47,7 +47,7 @@
<property>Ctrl+Click</property>
</emphasis> on a reference to another file and the file will be opened.</para>
- <para>OpenOn is available for the following files:</para>
+ <para>OpenOn is available for the following files and classes:</para>
<itemizedlist>
<listitem>
<para>
@@ -62,7 +62,11 @@
<listitem>
<para>Java files</para>
</listitem>
+ <listitem>
+ <para> <link linkend="cssclasses">CSS classes</link> </para>
+ </listitem>
</itemizedlist>
+
<section id="XMLFiles232">
<title>XML Files</title>
@@ -162,8 +166,31 @@
</imageobject>
</mediaobject>
</figure>
-
</section>
+
+ <section id="cssclasses">
+ <title>CSS Classes</title>
+ <para>You can quickly navigate through CSS classes using OpenOn</para>
+ <figure>
+ <title>OpenOn With CSS Class</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/editors_features/editors_features_38.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ OpenOn is also implemented for css classes added by a complex link.
+ <figure>
+ <title>OpenOn With CSS Class added by a complex link</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/editors_features/editors_features_39.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
</section>
<section id="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">
15 years, 2 months
JBoss Tools SVN: r18645 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/WEB-INF/lib.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-11-12 08:37:34 -0500 (Thu, 12 Nov 2009)
New Revision: 18645
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/WEB-INF/lib/jsf-api-2.0.1-SNAPSHOT.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/WEB-INF/lib/jsf-impl-2.0.1-SNAPSHOT.jar
Log:
JSF libraries in test project has been updated
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/WEB-INF/lib/jsf-api-2.0.1-SNAPSHOT.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/WEB-INF/lib/jsf-api-2.0.1-SNAPSHOT.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/WEB-INF/lib/jsf-impl-2.0.1-SNAPSHOT.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/WEB-INF/lib/jsf-impl-2.0.1-SNAPSHOT.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 2 months
JBoss Tools SVN: r18644 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-12 07:51:04 -0500 (Thu, 12 Nov 2009)
New Revision: 18644
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2023
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 2009-11-12 12:23:22 UTC (rev 18643)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 2009-11-12 12:51:04 UTC (rev 18644)
@@ -267,7 +267,7 @@
}
private ArrayList filterContentProposalsByValueFilter(ArrayList filteredContentProposals) {
- if(valueFilter != null && filteredContentProposals != null && filteredContentProposals.size() < 200) {
+ if(valueFilter != null && filteredContentProposals != null /*&& filteredContentProposals.size() < 200*/) {
ArrayList filteredContentProposals2 = new ArrayList();
ListIterator iterator = filteredContentProposals.listIterator();
while (iterator.hasNext()) {
15 years, 2 months
JBoss Tools SVN: r18643 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test: jbide and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2009-11-12 07:23:22 -0500 (Thu, 12 Nov 2009)
New Revision: 18643
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java
Removed:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3810 test was redesigned.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2009-11-12 11:37:15 UTC (rev 18642)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2009-11-12 12:23:22 UTC (rev 18643)
@@ -58,7 +58,7 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3632Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3650Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3734Test;
-import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3810Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.EditingSPecialSymbolsVPE_JBIDE3810;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3969Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4037Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4179Test;
@@ -175,7 +175,7 @@
suite.addTestSuite(OpenOnCssClassTest_JBIDE4775.class);
suite.addTestSuite(VPERefreshTest.class);
suite.addTestSuite(OpenOnInsideJspRoot_JBIDE4852.class);
- suite.addTestSuite(JBIDE3810Test.class);
+ suite.addTestSuite(EditingSPecialSymbolsVPE_JBIDE3810.class);
// $JUnit-END$
// added by Max Areshkau
// add here projects which should be imported for junit tests
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java 2009-11-12 12:23:22 UTC (rev 18643)
@@ -0,0 +1,168 @@
+package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.VpeEditorPart;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMAbstractView;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMDocumentEvent;
+import org.mozilla.interfaces.nsIDOMDocumentView;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMEvent;
+import org.mozilla.interfaces.nsIDOMEventTarget;
+import org.mozilla.interfaces.nsIDOMKeyEvent;
+import org.mozilla.interfaces.nsIDOMNSEvent;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.mozilla.interfaces.nsIDOMWindowUtils;
+import org.mozilla.interfaces.nsIInterfaceRequestor;
+import org.w3c.dom.Node;
+import org.w3c.dom.Text;
+
+@SuppressWarnings("restriction")
+public class EditingSPecialSymbolsVPE_JBIDE3810 extends VpeTest {
+
+ private final static int clientX = 20;
+ private final static int clientY = 10;
+ private final static long delay = 500;
+
+ public EditingSPecialSymbolsVPE_JBIDE3810(String name) {
+ super(name);
+ }
+
+ public void testEditingSPecialSymbolsVPE_JBIDE3810() throws Exception {
+ setException(null);
+ IFile file = (IFile) TestUtil.getComponentPath(
+ "JBIDE/3810/JBIDE3810.jsp", //$NON-NLS-1$
+ JsfAllTests.IMPORT_PROJECT_NAME);
+ IEditorInput editorInput = new FileEditorInput(file);
+ JSPMultiPageEditor part = openEditor(editorInput);
+ TestUtil.waitForIdle();
+ TestUtil.delay(3000);
+ VpeController controller = TestUtil.getVpeController(part);
+ Mouse mouse = new Mouse(controller, delay);
+ mouse.click(clientX, clientY);
+ Keybord keybord = new Keybord(controller, delay);
+ keybord.pressDel().pressBackSP().pressLeft().pressBackSP();
+ compareVisualAndSourceTargets(part);
+ }
+
+ private class Keybord {
+
+ private nsIDOMDocumentEvent documentEvent;
+ private nsIDOMEventTarget eventTarget;
+ private nsIDOMAbstractView abstractView;
+ private long delay;
+
+ public Keybord(VpeController controller, long delay) {
+ this.delay = delay;
+ nsIDOMDocument idomDocument = controller.getXulRunnerEditor()
+ .getDOMDocument();
+ nsIDOMDocumentView documentView = (nsIDOMDocumentView) idomDocument
+ .queryInterface(nsIDOMDocumentView.NS_IDOMDOCUMENTVIEW_IID);
+ abstractView = documentView.getDefaultView();
+ documentEvent = (nsIDOMDocumentEvent) idomDocument
+ .queryInterface(nsIDOMDocumentEvent.NS_IDOMDOCUMENTEVENT_IID);
+ eventTarget = (nsIDOMEventTarget) idomDocument
+ .queryInterface(nsIDOMEventTarget.NS_IDOMEVENTTARGET_IID);
+ }
+
+ public Keybord pressDel() {
+ nsIDOMEvent delEvent = documentEvent.createEvent("KeyboardEvent");
+ nsIDOMKeyEvent delKeyEvent = (nsIDOMKeyEvent) delEvent
+ .queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
+ delKeyEvent
+ .initKeyEvent("keypress", true, true, abstractView, false,
+ false, false, false, nsIDOMKeyEvent.DOM_VK_DELETE,
+ 0);
+ eventTarget.dispatchEvent(delKeyEvent);
+ TestUtil.waitForIdle();
+ TestUtil.delay(this.delay);
+ return this;
+ }
+
+ public Keybord pressBackSP() {
+ nsIDOMEvent bsEvent = documentEvent.createEvent("KeyboardEvent");
+ nsIDOMKeyEvent bsKeyEvent = (nsIDOMKeyEvent) bsEvent
+ .queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
+ bsKeyEvent.initKeyEvent("keypress", true, true, abstractView,
+ false, false, false, false,
+ nsIDOMKeyEvent.DOM_VK_BACK_SPACE, 0);
+ eventTarget.dispatchEvent(bsKeyEvent);
+ TestUtil.waitForIdle();
+ TestUtil.delay(this.delay);
+ return this;
+ }
+
+ public Keybord pressLeft() {
+ nsIDOMEvent leftArrowEvent = documentEvent
+ .createEvent("KeyboardEvent");
+ nsIDOMKeyEvent leftArrowKeyEvent = (nsIDOMKeyEvent) leftArrowEvent
+ .queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
+ leftArrowKeyEvent.initKeyEvent("keypress", true, true,
+ abstractView, false, false, false, false,
+ nsIDOMKeyEvent.DOM_VK_LEFT, 0);
+ eventTarget.dispatchEvent(leftArrowKeyEvent);
+ TestUtil.waitForIdle();
+ TestUtil.delay(this.delay);
+ return this;
+ }
+ }
+
+ private class Mouse {
+
+ private long delay;
+ private nsIDOMWindowUtils windowUtils;
+
+ public Mouse(VpeController controller, long delay) {
+ this.delay = delay;
+ nsIDOMDocument idomDocument = controller.getXulRunnerEditor()
+ .getDOMDocument();
+ nsIDOMDocumentView documentView = (nsIDOMDocumentView) idomDocument
+ .queryInterface(nsIDOMDocumentView.NS_IDOMDOCUMENTVIEW_IID);
+ nsIDOMAbstractView abstractView = documentView.getDefaultView();
+ nsIInterfaceRequestor requestor = (nsIInterfaceRequestor) abstractView
+ .queryInterface(nsIInterfaceRequestor.NS_IINTERFACEREQUESTOR_IID);
+ nsIDOMWindowUtils windowUtils = (nsIDOMWindowUtils) requestor
+ .getInterface(nsIDOMWindowUtils.NS_IDOMWINDOWUTILS_IID);
+ this.windowUtils = windowUtils;
+ }
+
+ public Mouse click(int clientX, int clientY) {
+ windowUtils.sendMouseEvent("mousedown", clientX, clientY, 0, 1,
+ nsIDOMNSEvent.MOUSEDOWN, true);
+ windowUtils.sendMouseEvent("mouseup", clientX, clientY, 0, 1,
+ nsIDOMNSEvent.MOUSEUP, true);
+ TestUtil.delay(this.delay);
+ return this;
+ }
+
+ }
+
+ @SuppressWarnings("deprecation")
+ private void compareVisualAndSourceTargets(JSPMultiPageEditor part) {
+ nsIDOMElement headElement = ((VpeEditorPart) part.getVisualEditor())
+ .getVisualEditor().getContentArea();
+ nsIDOMNodeList nodeList = headElement.getElementsByTagName("SPAN");
+ nsIDOMNode node = nodeList.item(0).getChildNodes().item(0);
+ String valueToCompare = node.getNodeValue();
+ assertEquals("\na\n", valueToCompare);
+ IStructuredModel model = part.getSourceEditor().getModel();
+ IDOMModel sourceModel = (IDOMModel) model;
+ IDOMDocument sourceDocument = sourceModel.getDocument();
+ Node domNode = sourceDocument.getElementsByTagName("body").item(0);
+ String sourceValueToCompare = ((Text) domNode.getChildNodes().item(0))
+ .getNodeValue();
+ assertEquals("\r\na\r\n", sourceValueToCompare);
+ }
+
+}
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java 2009-11-12 11:37:15 UTC (rev 18642)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java 2009-11-12 12:23:22 UTC (rev 18643)
@@ -1,97 +0,0 @@
-package org.jboss.tools.jsf.vpe.jsf.test.jbide;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.editor.VpeEditorPart;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
-import org.mozilla.interfaces.nsIDOMAbstractView;
-import org.mozilla.interfaces.nsIDOMDocument;
-import org.mozilla.interfaces.nsIDOMDocumentEvent;
-import org.mozilla.interfaces.nsIDOMDocumentView;
-import org.mozilla.interfaces.nsIDOMElement;
-import org.mozilla.interfaces.nsIDOMEvent;
-import org.mozilla.interfaces.nsIDOMEventTarget;
-import org.mozilla.interfaces.nsIDOMKeyEvent;
-import org.mozilla.interfaces.nsIDOMNSEvent;
-import org.mozilla.interfaces.nsIDOMNode;
-import org.mozilla.interfaces.nsIDOMNodeList;
-import org.mozilla.interfaces.nsIDOMWindowUtils;
-import org.mozilla.interfaces.nsIInterfaceRequestor;
-import org.w3c.dom.Node;
-import org.w3c.dom.Text;
-
-@SuppressWarnings("restriction")
-public class JBIDE3810Test extends VpeTest {
-
- private final static int clientX = 20;
- private final static int clientY = 10;
-
- public JBIDE3810Test(String name) {
- super(name);
- }
-
- @SuppressWarnings("deprecation")
- public void testJBIDE3810() throws Exception {
- setException(null);
- IFile file = (IFile) TestUtil.getComponentPath("JBIDE/3810/JBIDE3810.jsp", //$NON-NLS-1$
- JsfAllTests.IMPORT_PROJECT_NAME);
- IEditorInput editorInput = new FileEditorInput(file);
- JSPMultiPageEditor part = openEditor(editorInput);
- TestUtil.waitForIdle();
- TestUtil.delay(5000);
- VpeController controller = TestUtil.getVpeController(part);
- nsIDOMDocument idomDocument = controller.getXulRunnerEditor().getDOMDocument();
- nsIDOMDocumentView documentView = (nsIDOMDocumentView) idomDocument.queryInterface(nsIDOMDocumentView.NS_IDOMDOCUMENTVIEW_IID);
- nsIDOMAbstractView abstractView = documentView.getDefaultView();
- nsIInterfaceRequestor requestor = (nsIInterfaceRequestor) abstractView.queryInterface(nsIInterfaceRequestor.NS_IINTERFACEREQUESTOR_IID);
- nsIDOMWindowUtils windowUtils = (nsIDOMWindowUtils) requestor.getInterface(nsIDOMWindowUtils.NS_IDOMWINDOWUTILS_IID);
- windowUtils.sendMouseEvent("mousedown", clientX, clientY, 0, 1, nsIDOMNSEvent.MOUSEDOWN, true);
- windowUtils.sendMouseEvent("mouseup", clientX, clientY, 0, 1, nsIDOMNSEvent.MOUSEUP, true);
- TestUtil.delay(1000);
- nsIDOMDocumentEvent documentEvent = (nsIDOMDocumentEvent) idomDocument.queryInterface(nsIDOMDocumentEvent.NS_IDOMDOCUMENTEVENT_IID);
- nsIDOMEventTarget eventTarget = (nsIDOMEventTarget) idomDocument.queryInterface(nsIDOMEventTarget.NS_IDOMEVENTTARGET_IID);
- nsIDOMEvent delEvent = documentEvent.createEvent("KeyboardEvent");
- nsIDOMKeyEvent delKeyEvent = (nsIDOMKeyEvent) delEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
- delKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_DELETE, 0);
- eventTarget.dispatchEvent(delKeyEvent);
- TestUtil.delay(1000);
- nsIDOMEvent bsEvent = documentEvent.createEvent("KeyboardEvent");
- nsIDOMKeyEvent bsKeyEvent = (nsIDOMKeyEvent) bsEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
- bsKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_BACK_SPACE, 0);
- eventTarget.dispatchEvent(bsKeyEvent);
- TestUtil.delay(1000);
- nsIDOMEvent leftArrowEvent = documentEvent.createEvent("KeyboardEvent");
- nsIDOMKeyEvent leftArrowKeyEvent = (nsIDOMKeyEvent) leftArrowEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
- leftArrowKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_LEFT, 0);
- eventTarget.dispatchEvent(leftArrowKeyEvent);
- TestUtil.delay(1000);
- bsEvent = documentEvent.createEvent("KeyboardEvent");
- bsKeyEvent = (nsIDOMKeyEvent) bsEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
- bsKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_BACK_SPACE, 0);
- eventTarget.dispatchEvent(bsKeyEvent);
- TestUtil.delay(1000);
- nsIDOMElement headElement = ((VpeEditorPart) part.getVisualEditor()).getVisualEditor().getContentArea();
- nsIDOMNodeList nodeList = headElement.getElementsByTagName("SPAN");
- nsIDOMNode node = nodeList.item(0).getChildNodes().item(0);
- String valueToCompare = node.getNodeValue();
- assertEquals("\na\n", valueToCompare);
- IStructuredModel model = part.getSourceEditor().getModel();
- IDOMModel sourceModel = (IDOMModel) model;
- IDOMDocument sourceDocument = null;
- if (sourceModel != null) {
- sourceDocument = sourceModel.getDocument();
- }
- Node domNode = sourceDocument.getElementsByTagName("body").item(0);
- String sourceValueToCompare = ((Text)domNode.getChildNodes().item(0)).getNodeValue();
- assertEquals("\r\na\r\n", sourceValueToCompare);
- }
-
-}
15 years, 2 months
JBoss Tools SVN: r18642 - trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2009-11-12 06:37:15 -0500 (Thu, 12 Nov 2009)
New Revision: 18642
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/META-INF/MANIFEST.MF
Log:
Added SWTBot tests testing creation of JSF Project and adding/removing JSF Capabilities
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/META-INF/MANIFEST.MF 2009-11-12 11:35:36 UTC (rev 18641)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/META-INF/MANIFEST.MF 2009-11-12 11:37:15 UTC (rev 18642)
@@ -13,7 +13,8 @@
org.junit4;bundle-version="4.5.0",
org.eclipse.swtbot.eclipse.spy;bundle-version="2.0.0",
org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
- org.eclipse.swtbot.junit4_x;bundle-version="2.0.0"
+ org.eclipse.swtbot.junit4_x;bundle-version="2.0.0",
+ org.jboss.tools.ui.bot.ext;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Import-Package: org.jboss.tools.ui.bot.test,
15 years, 2 months
JBoss Tools SVN: r18641 - in trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test: smoke and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2009-11-12 06:35:36 -0500 (Thu, 12 Nov 2009)
New Revision: 18641
Added:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/CreateNewJSFProjectTest.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java
Log:
Added SWTBot tests testing creation of JSF Project and adding/removing JSF Capabilities
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java 2009-11-12 09:42:37 UTC (rev 18640)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAllBotTests.java 2009-11-12 11:35:36 UTC (rev 18641)
@@ -1,6 +1,5 @@
package org.jboss.tools.jsf.ui.bot.test;
-import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -9,6 +8,8 @@
import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3579Test;
import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE3920Test;
import org.jboss.tools.jsf.ui.bot.test.cssdialog.jbide.JBIDE4391Test;
+import org.jboss.tools.jsf.ui.bot.test.smoke.AddRemoveJSFCapabilitiesTest;
+import org.jboss.tools.jsf.ui.bot.test.smoke.CreateNewJSFProjectTest;
/**
*
@@ -17,12 +18,15 @@
*/
public class JSFAllBotTests{
public static Test suite(){
- TestSuite suite = new TestSuite("CSS dialog JBIDE tests");
+ TestSuite suite = new TestSuite("JSF all tests");
+ suite.addTestSuite(CreateNewJSFProjectTest.class);
+ suite.addTestSuite(AddRemoveJSFCapabilitiesTest.class);
suite.addTestSuite(JBIDE3148and4441Test.class);
suite.addTestSuite(JBIDE4391Test.class);
suite.addTestSuite(JBIDE3577Test.class);
suite.addTestSuite(JBIDE3579Test.class);
suite.addTestSuite(JBIDE3920Test.class);
+
return suite;
}
}
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java 2009-11-12 11:35:36 UTC (rev 18641)
@@ -0,0 +1,365 @@
+/*******************************************************************************
+ * 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.jsf.ui.bot.test.smoke;
+
+import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withRegex;
+
+import java.io.File;
+
+import org.eclipse.swt.browser.Browser;
+import org.eclipse.swt.widgets.MenuItem;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
+import org.eclipse.swtbot.swt.finder.results.StringResult;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.jboss.tools.jsf.ui.bot.test.JSFAutoTestCase;
+import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+
+/**
+ * Test adding and removing JSF Capabilities from/to JSF Project
+ *
+ * @author Vladimir Pakan
+ */
+
+public class AddRemoveJSFCapabilitiesTest extends JSFAutoTestCase {
+
+ private static final String WEB_PROJECT_JBT_JSF_POPUP_MENU = "JBoss Tools JSF";
+ private static final String PACKAGE_EXPLORER_JBT_POPUP_MENU = "JBoss Tools";
+ private static final String REMOVE_JSF_CAPABILITIES_POPUP_MENU = "Remove JSF Capabilities";
+ private static final String ADD_JSF_CAPABILITIES_POPUP_MENU = "Add JSF Capabilities...";
+ private static final String CLOSE_PROJECT_POPUP_MENU = "Clo&se Project";
+ private static final String OPEN_PROJECT_POPUP_MENU = "Op&en Project";
+ private static final String DELETE_PROJECT_POPUP_MENU = "Delete";
+ private static final String IMPORT_PROJECT_POPUP_MENU = "Import Existing JSF Project...";
+
+ private MenuItem miRunOnServer = null;
+
+ public void testAddRemoveJSFCapabilities() {
+
+ removeJSFCapabilities();
+ addJSFCapabilities();
+ // Test add/remove JSF capabilities after project is closed and reopened
+ closeOpenJsfProject();
+ removeJSFCapabilities();
+ addJSFCapabilities();
+ // Test import of deleted JSF project
+ deleteJsfProject();
+ importJsfProject();
+
+ }
+ /**
+ * Import existing JSF Project to Workspace
+ */
+ private void importJsfProject() {
+
+ openWebProjects();
+
+ openWebProjects();
+ SWTBot webProjects = bot.viewByTitle(WidgetVariables.WEB_PROJECTS).bot();
+ SWTBotTree tree = webProjects.tree();
+
+ tree.setFocus();
+ tree.select(0);
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ IMPORT_PROJECT_POPUP_MENU, false)).click();
+
+ bot.shell("Import JSF Project").activate();
+
+ String[] parts = System.getProperty("eclipse.commands").split("\n");
+
+ int index = 0;
+
+ for (index = 0;parts.length > index + 1 && !parts[index].equals("-data");index+=2){
+ // do nothing just go through
+ }
+
+ if (parts.length > index + 1){
+ String webXmlFileLocation = parts[index + 1] + File.separator
+ + JBT_TEST_PROJECT_NAME + File.separator
+ + "WebContent" + File.separator
+ + "WEB-INF" + File.separator
+ + "web.xml";
+ bot.textWithLabel("web.xml Location*").setText(webXmlFileLocation);
+ }
+ else{
+ throw new RuntimeException("eclipse.commands property doesn't contain -data option");
+ }
+
+ bot.button(WidgetVariables.NEXT_BUTTON).click();
+ // Specify Application Server for Deployment
+ bot.button(WidgetVariables.NEW_BUTTON, 1).click();
+ bot.shell("New Server").activate();
+ bot.tree().expandNode("JBoss Enterprise Middleware")
+ .select("JBoss Enterprise Application Platform 4.3");
+ bot.button(WidgetVariables.FINISH_BUTTON).click();
+ delay();
+ // Finish Import
+ bot.button(WidgetVariables.FINISH_BUTTON).click();
+ bot.shell("Warning").activate();
+ bot.button(WidgetVariables.CONTINUE_BUTTON).click();
+
+ waitForBlockingJobsAcomplished(BUILDING_WS);
+ // Start Application Server
+ openServerView();
+ SWTBot servers = bot.viewByTitle(WidgetVariables.SERVERS)
+ .bot();
+ SWTBotTree serverTree = servers.tree();
+ serverTree.setFocus();
+ serverTree.select(0);
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
+ "Start", false)).click();
+ waitForBlockingJobsAcomplished(45*1000L,STARTING_JBOSS_EAP_43_RUNTIME);
+ // Run it on server
+ openPackageExplorer();
+ SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
+ .bot();
+ SWTBotTree packageExplorerTree = packageExplorer.tree();
+
+ packageExplorerTree.setFocus();
+
+ SWTBotTreeItem packageExplorerTreeItem = packageExplorerTree
+ .getTreeItem(JBT_TEST_PROJECT_NAME);
+ packageExplorerTreeItem.select();
+ packageExplorerTreeItem.click();
+ // Search for Menu Item with Run on Server substring within label
+ final SWTBotMenu menuRunAs = bot.menu("Run").menu("Run As");
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ int menuItemIndex = 0;
+ boolean isFound = false;
+ final MenuItem[] menuItems = menuRunAs.widget.getMenu().getItems();
+ while (!isFound && menuItemIndex < menuItems.length){
+ if (menuItems[menuItemIndex].getText().indexOf("Run on Server") > - 1){
+ isFound = true;
+ }
+ else{
+ menuItemIndex++;
+ }
+ }
+ if (isFound){
+ setMiRunOnServer(menuItems[menuItemIndex]);
+ }
+ else{
+ setMiRunOnServer(null);
+ }
+ }
+ });
+
+ if (getMiRunOnServer() != null){
+ new SWTBotMenu(getMiRunOnServer()).click();
+ }
+ else
+ {
+ throw new WidgetNotFoundException("Menu item with mnemonic Run on Server");
+ }
+
+ bot.shell("Run On Server").activate();
+ bot.button(WidgetVariables.FINISH_BUTTON).click();
+
+ waitForBlockingJobsAcomplished(10*1000L , BUILDING_WS);
+ waitForBlockingJobsAcomplished(10*1000L , UPDATING_INDEXES);
+ // Check Browser Content
+ final SWTBotEditor editor = bot.editorByTitle("Input User Name Page");
+ final Browser browser = ((Browser)editor.bot().widgets(withRegex("<HTML><HEAD>.*\n*.*")).get(0));
+ final String browserText = UIThreadRunnable
+ .syncExec(new StringResult() {
+ public String run() {
+ return browser.getText();
+ }
+ });
+ assertTrue("Displayed HTML page has wrong content",
+ browserText.indexOf("<TITLE>Input User Name Page</TITLE>") > - 1);
+ editor.close();
+ // Stop Application Server and remove Application Server from Server View
+ openServerView();
+ serverTree.setFocus();
+ serverTree.select(0);
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
+ "Stop", false)).click();
+
+ waitForBlockingJobsAcomplished(10*1000L , STOPPING_JBOSS_EAP_43_RUNTIME);
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
+ "Delete", false)).click();
+ bot.shell("Delete Server").activate();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+
+ setException(null);
+
+ }
+ /**
+ * Delete JSF Project from workspace
+ */
+ private void deleteJsfProject() {
+
+ openPackageExplorer();
+ SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
+ .bot();
+ SWTBotTree tree = packageExplorer.tree();
+
+ tree.setFocus();
+
+ SWTBotTreeItem packageExplorerTreeItem = tree
+ .getTreeItem(JBT_TEST_PROJECT_NAME);
+ packageExplorerTreeItem.select();
+ packageExplorerTreeItem.click();
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ DELETE_PROJECT_POPUP_MENU, false)).click();
+
+ bot.shell("Delete Resources").activate();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+
+ delay();
+
+ }
+
+ /**
+ * Remove JSF Capabilities from JSF Project
+ */
+ private void removeJSFCapabilities() {
+
+ openWebProjects();
+ SWTBot webProjects = bot.viewByTitle(WidgetVariables.WEB_PROJECTS).bot();
+ SWTBotTree tree = webProjects.tree();
+
+ tree.setFocus();
+
+ SWTBotTreeItem webProjectsTreeItem = tree
+ .getTreeItem(JBT_TEST_PROJECT_NAME);
+ webProjectsTreeItem.select();
+ webProjectsTreeItem.click();
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ WEB_PROJECT_JBT_JSF_POPUP_MENU, true)).menu(
+ REMOVE_JSF_CAPABILITIES_POPUP_MENU).click();
+
+ bot.shell("Confirmation").activate();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+
+ assertTrue(
+ "Project "
+ + JBT_TEST_PROJECT_NAME
+ + " was not removed from Web Projects view after JSF Capabilities were removed.",
+ !isTreeItemWithinWebProjectsView(JBT_TEST_PROJECT_NAME));
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+ // not used
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ return false;
+ }
+
+ /**
+ * Add JSF Capabilities to JSF Project
+ */
+ private void addJSFCapabilities() {
+
+ openPackageExplorer();
+ SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
+ .bot();
+ SWTBotTree tree = packageExplorer.tree();
+
+ tree.setFocus();
+
+ SWTBotTreeItem packageExplorerTreeItem = tree
+ .getTreeItem(JBT_TEST_PROJECT_NAME);
+ packageExplorerTreeItem.select();
+ packageExplorerTreeItem.click();
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ PACKAGE_EXPLORER_JBT_POPUP_MENU, false)).menu(
+ ADD_JSF_CAPABILITIES_POPUP_MENU).click();
+
+ bot.shell("Add JSF Capabilities").activate();
+ bot.button(WidgetVariables.NEXT_BUTTON).click();
+ bot.button(WidgetVariables.FINISH_BUTTON).click();
+
+ delay();
+
+ assertTrue("JSF Capabilities were not added to project "
+ + JBT_TEST_PROJECT_NAME,
+ isTreeItemWithinWebProjectsView(JBT_TEST_PROJECT_NAME));
+
+ }
+
+ /**
+ * Return true when Web Projects Tree contains item with label treeItemLabel
+ *
+ * @param treeItemLabel
+ * @return
+ */
+ private boolean isTreeItemWithinWebProjectsView(String treeItemLabel) {
+
+ openWebProjects();
+ SWTBot webProjects = bot.viewByTitle(WidgetVariables.WEB_PROJECTS).bot();
+ SWTBotTree tree = webProjects.tree();
+
+ boolean isTreeItemWithinWebProjectsView = false;
+
+ try {
+ tree.getTreeItem(JBT_TEST_PROJECT_NAME);
+ isTreeItemWithinWebProjectsView = true;
+ } catch (WidgetNotFoundException e) {
+ isTreeItemWithinWebProjectsView = false;
+ }
+
+ return isTreeItemWithinWebProjectsView;
+
+ }
+
+ /**
+ * Close and reopen JSF test project
+ */
+ private void closeOpenJsfProject() {
+
+ openPackageExplorer();
+ SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
+ .bot();
+ SWTBotTree tree = packageExplorer.tree();
+
+ tree.setFocus();
+
+ SWTBotTreeItem packageExplorerTreeItem = tree
+ .getTreeItem(JBT_TEST_PROJECT_NAME);
+ packageExplorerTreeItem.select();
+ packageExplorerTreeItem.click();
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ CLOSE_PROJECT_POPUP_MENU, false)).click();
+
+ delay();
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
+ OPEN_PROJECT_POPUP_MENU, false)).click();
+
+ }
+
+ private void setMiRunOnServer(MenuItem menuItem){
+ miRunOnServer = menuItem;
+ }
+
+ private MenuItem getMiRunOnServer(){
+ return miRunOnServer;
+ }
+
+}
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/CreateNewJSFProjectTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/CreateNewJSFProjectTest.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/CreateNewJSFProjectTest.java 2009-11-12 11:35:36 UTC (rev 18641)
@@ -0,0 +1,54 @@
+ /*******************************************************************************
+ * 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.jsf.ui.bot.test.smoke;
+
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.jsf.ui.bot.test.JSFAutoTestCase;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+/**
+ * Test adding new JSF Project
+ * @author Vladimir Pakan
+ *
+ */
+public class CreateNewJSFProjectTest extends JSFAutoTestCase{
+
+ public void testCreateNewJSFProject() {
+
+ // Test create new JSF Project
+ // New JSF Project is created via setUp() method of super class VPEAutoTestCase.java
+ openPackageExplorer();
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ boolean isOk = false;
+ try {
+ tree.getTreeItem(JBT_TEST_PROJECT_NAME);
+ isOk = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ assertTrue("Project "
+ + JBT_TEST_PROJECT_NAME
+ + " was not created properly.",isOk);
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+ // not used
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ return false;
+ }
+
+}
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/CreateNewJSFProjectTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 2 months
JBoss Tools SVN: r18640 - trunk/examples/plugins/org.jboss.tools.project.examples.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2009-11-12 04:42:37 -0500 (Thu, 12 Nov 2009)
New Revision: 18640
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
Log:
JBIDE-5040:Add Riftsaw samples to the JBT Project Examples wizard offerings
create a new project examples site only for bpel
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2009-11-12 09:38:49 UTC (rev 18639)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2009-11-12 09:42:37 UTC (rev 18640)
@@ -7,5 +7,5 @@
ProjectExamples=Project Examples file
JBoss_Developer_Studio_Examples = JBoss Developer Studio Examples
JBoss_Tools_Community_Examples = JBoss Tools Community Examples
-JBoss_Tools_Community_Examples_3.1M4 = JBoss Tools Community Examples(for 3.1M4 or higher)
+JBoss_Tools_Community_Examples_3.1M4 = JBoss Tools Community Examples(for 3.1M3 or higher)
Project_Examples = Project Examples
\ No newline at end of file
15 years, 2 months
JBoss Tools SVN: r18639 - trunk/examples/plugins/org.jboss.tools.project.examples.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2009-11-12 04:38:49 -0500 (Thu, 12 Nov 2009)
New Revision: 18639
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml
Log:
JBIDE-5040:Add Riftsaw samples to the JBT Project Examples wizard offerings
create a new project examples site only for bpel
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2009-11-12 09:34:39 UTC (rev 18638)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2009-11-12 09:38:49 UTC (rev 18639)
@@ -7,4 +7,5 @@
ProjectExamples=Project Examples file
JBoss_Developer_Studio_Examples = JBoss Developer Studio Examples
JBoss_Tools_Community_Examples = JBoss Tools Community Examples
+JBoss_Tools_Community_Examples_3.1M4 = JBoss Tools Community Examples(for 3.1M4 or higher)
Project_Examples = Project Examples
\ No newline at end of file
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2009-11-12 09:34:39 UTC (rev 18638)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2009-11-12 09:38:49 UTC (rev 18639)
@@ -64,7 +64,7 @@
point="org.jboss.tools.project.examples.projectExamplesXml"
name="%JBoss_Tools_Community_Examples">
<url>http://anonsvn.jboss.org/repos/jbosstools/workspace/examples/project-exam... </url>
- <experimental>true</experimental>
+ <experimental>false</experimental>
</extension>
<extension
@@ -80,4 +80,14 @@
point="org.eclipse.core.runtime.preferences">
<initializer class="org.jboss.tools.project.examples.preferences.ProjectExamplesPreferencesInitializer"/>
</extension>
+ <extension
+ name="%JBoss_Tools_Community_Examples_3.1M4"
+ point="org.jboss.tools.project.examples.projectExamplesXml">
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/examples/project-exam...
+ </url>
+ <experimental>
+ false
+ </experimental>
+ </extension>
</plugin>
15 years, 2 months
JBoss Tools SVN: r18638 - workspace/examples.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2009-11-12 04:34:39 -0500 (Thu, 12 Nov 2009)
New Revision: 18638
Added:
workspace/examples/project-examples-3.1M4.xml
Log:
JBIDE-5040:Add Riftsaw samples to the JBT Project Examples wizard offerings
Added: workspace/examples/project-examples-3.1M4.xml
===================================================================
--- workspace/examples/project-examples-3.1M4.xml (rev 0)
+++ workspace/examples/project-examples-3.1M4.xml 2009-11-12 09:34:39 UTC (rev 18638)
@@ -0,0 +1,25 @@
+<projects>
+
+ <project>
+ <category>BPEL</category>
+ <name>HelloWorld</name>
+ <shortDescription>A simple BPEL example</shortDescription>
+ <description>This example is to show a simple BPEL2.0 example.</description>
+ <size>10000</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/grid/bpel-examples/he...
+ </url>
+ </project>
+
+ <project>
+ <category>BPEL</category>
+ <name>Simple_Correlation</name>
+ <shortDescription>A correlation BPEL example</shortDescription>
+ <description>This example is to show how to use the correlation in the BPEL2.0 example.</description>
+ <size>11000</size>
+ <url>
+ http://anonsvn.jboss.org/repos/jbosstools/workspace/grid/bpel-examples/si...
+ </url>
+ </project>
+</projects>
+
15 years, 2 months