JBoss Tools SVN: r5436 - in trunk/seam/tests/org.jboss.tools.seam.core.test: projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-12-25 07:32:25 -0500 (Tue, 25 Dec 2007)
New Revision: 5436
Added:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.4
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.2
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.3
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.3
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.xhtml
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.java
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1550
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2 2007-12-25 11:04:52 UTC (rev 5435)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2 2007-12-25 12:32:25 UTC (rev 5436)
@@ -19,7 +19,7 @@
<h:form id="abcComponentForm">
<h:commandButton id="abcComponent" value="abcComponent!"
- action="#{bcComponent.abcComponent}"/>
+ action="#{bcComponent.actionType}"/>
</h:form>
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3 2007-12-25 11:04:52 UTC (rev 5435)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3 2007-12-25 12:32:25 UTC (rev 5436)
@@ -19,7 +19,7 @@
<h:form id="abcComponentForm">
<h:commandButton id="abcComponent" value="abcComponent!"
- action="#{abcComponent.bcComponent}"/>
+ action="#{abcComponent.actionType2}"/>
</h:form>
Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.4
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.4 (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.4 2007-12-25 12:32:25 UTC (rev 5436)
@@ -0,0 +1,31 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich"
+ xmlns:a="https://ajax4jsf.dev.java.net/ajax"
+ template="layout/template.xhtml">
+
+<ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">abcComponent</f:facet>
+
+ <h:form id="abcComponentForm">
+
+ <h:commandButton id="abcComponent" value="abcComponent!"
+ action="#{abcComponent.actionType}"/>
+
+ </h:form>
+
+ </rich:panel>
+
+</ui:define>
+
+</ui:composition>
+
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.xhtml
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.xhtml 2007-12-25 11:04:52 UTC (rev 5435)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.xhtml 2007-12-25 12:32:25 UTC (rev 5436)
@@ -19,7 +19,7 @@
<h:form id="abcComponentForm">
<h:commandButton id="abcComponent" value="abcComponent!"
- action="#{abcComponent.abcComponent}"/>
+ action="#{abcComponent.actionType}"/>
</h:form>
Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.2
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.2 (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.2 2007-12-25 12:32:25 UTC (rev 5436)
@@ -0,0 +1,26 @@
+package org.domain.SeamWebWarTestProject.session;
+
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.jboss.seam.log.Log;
+
+@Name("abcComponent")
+public class AbcComponent {
+
+ @Logger private Log log;
+
+ @Out private String actionType;
+
+ public void abcComponent()
+ {
+ //implement your business logic here
+ log.info("abcComponent.abcComponent() action called");
+ }
+
+ //add additional action methods
+
+ public void setActionType(String actionType) {
+ this.actionType = actionType;
+ }
+}
Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.3
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.3 (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.3 2007-12-25 12:32:25 UTC (rev 5436)
@@ -0,0 +1,25 @@
+package org.domain.SeamWebWarTestProject.session;
+
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.jboss.seam.log.Log;
+
+@Name("abcComponent")
+public class AbcComponent {
+
+ @Logger private Log log;
+
+ @Out private String actionType;
+
+ public void abcComponent()
+ {
+ //implement your business logic here
+ log.info("abcComponent.abcComponent() action called");
+ }
+
+ //add additional action methods
+ public String getActionType() {
+ return actionType;
+ }
+}
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.java 2007-12-25 11:04:52 UTC (rev 5435)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.java 2007-12-25 12:32:25 UTC (rev 5436)
@@ -2,6 +2,7 @@
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
import org.jboss.seam.log.Log;
@Name("abcComponent")
@@ -9,6 +10,8 @@
@Logger private Log log;
+ @Out private String actionType;
+
public void abcComponent()
{
//implement your business logic here
@@ -16,5 +19,11 @@
}
//add additional action methods
-
+ public String getActionType() {
+ return actionType;
+ }
+
+ public void setActionType(String actionType) {
+ this.actionType = actionType;
+ }
}
Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.3
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.3 (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.3 2007-12-25 12:32:25 UTC (rev 5436)
@@ -0,0 +1,20 @@
+package org.domain.SeamWebWarTestProject.session;
+
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.log.Log;
+
+@Name("bbcComponent")
+public class BbcComponent {
+
+ @Logger private Log log;
+
+ public void bbcComponent()
+ {
+ //implement your business logic here
+ log.info("bbcComponent.bbcComponent() action called");
+ }
+
+ //add additional action methods
+
+}
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2007-12-25 11:04:52 UTC (rev 5435)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2007-12-25 12:32:25 UTC (rev 5436)
@@ -229,6 +229,16 @@
lineNumbers = getMarkersNumbersOfLine(componentsFile);
assertTrue("Problem marker has wrong line number", lineNumbers[0] == 16);
+
+ // resolve error in BbcComponent.java
+ IFile bbcComponentFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.3");
+ try{
+ bbcComponentFile.setContents(bbcComponentFile3.getContents(), true, false, new NullProgressMonitor());
+ bbcComponentFile.touch(new NullProgressMonitor());
+ }catch(Exception ex){
+ JUnitUtils.fail("Error in changing 'BbcComponent.java' content to " +
+ "'BbcComponent.3'", ex);
+ }
}
public void testEntitiesValidator() {
@@ -519,10 +529,15 @@
ISeamProject seamProject = getSeamProject(project);
IFile abcComponentXHTMLFile = project.getFile("WebContent/abcComponent.xhtml");
+ IFile abcComponentFile = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.java");
+ refreshProject(project);
int number = getMarkersNumber(abcComponentXHTMLFile);
assertTrue("Problem marker was found in abcComponent.xhtml", number == 0);
+
+ number = getMarkersNumber(abcComponentFile);
+ assertTrue("Problem marker was found in AbcComponent.java", number == 0);
// Context variable cannot be resolved
System.out.println("Test - Context variable cannot be resolved");
@@ -562,7 +577,7 @@
messages = getMarkersMessage(abcComponentXHTMLFile);
- assertTrue("Problem marker 'Property cannot be resolved' not found", "bcComponent cannot be resolved".equals(messages[0]));
+ assertTrue("Problem marker 'Property cannot be resolved' not found", "actionType2 cannot be resolved".equals(messages[0]));
lineNumbers = getMarkersNumbersOfLine(abcComponentXHTMLFile);
@@ -570,7 +585,59 @@
// Unpaired Getter/Setter
System.out.println("Test - Unpaired Getter/Setter");
+
+ IFile abcComponentXHTMLFile4 = project.getFile("WebContent/abcComponent.4");
+ try{
+ abcComponentXHTMLFile.setContents(abcComponentXHTMLFile4.getContents(), true, false, new NullProgressMonitor());
+ abcComponentXHTMLFile.touch(new NullProgressMonitor());
+ }catch(Exception ex){
+ JUnitUtils.fail("Error in changing 'abcComponent.xhtml' content to " +
+ "'abcComponent.4'", ex);
+ }
+
+ refreshProject(project);
+
+ number = getMarkersNumber(abcComponentXHTMLFile);
+ assertTrue("Problem marker was found in abcComponent.xhtml", number == 0);
+ IFile abcComponentFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.2");
+ try{
+ abcComponentFile.setContents(abcComponentFile2.getContents(), true, false, new NullProgressMonitor());
+ abcComponentFile.touch(new NullProgressMonitor());
+ }catch(Exception ex){
+ JUnitUtils.fail("Error in changing 'abcComponent.java' content to " +
+ "'abcComponent.2'", ex);
+ }
+
+ refreshProject(project);
+
+ messages = getMarkersMessage(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker 'Unpaired Getter/Setter' not found", "Property \"actionType\" has only Setter. Getter is missing.".equals(messages[0]));
+
+ lineNumbers = getMarkersNumbersOfLine(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker has wrong line number", lineNumbers[0] == 22);
+
+ IFile abcComponentFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.3");
+ try{
+ abcComponentFile.setContents(abcComponentFile3.getContents(), true, false, new NullProgressMonitor());
+ abcComponentFile.touch(new NullProgressMonitor());
+ }catch(Exception ex){
+ JUnitUtils.fail("Error in changing 'abcComponent.java' content to " +
+ "'abcComponent.3'", ex);
+ }
+
+ refreshProject(project);
+
+ messages = getMarkersMessage(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker 'Unpaired Getter/Setter' not found", "Property \"actionType\" has only Getter. Setter is missing.".equals(messages[0]));
+
+ lineNumbers = getMarkersNumbersOfLine(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker has wrong line number", lineNumbers[0] == 22);
+
}
private void modifyPreferences(){
17 years
JBoss Tools SVN: r5435 - in trunk/hibernatetools/plugins: org.jboss.tools.hibernate.hblibs and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-12-25 06:04:52 -0500 (Tue, 25 Dec 2007)
New Revision: 5435
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.xml
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/plugin.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.veditor/plugin.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.view/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.properties
Log:
http://jira.jboss.com/jira/browse/JBIDE-1389 Changed plugin provider name from RedHat to Red Hat, Inc.
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.properties 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.properties 2007-12-25 11:04:52 UTC (rev 5435)
@@ -1,2 +1,2 @@
pluginName=ORM_CORE
-providerName=Red Hat
+providerName=Red Hat, Inc
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.properties 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.properties 2007-12-25 11:04:52 UTC (rev 5435)
@@ -1 +1 @@
-providerName=Red Hat
+providerName=Red Hat, Inc
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.xml 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/plugin.xml 2007-12-25 11:04:52 UTC (rev 5435)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?><?eclipse version="3.0"?>
-<plugin id="org.jboss.tools.hibernate.hblibs" name="Hibernate Jars" provider-name="RedHat" version="2.0.0">
+<plugin id="org.jboss.tools.hibernate.hblibs" name="Hibernate Jars" provider-name="Red Hat, Inc" version="2.0.0">
<runtime>
<library name="lib/ant-1.6.5.jar">
<export name="*"/>
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/plugin.properties 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/plugin.properties 2007-12-25 11:04:52 UTC (rev 5435)
@@ -1,2 +1,2 @@
-providerName=Red Hat
+providerName=Red Hat, Inc
pluginName=Visual Editor Plugin
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF 2007-12-25 11:04:52 UTC (rev 5435)
@@ -5,7 +5,7 @@
Bundle-Version: 2.0.0
Bundle-ClassPath: view.jar
Bundle-Activator: org.jboss.tools.hibernate.ui.view.ViewPlugin
-Bundle-Vendor: RedHat
+Bundle-Vendor: Red Hat, Inc
Bundle-Localization: plugin
Export-Package: org.jboss.tools.hibernate.ui.view,
org.jboss.tools.hibernate.ui.view.views
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.veditor/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.veditor/plugin.properties 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.veditor/plugin.properties 2007-12-25 11:04:52 UTC (rev 5435)
@@ -1,2 +1,2 @@
-providerName=Red Hat
+providerName=Red Hat, Inc
pluginName=Vizual Editor Plugin
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.view/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.view/META-INF/MANIFEST.MF 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.view/META-INF/MANIFEST.MF 2007-12-25 11:04:52 UTC (rev 5435)
@@ -5,7 +5,7 @@
Bundle-Version: 2.0.0
Bundle-ClassPath: view.jar
Bundle-Activator: org.jboss.tools.hibernate.view.ViewPlugin
-Bundle-Vendor: RedHat
+Bundle-Vendor: Red Hat, Inc
Bundle-Localization: plugin
Export-Package: org.jboss.tools.hibernate.dialog,
org.jboss.tools.hibernate.preference,
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.properties 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.properties 2007-12-25 11:04:52 UTC (rev 5435)
@@ -1,2 +1,2 @@
-providerName=Red Hat
+providerName=Red Hat, Inc
pluginName=Hibernate 3.0 XML
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.properties 2007-12-24 16:11:20 UTC (rev 5434)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.properties 2007-12-25 11:04:52 UTC (rev 5435)
@@ -1,2 +1,2 @@
-providerName=Red Hat
+providerName=Red Hat, Inc
pluginName=Hibernate 3.0 XML UI
17 years
JBoss Tools SVN: r5434 - in trunk/seam/tests/org.jboss.tools.seam.core.test: src/org/jboss/tools/seam/core/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-12-24 11:11:20 -0500 (Mon, 24 Dec 2007)
New Revision: 5434
Added:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1550
Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2 (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.2 2007-12-24 16:11:20 UTC (rev 5434)
@@ -0,0 +1,31 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich"
+ xmlns:a="https://ajax4jsf.dev.java.net/ajax"
+ template="layout/template.xhtml">
+
+<ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">abcComponent</f:facet>
+
+ <h:form id="abcComponentForm">
+
+ <h:commandButton id="abcComponent" value="abcComponent!"
+ action="#{bcComponent.abcComponent}"/>
+
+ </h:form>
+
+ </rich:panel>
+
+</ui:define>
+
+</ui:composition>
+
Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3 (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/abcComponent.3 2007-12-24 16:11:20 UTC (rev 5434)
@@ -0,0 +1,31 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich"
+ xmlns:a="https://ajax4jsf.dev.java.net/ajax"
+ template="layout/template.xhtml">
+
+<ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">abcComponent</f:facet>
+
+ <h:form id="abcComponentForm">
+
+ <h:commandButton id="abcComponent" value="abcComponent!"
+ action="#{abcComponent.bcComponent}"/>
+
+ </h:form>
+
+ </rich:panel>
+
+</ui:define>
+
+</ui:composition>
+
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2007-12-24 11:46:16 UTC (rev 5433)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2007-12-24 16:11:20 UTC (rev 5434)
@@ -516,12 +516,58 @@
System.out.println("UNKNOWN_VARIABLE_NAME value- "+store.getString(SeamPreferences.UNKNOWN_VARIABLE_NAME));
System.out.println("UNPAIRED_GETTER_OR_SETTER value- "+store.getString(SeamPreferences.UNPAIRED_GETTER_OR_SETTER));
+ ISeamProject seamProject = getSeamProject(project);
+
+ IFile abcComponentXHTMLFile = project.getFile("WebContent/abcComponent.xhtml");
+
+
+ int number = getMarkersNumber(abcComponentXHTMLFile);
+ assertTrue("Problem marker was found in abcComponent.xhtml", number == 0);
+
// Context variable cannot be resolved
System.out.println("Test - Context variable cannot be resolved");
+ IFile abcComponentXHTMLFile2 = project.getFile("WebContent/abcComponent.2");
+ try{
+ abcComponentXHTMLFile.setContents(abcComponentXHTMLFile2.getContents(), true, false, new NullProgressMonitor());
+ abcComponentXHTMLFile.touch(new NullProgressMonitor());
+ }catch(Exception ex){
+ JUnitUtils.fail("Error in changing 'abcComponent.xhtml' content to " +
+ "'abcComponent.2'", ex);
+ }
+
+ refreshProject(project);
+
+ String[] messages = getMarkersMessage(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker 'Context variable cannot be resolved' not found", "bcComponent cannot be resolved".equals(messages[0]));
+
+ int[] lineNumbers = getMarkersNumbersOfLine(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker has wrong line number", lineNumbers[0] == 22);
+
// Property cannot be resolved
System.out.println("Test - Property cannot be resolved");
+ IFile abcComponentXHTMLFile3 = project.getFile("WebContent/abcComponent.3");
+ try{
+ abcComponentXHTMLFile.setContents(abcComponentXHTMLFile3.getContents(), true, false, new NullProgressMonitor());
+ abcComponentXHTMLFile.touch(new NullProgressMonitor());
+ }catch(Exception ex){
+ JUnitUtils.fail("Error in changing 'abcComponent.xhtml' content to " +
+ "'abcComponent.3'", ex);
+ }
+
+ refreshProject(project);
+
+ messages = getMarkersMessage(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker 'Property cannot be resolved' not found", "bcComponent cannot be resolved".equals(messages[0]));
+
+ lineNumbers = getMarkersNumbersOfLine(abcComponentXHTMLFile);
+
+ assertTrue("Problem marker has wrong line number", lineNumbers[0] == 22);
+
// Unpaired Getter/Setter
System.out.println("Test - Unpaired Getter/Setter");
17 years
JBoss Tools SVN: r5433 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-12-24 06:46:16 -0500 (Mon, 24 Dec 2007)
New Revision: 5433
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidator.java
Log:
Removed unused private field.
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidator.java 2007-12-24 11:41:50 UTC (rev 5432)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamELValidator.java 2007-12-24 11:46:16 UTC (rev 5433)
@@ -22,7 +22,6 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.internal.ui.text.FastJavaPartitionScanner;
import org.eclipse.jdt.ui.text.IJavaPartitions;
import org.eclipse.jface.text.BadLocationException;
@@ -65,7 +64,6 @@
protected static final String VALIDATING_EL_FILE_MESSAGE_ID = "VALIDATING_EL_FILE";
private SeamELCompletionEngine engine= new SeamELCompletionEngine();
- private IJavaProject javaProject;
public SeamELValidator(SeamValidatorManager validatorManager,
SeamValidationHelper coreHelper, IReporter reporter,
17 years
JBoss Tools SVN: r5431 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2007-12-22 08:27:16 -0500 (Sat, 22 Dec 2007)
New Revision: 5431
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1412
Open mapping file with annotations added for component properties
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2007-12-22 13:12:17 UTC (rev 5430)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2007-12-22 13:27:16 UTC (rev 5431)
@@ -20,6 +20,7 @@
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
import org.hibernate.eclipse.console.utils.ProjectUtils;
+import org.hibernate.mapping.Component;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.Property;
import org.hibernate.mapping.RootClass;
@@ -142,10 +143,10 @@
return;
}
- if (parentProperty.getPersistentClass() != null){
+ if (parentProperty.getPersistentClass() != null && parentProperty.isComposite()){
PersistentClass rootClass = parentProperty.getPersistentClass();
if (OpenFileActionUtils.rootClassHasAnnotations(consoleConfiguration, configXMLFile, rootClass)) {
- String fullyQualifiedName = OpenFileActionUtils.getPersistentClassName(rootClass);
+ String fullyQualifiedName =((Component)((Property) parentProperty).getValue()).getComponentClassName();
new OpenSourceAction().run(compositeProperty, proj, fullyQualifiedName);
}
}
17 years
JBoss Tools SVN: r5430 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2007-12-22 08:12:17 -0500 (Sat, 22 Dec 2007)
New Revision: 5430
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1412
Open mapping file with annotations added for component properties
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2007-12-22 11:58:37 UTC (rev 5429)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2007-12-22 13:12:17 UTC (rev 5430)
@@ -121,21 +121,34 @@
java.io.File configXMLFile = consoleConfiguration.getPreferences().getConfigXMLFile();
IResource resource = OpenFileActionUtils.getResource(consoleConfiguration, proj, configXMLFile, parentProperty.getPersistentClass());
- IEditorPart editorPart = openMapping(resource);
- ITextEditor textEditor = getTextEditor(editorPart);
- if (textEditor == null) return;
- textEditor.selectAndReveal(0, 0);
- FindReplaceDocumentAdapter findAdapter = getFindDocAdapter(textEditor);
- IRegion parentRegion = findSelection(parentProperty, findAdapter);
- if (parentRegion == null) return;
- try {
- IRegion propRegion = findAdapter.find(parentRegion.getOffset()+parentRegion.getLength(), generatePattern(compositeProperty), true, true, false, true);
- if (propRegion != null){
- textEditor.selectAndReveal(propRegion.getOffset(), propRegion.getLength());
+ IEditorPart editorPart = null;
+ if (resource != null){
+ editorPart = openMapping(resource);
+ if (editorPart != null){
+ ITextEditor textEditor = getTextEditor(editorPart);
+ if (textEditor == null) return;
+ textEditor.selectAndReveal(0, 0);
+ FindReplaceDocumentAdapter findAdapter = getFindDocAdapter(textEditor);
+ IRegion parentRegion = findSelection(parentProperty, findAdapter);
+ if (parentRegion == null) return;
+ try {
+ IRegion propRegion = findAdapter.find(parentRegion.getOffset()+parentRegion.getLength(), generatePattern(compositeProperty), true, true, false, true);
+ if (propRegion != null){
+ textEditor.selectAndReveal(propRegion.getOffset(), propRegion.getLength());
+ }
+ } catch (BadLocationException e) {
+ }
}
- } catch (BadLocationException e) {
return;
- }
+ }
+
+ if (parentProperty.getPersistentClass() != null){
+ PersistentClass rootClass = parentProperty.getPersistentClass();
+ if (OpenFileActionUtils.rootClassHasAnnotations(consoleConfiguration, configXMLFile, rootClass)) {
+ String fullyQualifiedName = OpenFileActionUtils.getPersistentClassName(rootClass);
+ new OpenSourceAction().run(compositeProperty, proj, fullyQualifiedName);
+ }
+ }
}
/**
17 years
JBoss Tools SVN: r5429 - trunk/jbpm/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-22 06:58:37 -0500 (Sat, 22 Dec 2007)
New Revision: 5429
Modified:
trunk/jbpm/docs/reference/en/modules/Quick_Howto_Guide.xml
trunk/jbpm/docs/reference/en/modules/Test_Drive_Proc.xml
trunk/jbpm/docs/reference/en/modules/the_views.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-233 - updating according to Svetlana Mukhina remarks
Modified: trunk/jbpm/docs/reference/en/modules/Quick_Howto_Guide.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/Quick_Howto_Guide.xml 2007-12-22 11:58:01 UTC (rev 5428)
+++ trunk/jbpm/docs/reference/en/modules/Quick_Howto_Guide.xml 2007-12-22 11:58:37 UTC (rev 5429)
@@ -13,7 +13,8 @@
<title>Quick Howto Guide</title>
<para>This chapter contains additional information related to the <property>JBoss jBPM</property>.</para>
- <section>
+
+ <section id="change_core_jbpm_inst">
<title>Change the Default Core jBPM Installation</title>
<para> You can change the default <property>jBPM</property> installation by means of the
Modified: trunk/jbpm/docs/reference/en/modules/Test_Drive_Proc.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/Test_Drive_Proc.xml 2007-12-22 11:58:01 UTC (rev 5428)
+++ trunk/jbpm/docs/reference/en/modules/Test_Drive_Proc.xml 2007-12-22 11:58:37 UTC (rev 5429)
@@ -11,25 +11,38 @@
</keywordset>
</chapterinfo>
<title>Test Driven Process Development</title>
-
+
<para> One of the most important advantages of JBoss jBPM's lightweight approach to BPM
and workflow management is that developers can easily leverage their usual programming
skills and techniques. One of these well-known techniques is Unit Testing and Test Driven
Development. </para>
- <para>In this chapter we will show how developers, making use of the JBoss jBPM GPD,
- can use a technique we have baptized <property>Test Driven Process Development</property> to
- create process definitions and test their correctness. </para>
+ <para>In this chapter we will show how developers, making use of the JBoss jBPM GPD, can use a
+ technique we have baptized <property>Test Driven Process Development</property> to create
+ process definitions and test their correctness. </para>
<para> When creating the <emphasis>
<property>HellojBPM</property>
- </emphasis> project the create process project wizard has already put in place all the
- library requirements we need to start writing jBPM unit tests. These are contained in the
- jBPM Library container and the most important of it is the <emphasis>
+ </emphasis> project the Project Creation wizard has already put in place all the library
+ requirements we need to start writing the jBPM unit tests. They are contained in the jBPM
+ Library container and the most important of them is the <emphasis>
<property>.jar</property>
- </emphasis> file containing the core jBPM classes. It must be noted that it is possible to
- change the location of the core jBPM installation by changing the preference settings. More
- on this later in the book. </para>
+ </emphasis> file containing the core jBPM classes. While working on the project you could
+ find them all in the Package Explorer.</para>
+ <figure>
+ <title>The jBPM Libraries</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/Test_Drive_Proc/test_driv_proc.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>It must be noted that it is possible to change the location of the core jBPM installation
+ by changing the preference settings. More on this <link linkend="change_core_jbpm_inst">see
+ later</link> in this book.</para>
+
<para> With that extra knowledge on the project settings, you can create your first test. To do
this, we create the <emphasis>
<property>com.jbay</property>
@@ -37,59 +50,89 @@
<property>test/java</property>
</emphasis> source folder. Then we bring up the context menu on this package and select <emphasis>
<property>New > Other...</property>
- </emphasis> and then <emphasis>
- <property>Java > JUnite > JUnite Test Case</property></emphasis>.</para>
+ </emphasis></para>
<figure>
- <title>Create a Test</title>
+ <title>Call the JUnit Test Class Creation wizard</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/Test_Drive_Proc/test_driv_proc_1.png"/>
+ <imagedata fileref="images/Test_Drive_Proc/test_driv_proc_1a.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>We call the test class <emphasis>
- <property>HelloTest</property>
- </emphasis>.</para>
+ <para> And then <emphasis>
+ <property>Java > JUnit > JUnit Test Case</property>
+ </emphasis> to call the specialized JUnite Test class creation wizard.</para>
+ <figure>
+ <title>Call the JUnit Test Class Creation wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/Test_Drive_Proc/test_driv_proc_1b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The wizard looks as follows:</para>
+
<figure>
<title>Create Test Dialog</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/Test_Drive_Proc/test_driv_proc_2.png"/>
+ <imagedata fileref="images/Test_Drive_Proc/test_driv_proc_2a.png"/>
</imageobject>
</mediaobject>
</figure>
- <para> We write a simple test scenario as shown on the next figure. Let's study the
- code of this testcase. </para>
+ <para>By default JUnite 3 version of testing framework is selected. Of course, you can choose
+ new advanced JUnit 4 version. In this case you'll be prompted to add new JUnit
+ Library to your build path. To add it automatically just click on the appropriate link.</para>
<figure>
<title>A First Test Scenario</title>
<mediaobject>
<imageobject>
+ <imagedata fileref="images/Test_Drive_Proc/test_driv_proc_2b.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Then, we call the test class <emphasis>
+ <property>HelloTest</property>
+ </emphasis> and press <emphasis>
+ <property>Finish</property></emphasis> button to complete.</para>
+
+ <para> Next, we should write a simple test scenario as shown on the next figure. Let's study the
+ code of this test case. </para>
+
+ <figure>
+ <title>A First Test Scenario</title>
+
+ <mediaobject>
+ <imageobject>
<imagedata fileref="images/Test_Drive_Proc/test_driv_proc_3.png" scale="75"/>
</imageobject>
</mediaobject>
</figure>
-
- <para>In the first line of the method, a jBPM process archive object is
- created. We use a constructor accepting the filename of the archive. In our case it is the
- <emphasis>
- <property>hello</property></emphasis> file we created earlier and which lives in the
- <emphasis>
- <property>src/main/jpdl</property></emphasis> folder of our project. After asserting that this object is really
- created, we extract a process definition object from it. This object is fed to the
- constructor of a process instance object. We have a process instance object, but this
- process is not yet started, so we can safely assert that its root token still resides in the
- start node. After signalling the token will move to the next state and the process will be
- in the <emphasis><property>auction</property></emphasis> state. Finally another signal will end the process. </para>
-
+ <para>In the first line of the method, a jBPM process archive object is created. We use a
+ constructor accepting the filename of the archive. In our case it is the <emphasis>
+ <property>hello</property>
+ </emphasis> file we created earlier and which lives in the <emphasis>
+ <property>src/main/jpdl</property>
+ </emphasis> folder of our project. After asserting that this object is really created, we
+ extract a process definition object from it. This object is fed to the constructor of a
+ process instance object. We have a process instance object, but this process is not yet
+ started, so we can safely assert that its root token still resides in the start node. After
+ signalling the token will move to the next state and the process will be in the <emphasis>
+ <property>auction</property>
+ </emphasis> state. Finally another signal will end the process. </para>
+
+
<para> After writing this test we can check whether it works as expected by running it .</para>
<figure>
@@ -112,7 +155,7 @@
</imageobject>
</mediaobject>
</figure>
-
+
<para> Of course, this simple scenario was not very interesting, but the purpose of it was to
show how you can reuse your development skills in a very straightforward way when doing
process development. To see how more interesting processes and process test
Modified: trunk/jbpm/docs/reference/en/modules/the_views.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/the_views.xml 2007-12-22 11:58:01 UTC (rev 5428)
+++ trunk/jbpm/docs/reference/en/modules/the_views.xml 2007-12-22 11:58:37 UTC (rev 5429)
@@ -12,14 +12,26 @@
<para>Here, it will be explained how to work with views and editors provided by JBDS.</para>
<para>The views are used for representation and navigation the resources you are working on at
the moment. One of the advantages of all the views is that all modifications made in the
- currant- active file are immediately displayed in them. Let’s get acquainted more closely
+ currant-active file are immediately displayed in them. Let’s get acquainted more closely
with those that the jPDL perspective provides. </para>
+ <figure>
+ <title>The jPDL Perspective Views and Editors</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As you can see in the picture above, the jPDL perspective contains a complete set of
+ functionality that's necessary for working on the jBPM project.</para>
+
<section id="the_outline_view">
<?dbhtml filename="the_outline_view.html"?>
<title>The Outline View</title>
- <para>To have a way to quickly see an outline of the process use the JBDS Outline view that
- is presented as the classical tree. If it is not visible select <emphasis>
+ <para>To have a way to quickly see an outline of the process use the Outline view that is
+ presented as the classical tree. If it is not visible select <emphasis>
<property>Window > Show view > Outline</property>
</emphasis>.</para>
@@ -37,7 +49,7 @@
<?dbhtml filename="the_outline_view.html"?>
<title>The Overview</title>
<para>The main advantage of this view is that it gives visual representation of the whole
- currant-developing process. Besides, Overview comes as a scrollable thumbnail, which
+ currant-developing process. Besides, the Overview comes as a scrollable thumbnail which
enables a better navigation of the process structure if it's too large.</para>
<figure>
@@ -89,8 +101,12 @@
</mediaobject>
</figure>
- <para>In this case, it contains six tabs. The first one is the General. It allows to specify
- a process name and add necessary description.</para>
+ <para>In this case, it contains six tabs. The first one is the <emphasis>
+ <property>General</property></emphasis>. It allows to specify
+ a process name and add necessary description. To illustrate let's change the process
+ definition name to <emphasis>
+ <property>jbay</property>
+ </emphasis></para>
</section>
<section id="jbpm_gpd_editor">
@@ -103,7 +119,7 @@
<section id="the_diagram_mode">
<title>The Diagram mode</title>
<para> In this mode we define the process in the form of a diagram by means of tools
- provided on the left-hens side of the jBPM GPD. </para>
+ provided on the left-hand side of the jBPM GPD. </para>
<figure>
<title>The Diagram mode</title>
@@ -128,7 +144,7 @@
<?dbhtml filename="the_source_view.html"?>
<title>The Source Mode</title>
<para>Now, that we have defined a simple process definition, we can have a look at the
- XML that is being generated under the covers. To see this XML, click on the Source
+ XML that is being generated under the covers. To see this XML click on the Source
tab of the graphical process designer editor.</para>
<figure>
@@ -205,11 +221,13 @@
</mediaobject>
</figure>
- <para>The button <emphasis><property>Test Connections</property></emphasis> is necessary to make sure whether all your settings
- are valid before deploying the process.</para>
+ <para>The button <emphasis>
+ <property>Test Connections</property>
+ </emphasis> is necessary to make sure whether all your settings are valid before
+ deploying the process.</para>
</section>
</section>
- <para></para>
+ <para>Now that we've seen how to work with jPDL perspective, let's pass on to the project testing.</para>
</chapter>
17 years
JBoss Tools SVN: r5428 - trunk/jbpm/docs/reference/en/images/the_views.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-22 06:58:01 -0500 (Sat, 22 Dec 2007)
New Revision: 5428
Added:
trunk/jbpm/docs/reference/en/images/the_views/the_views.png
Log:
http://jira.jboss.com/jira/browse/JBDS-233 - adding new screenshot
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years
JBoss Tools SVN: r5427 - trunk/jbpm/docs/reference/en/images/Test_Drive_Proc.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-22 06:57:27 -0500 (Sat, 22 Dec 2007)
New Revision: 5427
Added:
trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc.png
trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_1a.png
trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_1b.png
trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_2a.png
trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_2b.png
Log:
http://jira.jboss.com/jira/browse/JBDS-233 - updating and adding new screenshotes
Added: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_1a.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_1a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_1b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_1b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_2a.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_2a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_2b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/Test_Drive_Proc/test_driv_proc_2b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years
JBoss Tools SVN: r5426 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-12-22 06:53:53 -0500 (Sat, 22 Dec 2007)
New Revision: 5426
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAttributeCreator.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1484, function of creating attributes was adjusted
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAttributeCreator.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAttributeCreator.java 2007-12-21 17:27:06 UTC (rev 5425)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAttributeCreator.java 2007-12-22 11:53:53 UTC (rev 5426)
@@ -47,16 +47,23 @@
}
public VpeCreatorInfo create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument, nsIDOMElement visualElement, Map visualNodeMap) {
+
if (expression != null) {
if (visualNodeMap != null) {
visualNodeMap.put(this, visualElement);
}
VpeValue vpeValue = expression.exec(pageContext, sourceNode);
- if (vpeValue != null && vpeValue.stringValue().length() > 0) {
- nsIDOMAttr newVisualAttribute = visualDocument.createAttribute(name);
- newVisualAttribute.setValue(vpeValue.stringValue());
- return new VpeCreatorInfo(newVisualAttribute);
- }
+ //FIX FOR JBIDE-1484 added by Max Areshkau
+ //commented to fix JBIDE-1484
+// if (vpeValue != null && vpeValue.stringValue().length() > 0) {
+// nsIDOMAttr newVisualAttribute = visualDocument.createAttribute(name);
+// newVisualAttribute.setValue(vpeValue.stringValue());
+// return new VpeCreatorInfo(newVisualAttribute);
+// }
+ nsIDOMAttr newVisualDOMAttribute = visualDocument.createAttribute(name);
+ newVisualDOMAttribute.setValue(vpeValue==null?null:vpeValue.stringValue());
+ return new VpeCreatorInfo(newVisualDOMAttribute);
+ //END of FIX JBIDE-1484 code
}
return null;
}
17 years