JBoss Tools SVN: r23947 - in trunk/jst/tests/org.jboss.tools.jst.web.kb.test: src/org/jboss/tools/jst/web/kb/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-08-05 13:12:40 -0400 (Thu, 05 Aug 2010)
New Revision: 23947
Added:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-mail.jar
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
Log:
https://jira.jboss.org/browse/JBIDE-5198
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-mail.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-mail.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java 2010-08-05 17:08:43 UTC (rev 23946)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java 2010-08-05 17:12:40 UTC (rev 23947)
@@ -103,6 +103,30 @@
fail("Can't find <p:document orientation=\"\"> proposal.");
}
+ /**
+ * https://jira.jboss.org/jira/browse/JBIDE-5198
+ */
+ public void testSeamMail() {
+ IFile file = testProject.getFile("WebContent/pages/testSeamPdfAndMail.jsp");
+ ELContext context = PageContextFactory.createPageContext(file);
+ KbQuery query = new KbQuery();
+ query.setMask(true);
+ query.setOffset(315);
+ query.setType(Type.ATTRIBUTE_NAME);
+ query.setParentTags(new String[]{"m:message"});
+ query.setPrefix("m");
+ query.setUri("http://jboss.com/products/seam/mail");
+ query.setValue("pre");
+
+ TextProposal[] proposals = PageProcessor.getInstance().getProposals(query, context);
+ for (TextProposal proposal : proposals) {
+ if("precedence".equals(proposal.getReplacementString())) {
+ return;
+ }
+ }
+ fail("Can't find <m:message precedence=\"\"> proposal.");
+ }
+
public void testCustomExtensions() {
CustomTagLibAttribute[] attributes = CustomTagLibManager.getInstance().getComponentExtensions();
assertNotNull("Can't load component extensions.", attributes);
15 years, 4 months
JBoss Tools SVN: r23946 - in trunk/jst/tests/org.jboss.tools.jst.web.kb.test: src/org/jboss/tools/jst/web/kb/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-08-05 13:08:43 -0400 (Thu, 05 Aug 2010)
New Revision: 23946
Added:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-pdf.jar
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
Log:
https://jira.jboss.org/browse/JBIDE-5231
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-pdf.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jboss-seam-pdf.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java 2010-08-05 16:59:58 UTC (rev 23945)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java 2010-08-05 17:08:43 UTC (rev 23946)
@@ -79,6 +79,30 @@
fail("Can't find <f:facet name=\"\"> proposal.");
}
+ /**
+ * https://jira.jboss.org/jira/browse/JBIDE-5231
+ */
+ public void testSeamPdf() {
+ IFile file = testProject.getFile("WebContent/pages/testSeamPdfAndMail.jsp");
+ ELContext context = PageContextFactory.createPageContext(file);
+ KbQuery query = new KbQuery();
+ query.setMask(true);
+ query.setOffset(315);
+ query.setType(Type.ATTRIBUTE_NAME);
+ query.setParentTags(new String[]{"p:document"});
+ query.setPrefix("p");
+ query.setUri("http://jboss.com/products/seam/pdf");
+ query.setValue("ori");
+
+ TextProposal[] proposals = PageProcessor.getInstance().getProposals(query, context);
+ for (TextProposal proposal : proposals) {
+ if("orientation".equals(proposal.getReplacementString())) {
+ return;
+ }
+ }
+ fail("Can't find <p:document orientation=\"\"> proposal.");
+ }
+
public void testCustomExtensions() {
CustomTagLibAttribute[] attributes = CustomTagLibManager.getInstance().getComponentExtensions();
assertNotNull("Can't load component extensions.", attributes);
15 years, 4 months
JBoss Tools SVN: r23945 - trunk/drools.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-08-05 12:59:58 -0400 (Thu, 05 Aug 2010)
New Revision: 23945
Added:
trunk/drools/pom-with-deps.xml
Log:
pom.xml + test deps not available from update site
Added: trunk/drools/pom-with-deps.xml
===================================================================
--- trunk/drools/pom-with-deps.xml (rev 0)
+++ trunk/drools/pom-with-deps.xml 2010-08-05 16:59:58 UTC (rev 23945)
@@ -0,0 +1,37 @@
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>drools.all</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>org.jboss.tools.ui.bot.ext</module>
+ <module>plugins</module>
+ <module>features</module>
+ <module>tests</module>
+ <module>site</module>
+ </modules>
+ <!-- TODO: figure out how to invoke this BEFORE the dep resolution for target
+ platform -->
+ <!-- <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> <executions>
+ <execution> <id>clean</id> <phase>clean</phase> <configuration> <tasks> <ant
+ antfile="build.xml" /> </tasks> </configuration> <goals> <goal>run</goal>
+ </goals> </execution> </executions> <dependencies> <dependency> <groupId>commons-net</groupId>
+ <artifactId>commons-net</artifactId> <version>1.4.1</version> </dependency>
+ <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-commons-net</artifactId>
+ <version>1.7.1</version> </dependency> <dependency> <groupId>org.apache.ant</groupId>
+ <artifactId>ant-apache-regexp</artifactId> <version>1.7.1</version> </dependency>
+ <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId>
+ <version>1.0b3</version> </dependency> </dependencies> </plugin> </plugins>
+ </build> -->
+</project>
+
15 years, 4 months
JBoss Tools SVN: r23944 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-08-05 12:15:35 -0400 (Thu, 05 Aug 2010)
New Revision: 23944
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6735 , swtbot test was updated.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2010-08-05 16:13:03 UTC (rev 23943)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2010-08-05 16:15:35 UTC (rev 23944)
@@ -116,7 +116,6 @@
*/
SWTBotTable table = bot.table();
assertNotNull("Table should exist", table); //$NON-NLS-1$
- bot.sleep(10000);
/*
* The list should be sorted in the alphabetical order.
*/
15 years, 4 months
JBoss Tools SVN: r23943 - in trunk/vpe: tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-08-05 12:13:03 -0400 (Thu, 05 Aug 2010)
New Revision: 23943
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dialog/ExternalizeStringsWizardPage.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6735 , properties file loading was updated, unicode codes shoud be parsed correctly, swtbot test was updated.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dialog/ExternalizeStringsWizardPage.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dialog/ExternalizeStringsWizardPage.java 2010-08-05 15:59:18 UTC (rev 23942)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dialog/ExternalizeStringsWizardPage.java 2010-08-05 16:13:03 UTC (rev 23943)
@@ -13,10 +13,13 @@
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
+import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import java.util.Properties;
import java.util.Set;
import org.eclipse.core.resources.IFile;
@@ -66,6 +69,7 @@
import org.jboss.tools.common.model.project.IModelNature;
import org.jboss.tools.common.model.ui.ModelUIImages;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.common.util.FileUtil;
import org.jboss.tools.jst.jsp.editor.IVisualContext;
import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor;
import org.jboss.tools.jst.jsp.jspeditor.SourceEditorPageContext;
@@ -105,9 +109,9 @@
private Status propsKeyStatus;
private Status propsValueStatus;
private Status rbComboStatus;
-
private Table tagsTable;
+
public ExternalizeStringsWizardPage(String pageName, StructuredTextEditor editor, BundleMap bm) {
/*
* Setting dialog Title, Description, Image.
@@ -417,9 +421,13 @@
/*
* Read the file content
*/
+ String encoding = FileUtil.getEncoding(file);
BufferedReader in = new BufferedReader(new InputStreamReader(
- file.getContents()));
- String line = in.readLine();
+ file.getContents(), encoding));
+ Properties properties = new Properties();
+ properties.load(in);
+ in.close();
+ in = null;
/*
* Clear the table
*/
@@ -427,22 +435,16 @@
/*
* Fill in new values
*/
- int i = 0;
- while (line != null) {
+ int k = 0;
+ Set<String> keys = properties.stringPropertyNames();
+ List<String> keysList = new ArrayList<String>(keys);
+ Collections.sort(keysList);
+ for (String key : keysList) {
TableItem tableItem = null;
- String[] propertie = null;
- if (line.trim().length() > 0) {
- tableItem = new TableItem(tagsTable, SWT.BORDER, i);
- propertie = line.trim().split("="); //$NON-NLS-1$
- if (propertie.length < 3) {
- tableItem.setText(propertie);
- i++;
- }
- }
- line = in.readLine();
+ tableItem = new TableItem(tagsTable, SWT.BORDER, k);
+ k++;
+ tableItem.setText(new String[] {key, properties.getProperty(key)});
}
- in.close();
- in = null;
} catch (CoreException e) {
VpePlugin.getDefault().logError(
"Could not load file content for '" + file + "'", e); //$NON-NLS-1$ //$NON-NLS-2$
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2010-08-05 15:59:18 UTC (rev 23942)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2010-08-05 16:13:03 UTC (rev 23943)
@@ -11,10 +11,13 @@
package org.jboss.tools.vpe.ui.bot.test.wizard;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
+import org.eclipse.swtbot.swt.finder.widgets.TimeoutException;
import org.jboss.tools.vpe.messages.VpeUIMessages;
import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
@@ -34,21 +37,33 @@
private final String COMPLEX_VALUE_RESULT = "!! HELLO ~ Input User, Name.Page ?" + //$NON-NLS-1$
" and some more text @ \\# vc \\$ % yy^ &*(ghg ) _l-kk+mmm\\/fdg\\ ;.df:,ee {df}df[ty]"; //$NON-NLS-1$
+ private boolean isUnusedDialogOpened = false;
+
public ExternalizeStringsDialogTest() {
super();
}
@Override
protected void closeUnuseDialogs() {
+ try {
+ SWTBotShell dlgShell = bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE);
+ dlgShell.setFocus();
+ dlgShell.close();
+ } catch (WidgetNotFoundException e) {
+ e.printStackTrace();
+ } finally {
+ isUnusedDialogOpened = false;
+ }
}
@Override
protected boolean isUnuseDialogOpened() {
- return false;
+ return isUnusedDialogOpened;
}
public void testExternalizeStringsDialog() throws Throwable {
+ isUnusedDialogOpened = false;
/*
* Open simple html file in order to get the VPE toolbar
*/
@@ -65,6 +80,7 @@
bot.toolbarButtonWithTooltip(VpeUIMessages.EXTERNALIZE_STRINGS).click();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).setFocus();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).activate();
+ isUnusedDialogOpened = true;
/*
* Check properties key and value fields
*/
@@ -100,18 +116,23 @@
*/
SWTBotTable table = bot.table();
assertNotNull("Table should exist", table); //$NON-NLS-1$
+ bot.sleep(10000);
+ /*
+ * The list should be sorted in the alphabetical order.
+ */
assertEquals(INCORRECT_TABLE_VALUE, "header", table.cell(0, 0)); //$NON-NLS-1$
assertEquals(INCORRECT_TABLE_VALUE, "Hello Demo Application", table.cell(0, 1)); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "prompt_message", table.cell(1, 0)); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "Name:", table.cell(1, 1)); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "hello_message", table.cell(2, 0)); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "Hello", table.cell(2, 1)); //$NON-NLS-1$
+ assertEquals(INCORRECT_TABLE_VALUE, "hello_message", table.cell(1, 0)); //$NON-NLS-1$
+ assertEquals(INCORRECT_TABLE_VALUE, "Hello", table.cell(1, 1)); //$NON-NLS-1$
+ assertEquals(INCORRECT_TABLE_VALUE, "prompt_message", table.cell(2, 0)); //$NON-NLS-1$
+ assertEquals(INCORRECT_TABLE_VALUE, "Name:", table.cell(2, 1)); //$NON-NLS-1$
/*
* Press OK and replace the text in the editor
*/
assertTrue("(OK) button should be enabled.", //$NON-NLS-1$
bot.button(WidgetVariables.OK_BUTTON).isEnabled());
bot.button(WidgetVariables.OK_BUTTON).click();
+ isUnusedDialogOpened = false;
/*
* Check replaced text
*/
@@ -129,6 +150,7 @@
}
public void testExternalizeStringsDialogInXhtml() throws Throwable {
+ isUnusedDialogOpened = false;
/*
* Open simple html file in order to get the VPE toolbar
*/
@@ -145,6 +167,7 @@
bot.toolbarButtonWithTooltip(VpeUIMessages.EXTERNALIZE_STRINGS).click();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).setFocus();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).activate();
+ isUnusedDialogOpened = true;
/*
* Check properties key and value fields
@@ -181,16 +204,20 @@
*/
SWTBotTable table = bot.table();
assertNotNull("Table should exist", table); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "prompt", table.cell(0, 0)); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "Your Name\\:", table.cell(0, 1)); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "greeting", table.cell(1, 0)); //$NON-NLS-1$
- assertEquals(INCORRECT_TABLE_VALUE, "Hello", table.cell(1, 1)); //$NON-NLS-1$
/*
+ * The list should be sorted in the alphabetical order.
+ */
+ assertEquals(INCORRECT_TABLE_VALUE, "greeting", table.cell(0, 0)); //$NON-NLS-1$
+ assertEquals(INCORRECT_TABLE_VALUE, "Hello", table.cell(0, 1)); //$NON-NLS-1$
+ assertEquals(INCORRECT_TABLE_VALUE, "prompt", table.cell(1, 0)); //$NON-NLS-1$
+ assertEquals(INCORRECT_TABLE_VALUE, "Your Name:", table.cell(1, 1)); //$NON-NLS-1$
+ /*
* Press OK and replace the text in the editor
*/
assertTrue("(OK) button should be enabled.", //$NON-NLS-1$
bot.button(WidgetVariables.OK_BUTTON).isEnabled());
bot.button(WidgetVariables.OK_BUTTON).click();
+ isUnusedDialogOpened = false;
/*
* Check replaced text
*/
@@ -208,6 +235,7 @@
}
public void testNewFileInExternalizeStringsDialog() throws Throwable {
+ isUnusedDialogOpened = false;
/*
* Open simple html file in order to get the VPE toolbar
*/
@@ -224,7 +252,7 @@
bot.toolbarButtonWithTooltip(VpeUIMessages.EXTERNALIZE_STRINGS).click();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).setFocus();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).activate();
-
+ isUnusedDialogOpened = true;
/*
* Enable next page and check it
*/
@@ -250,6 +278,7 @@
assertTrue("(OK) button should be enabled.", //$NON-NLS-1$
bot.button(WidgetVariables.OK_BUTTON).isEnabled());
bot.button(WidgetVariables.OK_BUTTON).click();
+ isUnusedDialogOpened = false;
/*
* Check that the text was replaced
*/
@@ -267,6 +296,7 @@
}
public void testEmptySelectionInExternalizeStringsDialog() throws Throwable {
+ isUnusedDialogOpened = false;
/*
* Open simple html file in order to get the VPE toolbar
*/
@@ -289,6 +319,7 @@
bot.toolbarButtonWithTooltip(VpeUIMessages.EXTERNALIZE_STRINGS).click();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).setFocus();
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).activate();
+ isUnusedDialogOpened = true;
/*
* Check that the property value text is empty
*/
@@ -301,6 +332,7 @@
* Close the dialog
*/
bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).close();
+ isUnusedDialogOpened = false;
/*
* Type some text outside the tag
*/
15 years, 4 months
JBoss Tools SVN: r23942 - trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-08-05 11:59:18 -0400 (Thu, 05 Aug 2010)
New Revision: 23942
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
Log:
https://jira.jboss.org/browse/JBIDE-5231
Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java 2010-08-05 15:21:11 UTC (rev 23941)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebKbTest.java 2010-08-05 15:59:18 UTC (rev 23942)
@@ -32,7 +32,7 @@
public class WebKbTest extends TestCase {
private IProject testProject;
- private static final String[] CUSTOM_TAG_LIB_URIS = {"http://richfaces.org/a4j", "http://richfaces.org/rich", "http://java.sun.com/jsf/core", "http://java.sun.com/jsf/html", "http://java.sun.com/jsf/facelets", "http://www.w3.org/1999/xhtml/facelets", "http://jboss.com/products/seam/taglib", "http://java.sun.com/JSP/Page", "http://struts.apache.org/tags-html", "taglibs/componentExtension.xml"};
+ private static final String[] CUSTOM_TAG_LIB_URIS = {"http://richfaces.org/a4j", "http://richfaces.org/rich", "http://java.sun.com/jsf/core", "http://java.sun.com/jsf/html", "http://java.sun.com/jsf/facelets", "http://www.w3.org/1999/xhtml/facelets", "http://jboss.com/products/seam/taglib", "http://java.sun.com/JSP/Page", "http://struts.apache.org/tags-html", "taglibs/componentExtension.xml", "http://jboss.com/products/seam/pdf", "http://jboss.com/products/seam/mail"};
protected void setUp() throws Exception {
if(testProject==null) {
15 years, 4 months
JBoss Tools SVN: r23941 - trunk/build/parent.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-08-05 11:21:11 -0400 (Thu, 05 Aug 2010)
New Revision: 23941
Modified:
trunk/build/parent/pom.xml
Log:
add profile for jbosstools-nightly-trunk so that individual components can be build against rest of JBT (eg., Drools)
Modified: trunk/build/parent/pom.xml
===================================================================
--- trunk/build/parent/pom.xml 2010-08-05 15:20:24 UTC (rev 23940)
+++ trunk/build/parent/pom.xml 2010-08-05 15:21:11 UTC (rev 23941)
@@ -781,6 +781,24 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>jbosstools-nightly-trunk</id>
+ <repositories>
+ <repository>
+ <id>jbosstools-nightly-trunk</id>
+ <url>http://download.jboss.org/jbosstools/updates/nightly/trunk/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+ </profile>
+
</profiles>
<pluginRepositories>
<pluginRepository>
@@ -827,7 +845,7 @@
</releases>
</pluginRepository>
</pluginRepositories>
-
+
<dependencyManagement>
<dependencies>
<dependency>
@@ -838,6 +856,5 @@
</dependency>
</dependencies>
</dependencyManagement>
-
-
+
</project>
15 years, 4 months
JBoss Tools SVN: r23940 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-08-05 11:20:24 -0400 (Thu, 05 Aug 2010)
New Revision: 23940
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd
Log:
https://jira.jboss.org/browse/JBIDE-5231
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd 2010-08-05 15:12:23 UTC (rev 23939)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd 2010-08-05 15:20:24 UTC (rev 23940)
@@ -20,8 +20,8 @@
component can contain attributes.
Attributes:
name - name of component
- closeTag - "true" - Component can have a body.
- "false" - Component cannot have a body. Used by default.
+ closeTag - "true" - Component cannot have a body.
+ "false" - Component can have a body. Used by default.
extended - "true" - Component is relevant only if this component exists in other tag-libs (tld, faclets, ...). Set to "true" by default.
-->
<!ELEMENT component (description?, component*, attribute*)>
15 years, 4 months
JBoss Tools SVN: r23939 - in trunk/jst/plugins/org.jboss.tools.jst.web.kb: taglibs and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-08-05 11:12:23 -0400 (Thu, 05 Aug 2010)
New Revision: 23939
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamMail.xml
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml
Log:
https://jira.jboss.org/browse/JBIDE-5198
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml 2010-08-05 14:51:45 UTC (rev 23938)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml 2010-08-05 15:12:23 UTC (rev 23939)
@@ -71,6 +71,10 @@
location="platform:/plugin/org.jboss.tools.jst.web.kb/taglibs/SeamPdf.xml"
name="Seam PDF"
uri="http://jboss.com/products/seam/pdf"/>
+ <tag-lib
+ location="platform:/plugin/org.jboss.tools.jst.web.kb/taglibs/SeamMail.xml"
+ name="Seam Mail"
+ uri="http://jboss.com/products/seam/mail"/>
<component-extension
location="platform:/plugin/org.jboss.tools.jst.web.kb/taglibs/componentExtension.xml"/>
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamMail.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamMail.xml (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamMail.xml 2010-08-05 15:12:23 UTC (rev 23939)
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE tag-lib PUBLIC "-//Red Hat, Inc//DTD Knowledge Base 2.0//EN" "http://anonsvn.jboss.org/repos/jbosstools/trunk/jst/plugins/org.jboss.too...">
+<tag-lib defaultPrefix="m">
+
+ <component name="message">
+ <description>Root tag of a mail message.</description>
+ <attribute extended="false" name="importance">
+ <description>low, normal or high. By default normal, this sets the
+ importance of the mail message.</description>
+ <proposal type="enumeration">
+ <param value="low" />
+ <param value="normal" />
+ <param value="high" />
+ </proposal>
+ </attribute>
+ <attribute extended="false" name="precedence">
+ <description>Sets the precedence of the message.</description>
+ </attribute>
+ <attribute extended="false" name="requestReadReceipt">
+ <description>By default false, if set, a read receipt request will be
+ will be added, with the read receipt being sent to the From:
+ address.</description>
+ <proposal type="enumeration">
+ <param value="true" />
+ <param value="false" />
+ </proposal>
+ </attribute>
+ <attribute extended="false" name="urlBase">
+ <description>If set, the value is prepended to the requestContextPath
+ allowing you to use components such as h:graphicImage in your
+ emails.</description>
+ </attribute>
+ </component>
+
+ <component closeTag="true" name="from">
+ <description>Set's the From: address for the email. You can only have
+ one of these per email.</description>
+ <attribute extended="false" name="name">
+ <description>The name the email should come from.</description>
+ </attribute>
+ <attribute extended="false" name="address">
+ <description>The email address the email should come from.
+ </description>
+ </attribute>
+ </component>
+
+ <component closeTag="true" name="replyTo">
+ <description>Set's the Reply-to: address for the email. You can only
+ have one of these per email.</description>
+ <attribute extended="false" name="address">
+ <description>The email address the email should come from.
+ </description>
+ </attribute>
+ </component>
+
+ <component closeTag="true" name="to">
+ <description>Add a recipient to the email. Use multiple m:to tags for
+ multiple recipients. This tag can be safely placed inside a repeat
+ tag such as ui:repeat.</description>
+ <attribute extended="false" name="name">
+ <description>The name of the recipient.</description>
+ </attribute>
+ <attribute extended="false" name="address">
+ <description>The email address of the recipient.</description>
+ </attribute>
+ </component>
+
+ <component closeTag="true" name="cc">
+ <description>Add a cc recipient to the email. Use multiple m:cc tags
+ for multiple ccs. This tag can be safely placed inside a iterator tag
+ such as ui:repeat.</description>
+ <attribute extended="false" name="name">
+ <description>The name of the recipient.</description>
+ </attribute>
+ <attribute extended="false" name="address">
+ <description>The email address of the recipient.</description>
+ </attribute>
+ </component>
+
+ <component closeTag="true" name="bcc">
+ <description>Add a bcc recipient to the email. Use multiple m:bcc tags
+ for multiple bccs. This tag can be safely placed inside a repeat tag
+ such as ui:repeat.</description>
+ <attribute extended="false" name="name">
+ <description>The name of the recipient.</description>
+ </attribute>
+ <attribute extended="false" name="address">
+ <description>The email address of the recipient.</description>
+ </attribute>
+ </component>
+
+ <component closeTag="true" name="header">
+ <description>Add a header to the email.</description>
+ <attribute extended="false" name="name">
+ <description>The name of the header to add.</description>
+ </attribute>
+ <attribute extended="false" name="value">
+ <description>The value of the header to add.</description>
+ </attribute>
+ </component>
+
+ <component closeTag="true" name="attachment">
+ <description>Add an attachment to the email.</description>
+ <attribute extended="false" name="value">
+ <description>The file to attach:
+ - String — A String is interpreted as a path to file within the
+ classpath
+ - java.io.File — An EL expression can reference a File object
+ - java.net.URL — An EL expression can reference a URL object
+ - java.io.InputStream — An EL expression can reference an
+ InputStream. In this case both a fileName and a contentType must be
+ specified.
+ - byte[] — An EL expression can reference an byte[]. In this case
+ both a fileName and a contentType must be specified.</description>
+ </attribute>
+ <attribute extended="false" name="fileName">
+ <description>Specify the file name to use for the attached file.
+ </description>
+ </attribute>
+ <attribute extended="false" name="contentType">
+ <description>Specify the MIME type of the attached file.
+ </description>
+ </attribute>
+ </component>
+
+ <component name="subject">
+ <description>Set's the subject for the email.</description>
+ </component>
+
+ <component name="body">
+ <description>Set's the body for the email. Supports an alternative
+ facet which, if an HTML email is generated can contain alternative
+ text for a mail reader which doesn't support html.</description>
+ <attribute extended="false" name="type">
+ <description>If set to plain then a plain text email will be
+ generated otherwise an HTML email is generated.</description>
+ <proposal type="enumeration">
+ <param value="plain" />
+ <param value="HTML" />
+ </proposal>
+ </attribute>
+ </component>
+
+</tag-lib>
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamMail.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 4 months
JBoss Tools SVN: r23938 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-08-05 10:51:45 -0400 (Thu, 05 Aug 2010)
New Revision: 23938
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamPdf.xml
Log:
https://jira.jboss.org/browse/JBIDE-5231
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamPdf.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamPdf.xml 2010-08-05 14:05:02 UTC (rev 23937)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/SeamPdf.xml 2010-08-05 14:51:45 UTC (rev 23938)
@@ -2,7 +2,7 @@
<!DOCTYPE tag-lib PUBLIC "-//Red Hat, Inc//DTD Knowledge Base 2.0//EN" "http://anonsvn.jboss.org/repos/jbosstools/trunk/jst/plugins/org.jboss.too...">
<tag-lib defaultPrefix="p">
- <component extended="false" name="document">
+ <component name="document">
<description>Documents are generated by facelets documents using tags
in the http://jboss.com/products/seam/pdf namespace. Documents should
always have the document tag at the root of the document. The
@@ -56,7 +56,7 @@
<attribute extended="false" name="creator" />
</component>
- <component extended="false" name="paragraph">
+ <component name="paragraph">
<description>Most uses of text should be sectioned into paragraphs so
that text fragments can be flowed, formatted and styled in logical
groups.</description>
@@ -77,7 +77,7 @@
<attribute extended="false" name="keepTogether" />
</component>
- <component extended="false" name="text">
+ <component name="text">
<description>The text tag allows text fragments to be produced from
application data using normal JSF converter mechanisms. It is very
similar to the outputText tag used when rendering HTML documents.
@@ -88,7 +88,7 @@
</attribute>
</component>
- <component extended="false" name="font">
+ <component name="font">
<description>The font tag defines the default font to be used for all
text inside of it.</description>
<attribute extended="false" name="name">
@@ -115,11 +115,11 @@
</attribute>
</component>
- <component extended="false" closeTag="true" name="newPage">
+ <component closeTag="true" name="newPage">
<description>p:newPage inserts a page break.</description>
</component>
- <component extended="false" closeTag="true" name="image">
+ <component closeTag="true" name="image">
<description>p:image inserts an image into the document. Images can be
be loaded from the classpath or from the web application context
using the value attribute. Resources can also be dynamically
@@ -183,7 +183,7 @@
<attribute extended="false" name="underlying" />
</component>
- <component extended="false" name="anchor">
+ <component name="anchor">
<description>p:anchor defines clickable links from a document.
</description>
<attribute extended="false" name="name">
@@ -199,7 +199,7 @@
</attribute>
</component>
- <component extended="false" name="header">
+ <component name="header">
<description>The p:header and p:footer components provide the ability
to place header and footer text on each page of a generated document,
with the exception of the first page. Header and footer declarations
@@ -349,7 +349,7 @@
<attribute extended="false" name="borderWidthBottom" />
</component>
- <component extended="false" name="footer">
+ <component name="footer">
<description>The p:header and p:footer components provide the ability
to place header and footer text on each page of a generated document,
with the exception of the first page. Header and footer declarations
@@ -499,14 +499,14 @@
<attribute extended="false" name="borderWidthBottom" />
</component>
- <component extended="false" closeTag="true" name="pageNumber">
+ <component closeTag="true" name="pageNumber">
<description>The current page number can be placed inside of a header
or footer using the p:pageNumber tag. The page number tag can only be
used in the context of a header or footer and can only be used once.
</description>
</component>
- <component extended="false" name="chapter">
+ <component name="chapter">
<description>If the generated document follows a book/article
structure, the p:chapter and p:section tags can be used to provide
the necessary structure. Sections can only be used inside of
@@ -544,7 +544,7 @@
</attribute>
</component>
- <component extended="false" name="section">
+ <component name="section">
<description>If the generated document follows a book/article
structure, the p:chapter and p:section tags can be used to provide
the necessary structure. Sections can only be used inside of
@@ -582,13 +582,13 @@
</attribute>
</component>
- <component extended="false" name="title">
+ <component name="title">
<description>Any chapter or section can contain a p:title. The title
will be displayed next to the chapter/section number. The body of the
title may contain raw text or may be a p:paragraph.</description>
</component>
- <component extended="false" name="list">
+ <component name="list">
<attribute extended="false" name="type">
<description> The ordering/bulleting style of list. One of: NUMBERED,
LETTERED, GREEK, ROMAN, ZAPFDINGBATS, ZAPFDINGBATS_NUMBER. If no
@@ -623,7 +623,7 @@
</attribute>
</component>
- <component extended="false" name="listItem">
+ <component name="listItem">
<attribute extended="false" name="alignment">
<description>The alignment of the list item. Seam PDF supports the
following horizontal alignment values: left, right, center, justify
@@ -653,7 +653,7 @@
</attribute>
</component>
- <component extended="false" name="table">
+ <component name="table">
<attribute extended="false" name="columns">
<description>The number of columns (cells) that make up a table row.
</description>
@@ -710,7 +710,7 @@
<attribute extended="false" name="keepTogether" />
</component>
- <component extended="false" name="cell">
+ <component name="cell">
<attribute extended="false" name="colspan">
<description>Cells can span more than one column by declaring a
colspan greater than 1. Tables do not have the ability to span
@@ -766,7 +766,7 @@
<attribute extended="false" name="rotation" />
</component>
- <component extended="false" name="barchart">
+ <component name="barchart">
<description>Displays a bar chart.</description>
<attribute extended="false" name="borderVisible">
<description>Controls whether or not a border is displayed around the
@@ -1026,7 +1026,7 @@
</attribute>
</component>
- <component extended="false" name="linechart">
+ <component name="linechart">
<description>Displays a line chart.</description>
<attribute extended="false" name="borderVisible">
<description>Controls whether or not a border is displayed around the
@@ -1267,7 +1267,7 @@
</attribute>
</component>
- <component extended="false" name="piechart">
+ <component name="piechart">
<description>Displays a pie chart.</description>
<attribute extended="false" name="title">
<description>The chart title text.</description>
@@ -1415,7 +1415,7 @@
<attribute extended="false" name="baseSectionOutlineStroke" />
</component>
- <component extended="false" name="series">
+ <component name="series">
<description>Category data can be broken down into series. The series
tag is used to categorize a set of data with a series and apply
styling to the entire series.</description>
@@ -1479,7 +1479,7 @@
</attribute>
</component>
- <component extended="false" closeTag="true" name="data">
+ <component closeTag="true" name="data">
<description>The data tag describes each data point to be displayed in
the graph.</description>
<attribute extended="false" name="key">
@@ -1537,7 +1537,7 @@
</attribute>
</component>
- <component extended="false" closeTag="true" name="color">
+ <component closeTag="true" name="color">
<description>The color component declares a color or gradient than can
be referenced when drawing filled shapes.</description>
<attribute extended="false" name="color">
@@ -1586,7 +1586,7 @@
</attribute>
</component>
- <component extended="false" closeTag="true" name="stroke">
+ <component closeTag="true" name="stroke">
<description>Describes a stroke used to draw lines in a chart.
</description>
<attribute extended="false" name="width">
@@ -1625,7 +1625,7 @@
</attribute>
</component>
- <component extended="false" name="barcode">
+ <component name="barcode">
<attribute extended="false" name="type" />
<attribute extended="false" name="code" />
<attribute extended="false" name="xpos" />
15 years, 4 months