JBoss Tools SVN: r30411 - in trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test: editor/tags and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2011-04-07 08:23:46 -0400 (Thu, 07 Apr 2011)
New Revision: 30411
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataListTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataOrderedListTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ExtendedDataTableTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/TogglePanelAndToogleControlTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ToolbarAndToolbarGroupTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/VirtualEarthTagTest.java
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
Log:
Added RichFaces Tags Tests
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2011-04-07 11:57:13 UTC (rev 30410)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2011-04-07 12:23:46 UTC (rev 30411)
@@ -44,9 +44,12 @@
import org.jboss.tools.vpe.ui.bot.test.editor.tags.CoreHTMLTagsTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataDefinitionTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataGridTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataListTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataOrderedListTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataScrollerTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataTableTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.EditorTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.ExtendedDataTableTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.FileUploadTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.InplaceInputTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.InplaceSelectInputTagTest;
@@ -57,7 +60,10 @@
import org.jboss.tools.vpe.ui.bot.test.editor.tags.PickListTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ProgressTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.SpacerTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.TogglePanelAndToogleControlTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.ToolbarAndToolbarGroupTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.TreeTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.VirtualEarthTagTest;
import org.jboss.tools.vpe.ui.bot.test.jbide.JBIDE4556Test;
import org.jboss.tools.vpe.ui.bot.test.palette.CancelTagLibDefenitionTest;
import org.jboss.tools.vpe.ui.bot.test.palette.ImportTagsFromTLDFileTest;
@@ -145,6 +151,12 @@
suite.addTestSuite(BeanValidatorTagTest.class);
suite.addTestSuite(ColumnGroupTagTest.class);
suite.addTestSuite(DataGridTagTest.class);
+ suite.addTestSuite(VirtualEarthTagTest.class);
+ suite.addTestSuite(DataListTagTest.class);
+ suite.addTestSuite(DataOrderedListTagTest.class);
+ suite.addTestSuite(ExtendedDataTableTagTest.class);
+ suite.addTestSuite(ToolbarAndToolbarGroupTagTest.class);
+ suite.addTestSuite(TogglePanelAndToogleControlTagTest.class);
suite.addTestSuite(XhtmlFilePerformanceTest.class);
return new TestSetup(suite);
}
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataListTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataListTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataListTagTest.java 2011-04-07 12:23:46 UTC (rev 30411)
@@ -0,0 +1,83 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+import org.jboss.tools.ui.bot.ext.Timing;
+
+/**
+ * Tests Rich Faces dataList Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class DataListTagTest extends RichFacesTagsTest{
+ private static final String ROW_0_VALUE = "!-* Row 0 Value";
+ private static final String ROW_1_VALUE = "!-* Row 1 Value";
+ private static final String ROW_2_VALUE = "!-* Row 2 Value";
+ @Override
+ protected void initPageContent() {
+ xhtmlEditor.setText("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\"\n" +
+ " xmlns:f=\"http://java.sun.com/jsf/core\"\n" +
+ " xmlns:rich=\"http://richfaces.org/rich\"\n" +
+ " xmlns:h=\"http://java.sun.com/jsf/html\">\n" +
+ " <head>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <f:view>\n" +
+ " <rich:dataList>\n" +
+ " <h:outputText value=\"" + DataListTagTest.ROW_0_VALUE + "\"/>\n" +
+ " <br/>\n" +
+ " <h:outputText value=\"" + DataListTagTest.ROW_1_VALUE + "\"/>\n" +
+ " <br/>\n" +
+ " <h:outputText value=\"" + DataListTagTest.ROW_2_VALUE + "\"/>\n" +
+ " </rich:dataList>\n" +
+ " </f:view>\n" +
+ " </body>\n" +
+ "</html>");
+ }
+
+ @Override
+ protected void verifyTag() {
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "UL",
+ new String[]{"class"},
+ new String[]{"dr-list rich-datalist"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "LI",
+ new String[]{"class"},
+ new String[]{"dr-list-item rich-list-item"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ DataListTagTest.ROW_0_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ DataListTagTest.ROW_1_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ DataListTagTest.ROW_2_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ // check tag selecti
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("LI",0), 0);
+ bot.sleep(Timing.time3S());
+ String selectedText = xhtmlEditor.getSelection();
+ String hasToStartWith = "<rich:dataList>";
+ assertTrue("Selected text in Source Pane has to start with '" + hasToStartWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().startsWith(hasToStartWith));
+ String hasEndWith = "</rich:dataList>";
+ assertTrue("Selected text in Source Pane has to end with '" + hasEndWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().endsWith(hasEndWith));
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataListTagTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataOrderedListTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataOrderedListTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataOrderedListTagTest.java 2011-04-07 12:23:46 UTC (rev 30411)
@@ -0,0 +1,83 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+import org.jboss.tools.ui.bot.ext.Timing;
+
+/**
+ * Tests Rich Faces dataOrderedList Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class DataOrderedListTagTest extends RichFacesTagsTest{
+ private static final String ROW_0_VALUE = "!-* Row 0 Value";
+ private static final String ROW_1_VALUE = "!-* Row 1 Value";
+ private static final String ROW_2_VALUE = "!-* Row 2 Value";
+ @Override
+ protected void initPageContent() {
+ xhtmlEditor.setText("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\"\n" +
+ " xmlns:f=\"http://java.sun.com/jsf/core\"\n" +
+ " xmlns:rich=\"http://richfaces.org/rich\"\n" +
+ " xmlns:h=\"http://java.sun.com/jsf/html\">\n" +
+ " <head>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <f:view>\n" +
+ " <rich:dataOrderedList>\n" +
+ " <h:outputText value=\"" + DataOrderedListTagTest.ROW_0_VALUE + "\"/>\n" +
+ " <br/>\n" +
+ " <h:outputText value=\"" + DataOrderedListTagTest.ROW_1_VALUE + "\"/>\n" +
+ " <br/>\n" +
+ " <h:outputText value=\"" + DataOrderedListTagTest.ROW_2_VALUE + "\"/>\n" +
+ " </rich:dataOrderedList>\n" +
+ " </f:view>\n" +
+ " </body>\n" +
+ "</html>");
+ }
+
+ @Override
+ protected void verifyTag() {
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "OL",
+ new String[]{"class"},
+ new String[]{"dr-list rich-orderedlist"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "LI",
+ new String[]{"class"},
+ new String[]{"dr-list-item rich-list-item"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ DataOrderedListTagTest.ROW_0_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ DataOrderedListTagTest.ROW_1_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ DataOrderedListTagTest.ROW_2_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ // check tag selecti
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("LI",0), 0);
+ bot.sleep(Timing.time3S());
+ String selectedText = xhtmlEditor.getSelection();
+ String hasToStartWith = "<rich:dataOrderedList>";
+ assertTrue("Selected text in Source Pane has to start with '" + hasToStartWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().startsWith(hasToStartWith));
+ String hasEndWith = "</rich:dataOrderedList>";
+ assertTrue("Selected text in Source Pane has to end with '" + hasEndWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().endsWith(hasEndWith));
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DataOrderedListTagTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ExtendedDataTableTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ExtendedDataTableTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ExtendedDataTableTagTest.java 2011-04-07 12:23:46 UTC (rev 30411)
@@ -0,0 +1,114 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+import org.jboss.tools.ui.bot.ext.Timing;
+
+/**
+ * Tests Rich Faces dataOrderedList Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class ExtendedDataTableTagTest extends RichFacesTagsTest{
+ private static final String COL_0_VALUE = "!-* Col 0 Value";
+ private static final String COL_1_VALUE = "!-* Col 1 Value";
+ private static final String COL_0_LABEL = "!-* Col 0 Label";
+ private static final String COL_1_LABEL = "!-* Col 1 Label";
+ @Override
+ protected void initPageContent() {
+ xhtmlEditor.setText("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\"\n" +
+ " xmlns:f=\"http://java.sun.com/jsf/core\"\n" +
+ " xmlns:rich=\"http://richfaces.org/rich\"\n" +
+ " xmlns:h=\"http://java.sun.com/jsf/html\">\n" +
+ " <head>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <f:view>\n" +
+ " <rich:extendedDataTable>\n" +
+ " <rich:column>\n" +
+ " <f:facet name=\"header\">\n" +
+ " <h:outputText value=\"" + ExtendedDataTableTagTest.COL_0_LABEL + "\"/>\n" +
+ " </f:facet>\n" +
+ " <h:outputText value=\"" + ExtendedDataTableTagTest.COL_0_VALUE + "\"/>\n" +
+ " </rich:column>\n" +
+ " <rich:column>\n" +
+ " <f:facet name=\"header\">\n" +
+ " <h:outputText value=\"" + ExtendedDataTableTagTest.COL_1_LABEL + "\"/>\n" +
+ " </f:facet>\n" +
+ " <h:outputText value=\"" + ExtendedDataTableTagTest.COL_1_VALUE + "\"/>\n" +
+ " </rich:column>\n" +
+ " </rich:extendedDataTable>\n" +
+ " </f:view>\n" +
+ " </body>\n" +
+ "</html>");
+ }
+
+ @Override
+ protected void verifyTag() {
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "TR",
+ new String[]{"class"},
+ new String[]{"dr-table-subheader rich-table-subheader"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "TH",
+ new String[]{"class"},
+ new String[]{"dr-table-subheadercell rich-table-subheadercell"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "TR",
+ new String[]{"class"},
+ new String[]{"dr-table-subfooter rich-table-subfooter"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "TD",
+ new String[]{"class"},
+ new String[]{"dr-table-subfootercell rich-table-subfootercell dr-table-subfooter rich-table-subfooter"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "TR",
+ new String[]{"class"},
+ new String[]{"dr-body-table-tr"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "TD",
+ new String[]{"class"},
+ new String[]{"dr-table-cell rich-table-cell"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ ExtendedDataTableTagTest.COL_0_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ ExtendedDataTableTagTest.COL_1_VALUE,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ ExtendedDataTableTagTest.COL_0_LABEL,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ ExtendedDataTableTagTest.COL_1_LABEL,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ // check tag selecti
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("TABLE",1), 0);
+ bot.sleep(Timing.time3S());
+ String selectedText = xhtmlEditor.getSelection();
+ String hasToStartWith = "<rich:extendedDataTable>";
+ assertTrue("Selected text in Source Pane has to start with '" + hasToStartWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().startsWith(hasToStartWith));
+ String hasEndWith = "</rich:extendedDataTable>";
+ assertTrue("Selected text in Source Pane has to end with '" + hasEndWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().endsWith(hasEndWith));
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ExtendedDataTableTagTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/TogglePanelAndToogleControlTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/TogglePanelAndToogleControlTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/TogglePanelAndToogleControlTagTest.java 2011-04-07 12:23:46 UTC (rev 30411)
@@ -0,0 +1,83 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+import org.jboss.tools.ui.bot.ext.Timing;
+
+/**
+ * Tests Rich Faces togglePanel and toogleControl and toolBarGroup Tags behavior
+ * @author vlado pakan
+ *
+ */
+public class TogglePanelAndToogleControlTagTest extends RichFacesTagsTest{
+ private static final String FACET_0_LABEL = "!-* Facet 0 Label";
+ private static final String FACET_1_LABEL = "!-* Facet 1 Label";
+ @Override
+ protected void initPageContent() {
+ xhtmlEditor.setText("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\"\n" +
+ " xmlns:f=\"http://java.sun.com/jsf/core\"\n" +
+ " xmlns:rich=\"http://richfaces.org/rich\"\n" +
+ " xmlns:h=\"http://java.sun.com/jsf/html\">\n" +
+ " <head>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <f:view>\n" +
+ " <rich:togglePanel>\n" +
+ " <f:facet name=\"facet0\">\n" +
+ " <rich:toggleControl>\n" +
+ " <h:outputText value=\"" + TogglePanelAndToogleControlTagTest.FACET_0_LABEL + "\" />\n" +
+ " </rich:toggleControl>\n" +
+ " </f:facet>\n" +
+ " <f:facet name=\"facet1\">\n" +
+ " <h:outputText value=\"" + TogglePanelAndToogleControlTagTest.FACET_1_LABEL + "\" />\n" +
+ " </f:facet>\n" +
+ " </rich:togglePanel>\n" +
+ " </f:view>\n" +
+ " </body>\n" +
+ "</html>");
+ }
+
+ @Override
+ protected void verifyTag() {
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ TogglePanelAndToogleControlTagTest.FACET_0_LABEL,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorNotContainNodeWithValue(xhtmlWebBrowser,
+ TogglePanelAndToogleControlTagTest.FACET_1_LABEL,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ // check tag selection
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("DIV",4), 0);
+ bot.sleep(Timing.time3S());
+ String selectedText = xhtmlEditor.getSelection();
+ String hasToStartWith = "<rich:togglePanel>";
+ assertTrue("Selected text in Source Pane has to start with '" + hasToStartWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().startsWith(hasToStartWith));
+ String hasEndWith = "</rich:togglePanel>";
+ assertTrue("Selected text in Source Pane has to end with '" + hasEndWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().endsWith(hasEndWith));
+ // check rich:toolBarGroup selection
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("SPAN",0), 0);
+ bot.sleep(Timing.time3S());
+ selectedText = xhtmlEditor.getSelection();
+ hasToStartWith = "<rich:toggleControl>";
+ assertTrue("Selected text in Source Pane has to start with '" + hasToStartWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().startsWith(hasToStartWith));
+ hasEndWith = "</rich:toggleControl>";
+ assertTrue("Selected text in Source Pane has to end with '" + hasEndWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().endsWith(hasEndWith));
+ }
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/TogglePanelAndToogleControlTagTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ToolbarAndToolbarGroupTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ToolbarAndToolbarGroupTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ToolbarAndToolbarGroupTagTest.java 2011-04-07 12:23:46 UTC (rev 30411)
@@ -0,0 +1,88 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+import org.jboss.tools.ui.bot.ext.Timing;
+
+/**
+ * Tests Rich Faces toolBar and toolBarGroup Tags behavior
+ * @author vlado pakan
+ *
+ */
+public class ToolbarAndToolbarGroupTagTest extends RichFacesTagsTest{
+ private static final String GROUP_0_LABEL = "!-* Group 0 Label";
+ private static final String GROUP_1_LABEL = "!-* Group 1 Label";
+ @Override
+ protected void initPageContent() {
+ xhtmlEditor.setText("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\"\n" +
+ " xmlns:f=\"http://java.sun.com/jsf/core\"\n" +
+ " xmlns:rich=\"http://richfaces.org/rich\"\n" +
+ " xmlns:h=\"http://java.sun.com/jsf/html\">\n" +
+ " <head>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <f:view>\n" +
+ " <rich:toolBar>\n" +
+ " <rich:toolBarGroup>\n" +
+ " <h:outputText value=\"" + ToolbarAndToolbarGroupTagTest.GROUP_0_LABEL + "\"/>\n" +
+ " </rich:toolBarGroup>\n" +
+ " <rich:toolBarGroup>\n" +
+ " <h:outputText value=\"" + ToolbarAndToolbarGroupTagTest.GROUP_1_LABEL + "\"/>\n" +
+ " </rich:toolBarGroup>\n" +
+ " </rich:toolBar>\n" +
+ " </f:view>\n" +
+ " </body>\n" +
+ "</html>");
+ }
+
+ @Override
+ protected void verifyTag() {
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "TD",
+ new String[]{"class"},
+ new String[]{"dr-toolbar-int rich-toolbar-item"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ ToolbarAndToolbarGroupTagTest.GROUP_0_LABEL,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContainsNodeWithValue(xhtmlWebBrowser,
+ ToolbarAndToolbarGroupTagTest.GROUP_1_LABEL,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ // check tag selection
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("TBODY",0), 0);
+ bot.sleep(Timing.time3S());
+ String selectedText = xhtmlEditor.getSelection();
+ String hasToStartWith = "<rich:toolBar>";
+ assertTrue("Selected text in Source Pane has to start with '" + hasToStartWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().startsWith(hasToStartWith));
+ String hasEndWith = "</rich:toolBar>";
+ assertTrue("Selected text in Source Pane has to end with '" + hasEndWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().endsWith(hasEndWith));
+ // check rich:toolBarGroup selection
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("TBODY",1), 0);
+ bot.sleep(Timing.time3S());
+ selectedText = xhtmlEditor.getSelection();
+ hasToStartWith = "<rich:toolBarGroup>";
+ assertTrue("Selected text in Source Pane has to start with '" + hasToStartWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().startsWith(hasToStartWith));
+ hasEndWith = "</rich:toolBarGroup>";
+ assertTrue("Selected text in Source Pane has to end with '" + hasEndWith + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().endsWith(hasEndWith));
+
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ToolbarAndToolbarGroupTagTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/VirtualEarthTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/VirtualEarthTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/VirtualEarthTagTest.java 2011-04-07 12:23:46 UTC (rev 30411)
@@ -0,0 +1,61 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+import org.jboss.tools.ui.bot.ext.Timing;
+
+/**
+ * Tests Rich Faces virtualEarth Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class VirtualEarthTagTest extends RichFacesTagsTest{
+ @Override
+ protected void initPageContent() {
+ xhtmlEditor.setText("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\"\n" +
+ " xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n" +
+ " xmlns:f=\"http://java.sun.com/jsf/core\"\n" +
+ " xmlns:rich=\"http://richfaces.org/rich\"\n" +
+ " xmlns:h=\"http://java.sun.com/jsf/html\">\n" +
+ "<head>\n" +
+ "</head>\n" +
+ "<body>\n" +
+ " <f:view>\n" +
+ " <rich:virtualEarth/>\n" +
+ " </f:view>\n" +
+ " </body>\n" +
+ "</html>");
+ }
+
+ @Override
+ protected void verifyTag() {
+ assertVisualEditorContainsManyNodes(xhtmlWebBrowser,
+ "IMG",
+ 2,
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ assertVisualEditorContains(xhtmlWebBrowser,
+ "SCRIPT",
+ new String[]{"type","src"},
+ new String[]{"text/javascript","mozileLoader.js"},
+ RichFacesTagsTest.TEST_PAGE_NAME_XHTML);
+ // check tag selection
+ xhtmlWebBrowser.selectDomNode(xhtmlWebBrowser.getDomNodeByTagName("IMG",0), 0);
+ bot.sleep(Timing.time3S());
+ String selectedText = xhtmlEditor.getSelection();
+ String hasToBe = "<rich:virtualEarth/>";
+ assertTrue("Selected text in Source Pane has to be '" + hasToBe + "'" +
+ "\nbut it is '" + selectedText + "'",
+ selectedText.trim().equals(hasToBe));
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/VirtualEarthTagTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 3 months
JBoss Tools SVN: r30410 - trunk/documentation/parent.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-04-07 07:57:13 -0400 (Thu, 07 Apr 2011)
New Revision: 30410
Modified:
trunk/documentation/parent/pom.xml
Log:
adding jboss parent for deployment
Modified: trunk/documentation/parent/pom.xml
===================================================================
--- trunk/documentation/parent/pom.xml 2011-04-07 11:56:40 UTC (rev 30409)
+++ trunk/documentation/parent/pom.xml 2011-04-07 11:57:13 UTC (rev 30410)
@@ -2,6 +2,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>5</version>
+ </parent>
+
<groupId>org.jboss.tools</groupId>
<artifactId>org.jboss.tools.documentation.parent.pom</artifactId>
<version>1.0.0-SNAPSHOT</version>
13 years, 3 months
JBoss Tools SVN: r30409 - trunk/module_template/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-04-07 07:56:40 -0400 (Thu, 07 Apr 2011)
New Revision: 30409
Removed:
trunk/module_template/docs/reference/en-US/latest_developments.xml
Modified:
trunk/module_template/docs/reference/en-US/master.xml
Log:
fix some more casing errors
Deleted: trunk/module_template/docs/reference/en-US/latest_developments.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/latest_developments.xml 2011-04-07 11:06:18 UTC (rev 30408)
+++ trunk/module_template/docs/reference/en-US/latest_developments.xml 2011-04-07 11:56:40 UTC (rev 30409)
@@ -1,31 +0,0 @@
-<?xml version='1.0' encoding='utf-8' ?>
-
-<chapter id="chap-template-latest_developments">
- <title>Latest developments</title>
- <para>
- The following are new features added to the Tool in release x.x.
- </para>
- <table frame='all'><title>New features</title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Feature name</entry>
- <entry>Description</entry>
- <entry>Further information</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>Name of the feature</entry>
- <entry>Describe new feature, why it's been created</entry>
- <entry>Link to task section for new feature and concept section (if it is also a new concept)</entry>
- </row>
- </tbody>
- </tgroup>
-
- </table>
-</chapter>
-
Modified: trunk/module_template/docs/reference/en-US/master.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/master.xml 2011-04-07 11:06:18 UTC (rev 30408)
+++ trunk/module_template/docs/reference/en-US/master.xml 2011-04-07 11:56:40 UTC (rev 30409)
@@ -2,13 +2,12 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
"http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd"
-[<!ENTITY Latest_Developments SYSTEM "Latest_Developments.xml">
-<!ENTITY Getting_Started SYSTEM "Getting_Started.xml">
-<!ENTITY Concepts SYSTEM "Concepts.xml">
-<!ENTITY Tasks SYSTEM "Tasks.xml">
-<!ENTITY Reference SYSTEM "Reference.xml">
-<!ENTITY Troubleshooting SYSTEM "Troubleshooting.xml">
-<!ENTITY Revision_History SYSTEM "Revision_History.xml">
+[<!ENTITY getting_started SYSTEM "getting_started.xml">
+<!ENTITY concepts SYSTEM "concepts.xml">
+<!ENTITY tasks SYSTEM "tasks.xml">
+<!ENTITY reference SYSTEM "reference.xml">
+<!ENTITY troubleshooting SYSTEM "troubleshooting.xml">
+<!ENTITY revision_history SYSTEM "revision_history.xml">
]>
<book>
@@ -42,12 +41,11 @@
</bookinfo>
<toc/>
- &Latest_Developments;
- &Getting_Started;
- &Concepts;
- &Tasks;
- &Reference;
- &Troubleshooting;
- &Revision_History;
+ &getting_started;
+ &concepts;
+ &tasks;
+ &reference;
+ &troubleshooting;
+ &revision_history;
</book>
13 years, 3 months
JBoss Tools SVN: r30408 - in trunk/documentation: parent and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-04-07 07:06:18 -0400 (Thu, 07 Apr 2011)
New Revision: 30408
Added:
trunk/documentation/parent/
trunk/documentation/parent/pom.xml
Log:
added tentative parent documentation
Added: trunk/documentation/parent/pom.xml
===================================================================
--- trunk/documentation/parent/pom.xml (rev 0)
+++ trunk/documentation/parent/pom.xml 2011-04-07 11:06:18 UTC (rev 30408)
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.documentation.parent.pom</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>JBoss Tools Documentation Parent</name>
+ <packaging>pom</packaging>
+
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+
+ <profiles>
+
+ <!-- mvn compile -->
+ <profile>
+ <id>all</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.3.4</version>
+ <extensions>true</extensions>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${docname}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <useRelativeImageUris>true</useRelativeImageUris>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!-- mvn compile -Phtml -->
+ <profile>
+ <id>html</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.3.3</version>
+ <extensions>true</extensions>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!-- mvn compile -Phtml-single -->
+ <profile>
+ <id>html-single</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.3.3</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!-- mvn compile -Ppdf -->
+ <profile>
+ <id>pdf</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.3.3</version>
+ <extensions>true</extensions>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${docname}.pdf</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!-- mvn compile -Peclipse -->
+ <profile>
+ <id>eclipse</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.3.3</version>
+ <extensions>true</extensions>
+ <configuration>
+ <formats>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.3.3</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.pressgang</groupId>
+ <artifactId>pressgang-xslt</artifactId>
+ <version>1.2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.1</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDirectory>${project.basedir}</sourceDirectory>
+ <!-- <sourceDocumentName>${docname}.xml</sourceDocumentName> -->
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <masterTranslation>en-US</masterTranslation>
+ <imageResource>
+ <directory>${project.basedir}/en-US</directory>
+ <includes>
+ <include>images/**/*</include>
+ </includes>
+ </imageResource>
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource>
+ <finalName>${pdf.name}</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <docbookVersion>1.72.0</docbookVersion>
+ <localeSeparator>-</localeSeparator>
+ <transformerParameters>
+ <property>
+ <name>javax.xml.parsers.DocumentBuilderFactory</name>
+ <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value>
+ </property>
+ <property>
+ <name>javax.xml.parsers.SAXParserFactory</name>
+ <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value>
+ </property>
+ </transformerParameters>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+
+</project>
13 years, 3 months
JBoss Tools SVN: r30407 - in trunk/module_template/docs/reference: en-US and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-04-07 07:05:32 -0400 (Thu, 07 Apr 2011)
New Revision: 30407
Added:
trunk/module_template/docs/reference/README
trunk/module_template/docs/reference/en-US/
trunk/module_template/docs/reference/en-US/author_group.xml
trunk/module_template/docs/reference/en-US/book_info.xml
trunk/module_template/docs/reference/en-US/concepts.xml
trunk/module_template/docs/reference/en-US/getting_started.xml
trunk/module_template/docs/reference/en-US/images/
trunk/module_template/docs/reference/en-US/latest_developments.xml
trunk/module_template/docs/reference/en-US/master.xml
trunk/module_template/docs/reference/en-US/preface.xml
trunk/module_template/docs/reference/en-US/reference.xml
trunk/module_template/docs/reference/en-US/revision_history.xml
trunk/module_template/docs/reference/en-US/tasks.xml
trunk/module_template/docs/reference/en-US/template.ent
trunk/module_template/docs/reference/en-US/template.xml
trunk/module_template/docs/reference/en-US/troubleshooting.xml
trunk/module_template/docs/reference/pom.xml
trunk/module_template/docs/reference/publican.cfg
Log:
committed 'scrubbed' version of isaacs initial doc template
Added: trunk/module_template/docs/reference/README
===================================================================
--- trunk/module_template/docs/reference/README (rev 0)
+++ trunk/module_template/docs/reference/README 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,21 @@
+Template for reference guide.
+
+How to build everything:
+ mvn install
+
+Just build just html-single:
+ mvn -Phtml-single install
+
+ Other profiles: pdf, html, eclipse
+
+ Look for other <profile>'s in parent pom.
+
+Guidelines:
+ use lowercase names for filenames to avoid casing issues
+ on various OS's and to make it easier to search for names/content.
+
+ Comment out chapters/sections that is not correct/actively maintained.
+
+Known issues:
+ Translation dependds on ${docname} and other variables
+ in artifactid but that is not really supported/recommended by Maven
\ No newline at end of file
Added: trunk/module_template/docs/reference/en-US/author_group.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/author_group.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/author_group.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE authorgroup PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<authorgroup>
+ <author>
+ <firstname>Your First Name</firstname>
+ <surname>Your Surname</surname>
+ </author>
+</authorgroup>
+
Added: trunk/module_template/docs/reference/en-US/book_info.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/book_info.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/book_info.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE bookinfo PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<bookinfo id="book-template-template">
+ <title>Template</title>
+ <subtitle>
+ Provides information about the use of the <application>JBoss Developer Studio</application> from a beginners level.
+ </subtitle>
+
+ <productname>JBoss Developer Studio</productname>
+
+ <productnumber>0.0</productnumber>
+
+ <edition>0.0.0</edition>
+
+ <pubsnumber>0</pubsnumber>
+
+ <abstract>
+ <para>
+ The Template for creating new books for <application>JBoss Developer Studio</application> and <application>JBoss Tools</application>. It is intended for developers who wish to document their creations.
+ </para>
+ </abstract>
+
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="Common_Content/images/title_logo.svg" format="SVG" />
+ </imageobject>
+ </inlinemediaobject>
+ </corpauthor>
+
+ <xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+
+ <xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+</bookinfo>
Added: trunk/module_template/docs/reference/en-US/concepts.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/concepts.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/concepts.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,30 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<chapter id="chap-template-concepts">
+ <title>Concepts</title>
+ <para>
+ This chapter discusses the underlying concepts behind the Tool. General information is provided here. The rules associated with the implementation of a particular feature or concept should be listed in the relevant section. e.g the requirement to have a zero argument constructor for a persistent class in Hibernate.
+ </para>
+ <para>
+ Begin with a general overview of the basis of the Tool, with a new section for each new concept
+ </para>
+ <section id="sect-template-concepts-first_new_concept">
+ <title>First new concept</title>
+ <para>
+ Concept information.
+ </para>
+ <para>
+ <Link to a task that implements the concept>
+ </para>
+ </section>
+ <section id="sect-template-concepts-second_new_concept">
+ <title>Second new concept</title>
+ <para>
+ Concept information.
+ </para>
+ <para>
+ <Link to a task that implements the concept>
+ </para>
+ </section>
+</chapter>
+
Added: trunk/module_template/docs/reference/en-US/getting_started.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/getting_started.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/getting_started.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,50 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<chapter id="chap-template-getting_started">
+ <title>Getting Started</title>
+ <para>
+ The following sections detail the installations required to use The Tool and provide a quick overview
+ of The Tool and its use.
+ </para>
+ <section id="sect-template-getting_started-required_installations">
+ <title>Required installations</title>
+ <para>
+ The Tool requires the following installations to be present on the user's system:
+ </para>
+ <variablelist>
+ <title>Ensure that the following applications are pre-configured on your system.</title>
+ <varlistentry>
+ <term>JBoss Developer Studio x.x.</term>
+ <listitem>
+ <para>
+ <ulink url="https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?downl...">JBoss Developer Studio software downloads</ulink>
+ </para>
+ <para>
+ <ulink url="http://docs.redhat.com/docs/en-US/JBoss_Developer_Studio/index.html">JBoss Developer Studio documentation</ulink>
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Java Development Kit 1.6</term>
+ <listitem>
+ <para>
+ <ulink url="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/...">Java Development Kit 1.6 download</ulink>
+ </para>
+ <para>
+ <ulink url="http://java.sun.com/javase/6/webnotes/adoption/adoptionguide.html">JDK 6 Adoption Guide</ulink>
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+ <section id="sect-template-getting_started-quick_start">
+ <title>Quick start</title>
+ <para>
+ This section should detail a short procedure that will allow a user to become familiar with the tool interface and create a basic project.
+ </para>
+ <para>
+ To gain a greater understanding of the ideas and concepts behind the tool, see <link to concepts section>. For informaiton on further tasks that can be performed, see <link to the tasks section>.
+ </para>
+ </section>
+</chapter>
+
Added: trunk/module_template/docs/reference/en-US/latest_developments.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/latest_developments.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/latest_developments.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,31 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<chapter id="chap-template-latest_developments">
+ <title>Latest developments</title>
+ <para>
+ The following are new features added to the Tool in release x.x.
+ </para>
+ <table frame='all'><title>New features</title>
+ <tgroup cols='3' align='left' colsep='1' rowsep='1'>
+ <colspec colname='c1'/>
+ <colspec colname='c2'/>
+ <colspec colname='c3'/>
+ <thead>
+ <row>
+ <entry>Feature name</entry>
+ <entry>Description</entry>
+ <entry>Further information</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>Name of the feature</entry>
+ <entry>Describe new feature, why it's been created</entry>
+ <entry>Link to task section for new feature and concept section (if it is also a new concept)</entry>
+ </row>
+ </tbody>
+ </tgroup>
+
+ </table>
+</chapter>
+
Added: trunk/module_template/docs/reference/en-US/master.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/master.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/master.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
+"http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd"
+
+[<!ENTITY Latest_Developments SYSTEM "Latest_Developments.xml">
+<!ENTITY Getting_Started SYSTEM "Getting_Started.xml">
+<!ENTITY Concepts SYSTEM "Concepts.xml">
+<!ENTITY Tasks SYSTEM "Tasks.xml">
+<!ENTITY Reference SYSTEM "Reference.xml">
+<!ENTITY Troubleshooting SYSTEM "Troubleshooting.xml">
+<!ENTITY Revision_History SYSTEM "Revision_History.xml">
+]>
+
+<book>
+
+ <bookinfo>
+ <title>Template</title>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject role="fo">
+ <imagedata format="PNG" fileref="images/jbosstools_logo.png" />
+ </imageobject>
+ <imageobject role="html">
+ <imagedata/>
+ </imageobject>
+ </inlinemediaobject>
+ </corpauthor>
+
+ <author>
+ <firstname>Your First Name</firstname>
+ <surname>Your Surname</surname>
+ </author>
+
+ <copyright>
+ <year>2011</year>
+ <holder>JBoss by Red Hat</holder>
+ </copyright>
+ <releaseinfo>
+ Version: x.x.x
+ </releaseinfo>
+
+ </bookinfo>
+
+ <toc/>
+ &Latest_Developments;
+ &Getting_Started;
+ &Concepts;
+ &Tasks;
+ &Reference;
+ &Troubleshooting;
+ &Revision_History;
+
+</book>
Added: trunk/module_template/docs/reference/en-US/preface.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/preface.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/preface.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!--<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "Cloud_Tools_Reference_Guide.ent">
+%BOOK_ENTITIES;
+]> -->
+<preface id="pref-cloud_tools_reference_guide-preface">
+ <title>Preface</title>
+ <para>
+ This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. To get more information on these conventions please refer to the <guilabel>Document Conventions</guilabel> manual, which can be found on the <ulink url="http://docs.redhat.com/docs/en-US/JBoss_Developer_Studio/index.html">Red Hat Documentation</ulink> website under the <guilabel>JBoss Developer Studio</guilabel> section.
+ </para>
+ <!--<xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
+ </xi:include>-->
+</preface>
+
Added: trunk/module_template/docs/reference/en-US/reference.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/reference.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/reference.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,135 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<chapter id="chap-template-reference">
+ <title>Reference</title>
+ <para>
+ This section should detail the actual screen and interface that a user interacts with. For instance, if a user is attempting to create a project through a wizard, then each of the screen should be available here, documenting what each section of the screen means. In this way, a user may not be wishing to undertake a perdefined task as mentioned in the task section, but still need assistance with what should go in certain fields and such.
+ </para>
+ <section id="sect-template-reference-wizards">
+ <title>Wizards</title>
+ <para>
+ Explain what a wizard is in one paragraph
+ </para>
+ <section id="sect-template-reference-wizards-wizard_one">
+ <title>Wizard one</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ <section id="sect-template-reference-wizards-wizard_two">
+ <title>Wizard two</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ </section>
+ <section id="sect-template-reference-perspectives">
+ <title>Perspectives</title>
+ <para>
+ Explain what a perspective is in one paragraph
+ </para>
+ <section id="sect-template-reference-perspectives-perspective_one">
+ <title>Perspective one</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ <section id="sect-template-reference-perspectives-perspective_two">
+ <title>Perspective two</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ </section>
+ <section id="sect-template-reference-views">
+ <title>Views</title>
+ <para>
+ Explain what a view is in one paragraph
+ </para>
+ <section id="sect-template-reference-views-view_one">
+ <title>View one</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ <section id="sect-template-reference-views-view_two">
+ <title>View two</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ </section>
+ <section id="sect-template-reference-editors">
+ <title>Views</title>
+ <para>
+ Explain what an editor is in one paragraph
+ </para>
+ <section id="sect-template-reference-editors-editor_one">
+ <title>Editor one</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ <section id="sect-template-reference-editors-editor_two">
+ <title>Editor two</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ </section>
+ <section id="sect-template-reference-preference_pages">
+ <title>Preference pages</title>
+ <para>
+ Explain what preference pages are in one paragraph
+ </para>
+ <section id="sect-template-reference-preference_pages-preference_page_one">
+ <title>Preference page one</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ <section id="sect-template-reference-preference_pages-preference_page_two">
+ <title>Preference page two</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ </section>
+ <section id="sect-template-reference-dialogs">
+ <title>Dialogs</title>
+ <para>
+ Explain what a dialog is in one paragraph
+ </para>
+ <section id="sect-template-reference-dialogs-dialog_one">
+ <title>Dialog one</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ <section id="sect-template-reference-dialogs-dialog_two">
+ <title>Dialog two</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ </section>
+ <section id="sect-template-reference-icons_and_buttons">
+ <title>Icons and Buttons</title>
+ <para>
+ Explain what icons and buttons are in one paragraph
+ </para>
+ <section id="sect-template-reference-icons_and_buttons-icons_and_buttons_set_one">
+ <title>Icons and Buttons set one</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ <section id="sect-template-reference-icons_and_buttons-icons_and_buttons_set_two">
+ <title>Icons and Buttons set two</title>
+ <para>
+ Placeholder text
+ </para>
+ </section>
+ </section>
+</chapter>
+
Added: trunk/module_template/docs/reference/en-US/revision_history.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/revision_history.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/revision_history.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<appendix id="appe-beginners_guide-revision_history">
+ <title>Revision History</title>
+ <simpara>
+ <revhistory>
+ <revision>
+ <!-- Incremental -->
+ <revnumber>0</revnumber>
+
+ <!-- Date example -->
+ <!-- <date>Tue Apr 05 2011</date> -->
+ <date>ddd mmm dd yyyy</date>
+ <author>
+ <firstname>Your First Name</firstname>
+ <surname>Your Surname</surname>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>Description of update here (or of first creation so we know how old a book is)</member>
+ </simplelist>
+ </revdescription>
+ </revision>
+ </revhistory>
+ </simpara>
+</appendix>
+
Added: trunk/module_template/docs/reference/en-US/tasks.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/tasks.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/tasks.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,45 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<chapter id="chap-template-tasks">
+ <title>Tasks</title>
+ <para>
+ This chapter discusses the numerous tasks used to achieve some of the more common goals.
+ </para>
+ <section id="sect-template-tasks-general_tasks">
+ <title>General tasks</title>
+ <para>
+ These tasks are not related to any specific concept discussed in the Concepts section.
+ </para>
+ <section id="sect-template-tasks-general_tasks-task_one">
+ <title>Task one</title>
+ <para>
+ First task in this section
+ </para>
+ </section>
+ <section id="sect-template-tasks-general_tasks-task_two">
+ <title>Task two</title>
+ <para>
+ Second task in this section
+ </para>
+ </section>
+ </section>
+ <section id="sect-template-tasks-concept_name_tasks">
+ <title>Concept name tasks</title>
+ <para>
+ These tasks are related to a specific concept discussed in the Concepts section.
+ </para>
+ <section id="sect-template-tasks-concept_name_tasks-task_one">
+ <title>Task one</title>
+ <para>
+ First task in this section
+ </para>
+ </section>
+ <section id="sect-template-tasks-concept_name_tasks-task_two">
+ <title>Task two</title>
+ <para>
+ Second task in this section
+ </para>
+ </section>
+ </section>
+</chapter>
+
Added: trunk/module_template/docs/reference/en-US/template.ent
===================================================================
--- trunk/module_template/docs/reference/en-US/template.ent (rev 0)
+++ trunk/module_template/docs/reference/en-US/template.ent 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,4 @@
+<!ENTITY PRODUCT "JBoss">
+<!ENTITY BOOKID "Template">
+<!ENTITY YEAR "2011">
+<!ENTITY HOLDER "Red Hat">
Added: trunk/module_template/docs/reference/en-US/template.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/template.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/template.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<book>
+ <xi:include href="Book_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Latest_Developments.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Getting_Started.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Concepts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Tasks.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Reference.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Troubleshooting.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+</book>
+
Added: trunk/module_template/docs/reference/en-US/troubleshooting.xml
===================================================================
--- trunk/module_template/docs/reference/en-US/troubleshooting.xml (rev 0)
+++ trunk/module_template/docs/reference/en-US/troubleshooting.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<chapter id="chap-template-troubleshooting">
+ <title>Troubleshooting</title>
+ <para>
+ The following sections list the error messages and warnings that may be encountered.
+ </para>
+ <section id="sect-template-troubleshooting-error_messages">
+ <title>Error messages</title>
+ <para>
+ Information concerning error messages displayed by the tool.
+ </para>
+ </section>
+ <section id="sect-template-troubleshooting-warning_messages">
+ <title>Warning messages</title>
+ <para>
+ Information concerning warning messages displayed by the tool.
+ </para>
+ </section>
+</chapter>
+
Added: trunk/module_template/docs/reference/pom.xml
===================================================================
--- trunk/module_template/docs/reference/pom.xml (rev 0)
+++ trunk/module_template/docs/reference/pom.xml 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../documentation/parent/pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.documentation.parent.pom</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.jboss.tools.template.documentation</groupId>
+ <artifactId>${docname}-${translation}</artifactId>
+ <version>1.0</version>
+ <packaging>jdocbook</packaging>
+ <name>${bookname}-(${translation})</name>
+
+ <properties>
+ <docname>template_reference</docname>
+ <bookname>template_refeerence</bookname>
+ </properties>
+
+</project>
Added: trunk/module_template/docs/reference/publican.cfg
===================================================================
--- trunk/module_template/docs/reference/publican.cfg (rev 0)
+++ trunk/module_template/docs/reference/publican.cfg 2011-04-07 11:05:32 UTC (rev 30407)
@@ -0,0 +1,9 @@
+# Config::Simple 4.59
+# Fri Nov 27 08:57:18 2009
+
+xml_lang: en-US
+type: Book
+brand: JBoss
+debug: 1
+
+
13 years, 3 months
JBoss Tools SVN: r30406 - trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2011-04-07 05:36:46 -0400 (Thu, 07 Apr 2011)
New Revision: 30406
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
Log:
JBDS-1573: disable the warning messagedialog when the server status is ok.
Modified: trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java
===================================================================
--- trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-04-07 08:11:36 UTC (rev 30405)
+++ trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/module/JBTBPELPublisher.java 2011-04-07 09:36:46 UTC (rev 30406)
@@ -36,7 +36,6 @@
import org.eclipse.wst.server.core.model.IModuleResourceDelta;
import org.jboss.ide.eclipse.archives.webtools.modules.LocalZippedPublisherUtil;
import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
-//import org.jboss.ide.eclipse.as.core.Messages;
import org.jboss.ide.eclipse.as.core.extensions.events.IEventCodes;
import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
@@ -107,11 +106,15 @@
//
if (status!=null) {
final IStatus s = status;
- Display.getDefault().syncExec( new Runnable() {
- public void run() {
- MessageDialog.openWarning(Display.getDefault().getActiveShell(), Messages.DeployError, s.getMessage());
- }
- });
+ if (!s.isOK()) {
+ Display.getDefault().syncExec(new Runnable() {
+ public void run() {
+ MessageDialog.openWarning(Display.getDefault()
+ .getActiveShell(), Messages.DeployError, s
+ .getMessage());
+ }
+ });
+ }
}
return status == null ? Status.OK_STATUS : status;
}
13 years, 3 months
JBoss Tools SVN: r30405 - in trunk: module_template and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-04-07 04:11:36 -0400 (Thu, 07 Apr 2011)
New Revision: 30405
Added:
trunk/module_template/
trunk/module_template/README
trunk/module_template/docs/
trunk/module_template/docs/reference/
trunk/module_template/features/
trunk/module_template/plugins/
trunk/module_template/site/
trunk/module_template/tests/
Log:
initial template plugin layout
Added: trunk/module_template/README
===================================================================
--- trunk/module_template/README (rev 0)
+++ trunk/module_template/README 2011-04-07 08:11:36 UTC (rev 30405)
@@ -0,0 +1,3 @@
+This is a living stereotypical template for how a module should be structured.
+
+WORK IN PROGRESS
13 years, 3 months
JBoss Tools SVN: r30404 - in trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core: definition and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-04-06 19:39:02 -0400 (Wed, 06 Apr 2011)
New Revision: 30404
Added:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/scanner/
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/scanner/ConfigFileSet.java
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigConstants.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java
Log:
JBIDE-3120
https://issues.jboss.org/browse/JBIDE-3120
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigConstants.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigConstants.java 2011-04-06 23:38:44 UTC (rev 30403)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigConstants.java 2011-04-06 23:39:02 UTC (rev 30404)
@@ -14,5 +14,6 @@
public interface CDISeamConfigConstants extends CDIConstants {
+ public static String SEAM_BEANS_XML = "seam-beans.xml";
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java 2011-04-06 23:38:44 UTC (rev 30403)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java 2011-04-06 23:39:02 UTC (rev 30404)
@@ -10,14 +10,29 @@
******************************************************************************/
package org.jboss.tools.cdi.seam.config.core;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.jboss.tools.cdi.core.CDICoreNature;
import org.jboss.tools.cdi.core.extension.ICDIExtension;
import org.jboss.tools.cdi.core.extension.IDefinitionContextExtension;
import org.jboss.tools.cdi.core.extension.feature.IBuildParticipantFeature;
+import org.jboss.tools.cdi.seam.config.core.scanner.ConfigFileSet;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
public class CDISeamConfigExtension implements ICDIExtension, IBuildParticipantFeature {
CDICoreNature project;
+ ConfigDefinitionContext context = new ConfigDefinitionContext();
+ ConfigFileSet fileSet = new ConfigFileSet();
+
public Object getAdapter(Class adapter) {
return null;
}
@@ -27,8 +42,61 @@
}
public IDefinitionContextExtension getContext() {
- // TODO Auto-generated method stub
- return null;
+ return context;
}
+ public void beginVisiting() {
+ fileSet = new ConfigFileSet();
+ }
+
+ public void visit(IFile file, IPath src, IPath webinf) {
+ IPath path = file.getFullPath();
+ if(src != null && path.segmentCount() == src.segmentCount() + 2
+ && "META-INF".equals(path.segments()[path.segmentCount() - 2])) {
+ addBeansXML(file, fileSet);
+ } else if(webinf != null && webinf.isPrefixOf(path) && webinf.segmentCount() == path.segmentCount() - 1) {
+ addBeansXML(file, fileSet);
+ }
+ }
+
+ public void visitJar(IPath path, IPackageFragmentRoot root, XModelObject beansXML) {
+ if(beansXML != null) {
+ fileSet.setBeanXML(path, beansXML);
+ XModelObject seamBeanXML = beansXML.getParent().getChildByPath(CDISeamConfigConstants.SEAM_BEANS_XML);
+ if(seamBeanXML != null) {
+ fileSet.setSeamBeanXML(path, seamBeanXML);
+ }
+ }
+ }
+
+ public void buildDefinitions() {
+ //TODO
+ }
+
+ public void buildBeans() {
+ //TODO
+ }
+
+ private void addBeansXML(IFile f, ConfigFileSet fileSet) {
+ if(f.getName().equals("beans.xml")) {
+ XModelObject beansXML = getObject(f);
+ if(beansXML != null) {
+ fileSet.setBeanXML(f.getFullPath(), beansXML);
+ }
+ } else if(f.getName().equals(CDISeamConfigConstants.SEAM_BEANS_XML)) {
+ XModelObject beansXML = getObject(f);
+ if(beansXML != null) {
+ fileSet.setSeamBeanXML(f.getFullPath(), beansXML);
+ }
+ }
+ }
+
+ private XModelObject getObject(IFile f) {
+ XModelObject o = EclipseResourceUtil.getObjectByResource(f);
+ if(o == null) {
+ o = EclipseResourceUtil.createObjectForResource(f);
+ }
+ return o;
+ }
+
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java 2011-04-06 23:38:44 UTC (rev 30403)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java 2011-04-06 23:39:02 UTC (rev 30404)
@@ -1,20 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
package org.jboss.tools.cdi.seam.config.core;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
import org.eclipse.core.runtime.IPath;
import org.jboss.tools.cdi.core.IRootDefinitionContext;
import org.jboss.tools.cdi.core.extension.IDefinitionContextExtension;
+import org.jboss.tools.cdi.seam.config.core.definition.SeamBeansDefinition;
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
public class ConfigDefinitionContext implements IDefinitionContextExtension {
IRootDefinitionContext root;
+ private Map<IPath, SeamBeansDefinition> beanXMLs = new HashMap<IPath, SeamBeansDefinition>();
+ private Map<IPath, SeamBeansDefinition> seambeanXMLs = new HashMap<IPath, SeamBeansDefinition>();
+
ConfigDefinitionContext workingCopy;
ConfigDefinitionContext original;
private ConfigDefinitionContext copy(boolean clean) {
ConfigDefinitionContext copy = new ConfigDefinitionContext();
copy.root = root;
- //TODO
-
+ if(!clean) {
+ copy.beanXMLs.putAll(beanXMLs);
+ copy.seambeanXMLs.putAll(seambeanXMLs);
+ //TODO
+ }
+
return copy;
}
@@ -33,16 +61,27 @@
return;
}
- // TODO
+ beanXMLs = workingCopy.beanXMLs;
+ seambeanXMLs = workingCopy.seambeanXMLs;
}
public void clean() {
- // TODO
+ synchronized (beanXMLs) {
+ beanXMLs.clear();
+ }
+ synchronized (seambeanXMLs) {
+ seambeanXMLs.clear();
+ }
}
public void clean(IPath path) {
- // TODO
+ synchronized (beanXMLs) {
+ beanXMLs.remove(path);
+ }
+ synchronized (seambeanXMLs) {
+ seambeanXMLs.remove(path);
+ }
}
public void setRootContext(IRootDefinitionContext context) {
@@ -65,4 +104,29 @@
return workingCopy;
}
+ public void addBeanXML(IPath path, SeamBeansDefinition def) {
+ synchronized (beanXMLs) {
+ beanXMLs.put(path, def);
+ }
+ root.addToParents(path);
+ }
+
+ public void addSeamBeanXML(IPath path, SeamBeansDefinition def) {
+ synchronized (seambeanXMLs) {
+ seambeanXMLs.put(path, def);
+ }
+ root.addToParents(path);
+ }
+
+ public Set<SeamBeansDefinition> getSeamBeansDefinitions() {
+ Set<SeamBeansDefinition> result = new HashSet<SeamBeansDefinition>();
+ synchronized (beanXMLs) {
+ result.addAll(beanXMLs.values());
+ }
+ synchronized (seambeanXMLs) {
+ result.addAll(seambeanXMLs.values());
+ }
+ return result;
+ }
+
}
Added: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java (rev 0)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java 2011-04-06 23:39:02 UTC (rev 30404)
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.seam.config.core.definition;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class SeamBeansDefinition {
+
+}
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/scanner/ConfigFileSet.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/scanner/ConfigFileSet.java (rev 0)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/scanner/ConfigFileSet.java 2011-04-06 23:39:02 UTC (rev 30404)
@@ -0,0 +1,44 @@
+package org.jboss.tools.cdi.seam.config.core.scanner;
+
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.Flags;
+import org.eclipse.jdt.core.IPackageDeclaration;
+import org.eclipse.jdt.core.IType;
+import org.jboss.tools.common.model.XModelObject;
+
+public class ConfigFileSet {
+ private Set<IPath> allpaths = new HashSet<IPath>();
+ private Map<IPath, XModelObject> beanXMLs = new HashMap<IPath, XModelObject>();
+ private Map<IPath, XModelObject> seambeanXMLs = new HashMap<IPath, XModelObject>();
+
+ public ConfigFileSet() {}
+
+ public Set<IPath> getAllPaths() {
+ return allpaths;
+ }
+
+ public XModelObject getBeanXML(IPath f) {
+ return beanXMLs.get(f);
+ }
+
+ public XModelObject getSeamBeanXML(IPath f) {
+ return seambeanXMLs.get(f);
+ }
+
+ public void setBeanXML(IPath f, XModelObject o) {
+ beanXMLs.put(f, o);
+ allpaths.add(f);
+ }
+
+ public void setSeamBeanXML(IPath f, XModelObject o) {
+ seambeanXMLs.put(f, o);
+ allpaths.add(f);
+ }
+
+}
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/scanner/ConfigFileSet.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 3 months
JBoss Tools SVN: r30403 - in trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi: core/extension/feature and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-04-06 19:38:44 -0400 (Wed, 06 Apr 2011)
New Revision: 30403
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IClassBean.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
Log:
JBIDE-3120
https://issues.jboss.org/browse/JBIDE-3120
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java 2011-04-06 23:03:01 UTC (rev 30402)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java 2011-04-06 23:38:44 UTC (rev 30403)
@@ -166,8 +166,10 @@
//4. Create working copy of context.
n.getDefinitions().newWorkingCopy(kind == FULL_BUILD);
+
+ for (IBuildParticipantFeature p: buildParticipants) p.beginVisiting();
- //5. Build bean definitions.
+ //5. Discover sources and build definitions.
if(isClassPathUpdated) {
buildJars(newJars);
@@ -188,6 +190,7 @@
incrementalBuild(delta, monitor);
}
}
+ for (IBuildParticipantFeature p: buildParticipants) p.buildDefinitions();
// 6. Save created definitions to project context and build beans.
getCDICoreNature().getDefinitions().applyWorkingCopy();
@@ -267,6 +270,8 @@
}
XModelObject beansXML = newJars.get(jar);
fileSet.setBeanXML(path, beansXML);
+
+ for (IBuildParticipantFeature p: buildParticipants) p.visitJar(path, root, beansXML);
}
addBasicTypes(fileSet);
builderDelegate.build(fileSet, getCDICoreNature());
@@ -397,11 +402,15 @@
&& "META-INF".equals(path.segments()[path.segmentCount() - 2])) {
addBeansXML(f, fileSet);
}
+ for (IBuildParticipantFeature p: buildParticipants) p.visit(f, srcs[i], null);
return false;
}
}
- if(webinf != null && webinf.isPrefixOf(path) && webinf.segmentCount() == path.segmentCount() - 1) {
- addBeansXML(f, fileSet);
+ if(webinf != null && webinf.isPrefixOf(path)) {
+ if(webinf.segmentCount() == path.segmentCount() - 1) {
+ addBeansXML(f, fileSet);
+ }
+ for (IBuildParticipantFeature p: buildParticipants) p.visit(f, null, webinf);
}
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IClassBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IClassBean.java 2011-04-06 23:03:01 UTC (rev 30402)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IClassBean.java 2011-04-06 23:38:44 UTC (rev 30403)
@@ -60,4 +60,11 @@
* @return all the directly derived classes that declare annotation @Specializes
*/
Set<? extends IClassBean> getSpecializingBeans();
+
+ IParametedType getSuperType();
+
+ IClassBean getSuperClassBean();
+
+ void setSuperClassBean(IClassBean bean);
+
}
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java 2011-04-06 23:03:01 UTC (rev 30402)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/extension/feature/IBuildParticipantFeature.java 2011-04-06 23:38:44 UTC (rev 30403)
@@ -10,13 +10,21 @@
******************************************************************************/
package org.jboss.tools.cdi.core.extension.feature;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.jboss.tools.cdi.core.CDICoreNature;
import org.jboss.tools.cdi.core.extension.IDefinitionContextExtension;
+import org.jboss.tools.common.model.XModelObject;
/**
* This feature includes BeforeBeanDiscovery event of CDI runtime, but also it should provide
* facilities for incremental build and clean of project at design time.
*
+ * Method buildBeans() corresponds to AfterBeanDiscovery event of CDI runtime.
+ * It is added here because it seams obvious that extensions which participate
+ * in bean discovering would apply result to build CDI artifacts.
+ *
* @author Viacheslav Kabanovich
*
*/
@@ -35,4 +43,39 @@
*/
public IDefinitionContextExtension getContext();
+ /**
+ * Prepares storage of bean sources.
+ */
+ public void beginVisiting();
+
+ /**
+ * Looks for jar entries that are bean sources.
+ *
+ * @param path
+ * @param beansXML
+ */
+ public void visitJar(IPath path, IPackageFragmentRoot root, XModelObject beansXML);
+
+ /**
+ * Adds file to discovered bean sources if relevant.
+ *
+ * @param file
+ * @param src parent Java source folder path or null
+ * @param webinf parent WEB-INF folder path or null
+ */
+ public void visit(IFile file, IPath src, IPath webinf);
+
+ /**
+ * Builds specific models for discovered bean sources.
+ * This method is the final stage of BeforeBeanDiscovery event.
+ */
+ public void buildDefinitions();
+
+ /**
+ * Builds CDI artifacts by definitions and already existing CDI model.
+ *
+ * This method corresponds to AfterBeanDiscovery event.
+ */
+ public void buildBeans();
+
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2011-04-06 23:03:01 UTC (rev 30402)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2011-04-06 23:38:44 UTC (rev 30403)
@@ -56,6 +56,7 @@
import org.jboss.tools.cdi.core.IQualifierDeclaration;
import org.jboss.tools.cdi.core.IScope;
import org.jboss.tools.cdi.core.IStereotype;
+import org.jboss.tools.cdi.core.extension.feature.IBuildParticipantFeature;
import org.jboss.tools.cdi.internal.core.impl.definition.AnnotationDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.BeansXMLDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.DefinitionContext;
@@ -88,7 +89,7 @@
private Map<IPath, Set<IBean>> beansByPath = new HashMap<IPath, Set<IBean>>();
private Map<String, Set<IBean>> beansByName = new HashMap<String, Set<IBean>>();
private Set<IBean> namedBeans = new HashSet<IBean>();
- private Map<IType, ClassBean> classBeans = new HashMap<IType, ClassBean>();
+ private Map<IType, IClassBean> classBeans = new HashMap<IType, IClassBean>();
private Set<IBean> alternatives = new HashSet<IBean>();
private Set<IDecorator> decorators = new HashSet<IDecorator>();
private Set<IInterceptor> interceptors = new HashSet<IInterceptor>();
@@ -1014,6 +1015,9 @@
rebuildXML();
rebuildAnnotationTypes();
rebuildBeans();
+
+ Set<IBuildParticipantFeature> buildParticipants = n.getExtensionManager().getBuildParticipantFeature();
+ for (IBuildParticipantFeature p: buildParticipants) p.buildBeans();
CDICoreNature[] ps = n.getDependentProjects().toArray(new CDICoreNature[0]);
for (CDICoreNature p: ps) {
@@ -1081,7 +1085,7 @@
void rebuildBeans() {
List<TypeDefinition> typeDefinitions = n.getAllTypeDefinitions();
List<IBean> beans = new ArrayList<IBean>();
- Map<IType, ClassBean> newClassBeans = new HashMap<IType, ClassBean>();
+ Map<IType, IClassBean> newClassBeans = new HashMap<IType, IClassBean>();
ImplementationCollector ic = new ImplementationCollector(typeDefinitions);
@@ -1113,16 +1117,13 @@
}
}
- for (ClassBean bean: newClassBeans.values()) {
- ParametedType s = bean.getDefinition().getSuperType();
+ for (IClassBean bean: newClassBeans.values()) {
+ IParametedType s = bean.getSuperType();
if(s != null && s.getType() != null) {
- ClassBean superClassBean = newClassBeans.get(s.getType());
- if(superClassBean != null) {
- bean.setSuperClassBean(superClassBean);
- }
+ IClassBean superClassBean = newClassBeans.get(s.getType());
+ bean.setSuperClassBean(superClassBean);
}
- }
-
+ }
synchronized (beansByPath) {
beansByPath.clear();
@@ -1161,7 +1162,7 @@
// System.out.println("Bean paths=" + beansByPath.size());
}
- void addBean(IBean bean) {
+ public void addBean(IBean bean) {
String name = bean.getName();
if(name != null && name.length() > 0) {
Set<IBean> bs = beansByName.get(name);
@@ -1204,6 +1205,13 @@
interceptors.add((IInterceptor)bean);
}
}
+ if(bean instanceof IClassBean) {
+ IClassBean c = (IClassBean)bean;
+ IType t = c.getBeanClass();
+ if(t != null && !classBeans.containsKey(t)) {
+ classBeans.put(t, c);
+ }
+ }
synchronized (allBeans) {
allBeans.add(bean);
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2011-04-06 23:03:01 UTC (rev 30402)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2011-04-06 23:38:44 UTC (rev 30403)
@@ -10,8 +10,6 @@
******************************************************************************/
package org.jboss.tools.cdi.internal.core.impl;
-
-
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@@ -44,7 +42,6 @@
import org.jboss.tools.cdi.internal.core.impl.definition.FieldDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition;
import org.jboss.tools.cdi.internal.core.impl.definition.TypeDefinition;
-import org.jboss.tools.common.model.project.ext.impl.ValueInfo;
import org.jboss.tools.common.text.ITextSourceReference;
/**
@@ -123,10 +120,12 @@
return result;
}
- public void setSuperClassBean(ClassBean bean) {
- HashSet<ClassBean> beans = new HashSet<ClassBean>();
+ public void setSuperClassBean(IClassBean bean) {
+ if(!(bean instanceof ClassBean)) return;
+
+ HashSet<IClassBean> beans = new HashSet<IClassBean>();
beans.add(this);
- ClassBean b = bean;
+ IClassBean b = bean;
while(b != null) {
if(beans.contains(b)) {
bean = null;
@@ -135,13 +134,13 @@
b = b.getSuperClassBean();
}
- superClassBean = bean;
+ superClassBean = (ClassBean)bean;
if(superClassBean != null && isSpecializing()) {
superClassBean.addSpecializingClassBean(this);
}
- if(bean != null) {
+ if(superClassBean != null) {
Map<String, ProducerMethod> thisProducers = getProducerMethodsForSignatures();
- Map<String, ProducerMethod> superProducers = bean.getProducerMethodsForSignatures();
+ Map<String, ProducerMethod> superProducers = superClassBean.getProducerMethodsForSignatures();
for (String s: thisProducers.keySet()) {
ProducerMethod thisProducer = thisProducers.get(s);
ProducerMethod superProducer = superProducers.get(s);
@@ -531,4 +530,9 @@
public String getSimpleJavaName() {
return this.getBeanClass().getElementName();
}
+
+ public ParametedType getSuperType() {
+ return getDefinition().getSuperType();
+ }
+
}
\ No newline at end of file
13 years, 3 months
JBoss Tools SVN: r30402 - trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-04-06 19:03:01 -0400 (Wed, 06 Apr 2011)
New Revision: 30402
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF
Log:
Fixed plug-in version.
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF 2011-04-06 23:01:26 UTC (rev 30401)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF 2011-04-06 23:03:01 UTC (rev 30402)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Seam3 Config Core Test
Bundle-SymbolicName: org.jboss.tools.cdi.seam.config.core.test;singleton:=true
-Bundle-Version: 1.2.0.qualifier
+Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: JBoss by Red Hat
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.jboss.tools.tests,
13 years, 3 months