JBoss Tools SVN: r10593 - in trunk/vpe: tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-10-01 10:41:58 -0400 (Wed, 01 Oct 2008)
New Revision: 10593
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyData.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeTestPlugin.java
Log:
=Show Icon attribute was removed from vpe template dialog, some code adjustment was made
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyCreator.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -138,20 +138,6 @@
}
}
- Attr showIconAttr = element.getAttributeNode(VpeTemplateManager.ATTR_ANY_ICON);
- if (showIconAttr != null) {
- try {
- if("yes".equals(showIconAttr.getValue())) showIconBool = true;
- else showIconBool = false;
- VpeExpressionInfo info = VpeExpressionBuilder.buildCompletedExpression(showIconAttr.getValue(), true);
- dependencyMap.setCreator(this, info.getDependencySet());
- } catch(VpeExpressionBuilderException e) {
- VpePlugin.reportProblem(e);
- }
- }
-
-
-
if (VpeTemplateManager.ATTR_ANY_PROPERTIES != null) {
for (int i = 0; i < VpeTemplateManager.ATTR_ANY_PROPERTIES.length; i++) {
String attrName = VpeTemplateManager.ATTR_ANY_PROPERTIES[i];
@@ -270,8 +256,7 @@
return new VpeAnyData(
tagForDisplayStr,
valueStr,
- styleStr,
- showIconBool
+ styleStr
);
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyData.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyData.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAnyData.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -18,7 +18,6 @@
public class VpeAnyData extends VpeTemplateData {
private String uri;
private String tagForDisplay;
- private boolean showIcon;
private String value;
private String style;
@@ -36,11 +35,8 @@
public VpeAnyData(
String tagForDisplay,
String value,
- String style,
- boolean showIcon
- ) {
+ String style) {
this.value = value;
- this.showIcon = showIcon;
this.tagForDisplay = tagForDisplay;
this.style=style;
}
@@ -55,14 +51,6 @@
this.uri = uri;
}
- public boolean isShowIcon(){
- return showIcon;
- }
-
- public void setShowIcon(boolean flag){
- showIcon = flag;
- }
-
public String getValue() {
return value;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -44,7 +44,6 @@
private Text txtTagForDisplay;
private Text txtValue;
private Text txtStyle;
- private CheckControl ctlShowIcon;
public VpeEditAnyDialog(Shell shell, VpeAnyData data) {
super(shell);
@@ -87,9 +86,7 @@
// ctlCaseSensitive = new CheckControl(composite, "Case sensitive", data.isCaseSensitive());
ctlChildren = new CheckControl(composite, VpeUIMessages.CHILDREN, data.isChildren());
// ctlModify = new CheckControl(composite, "Modify", data.isModify());
-
- ctlShowIcon = new CheckControl(composite, VpeUIMessages.ICON, data.isShowIcon());
-
+
//value control
Label lblValue = makeLabel(composite, VpeUIMessages.VALUE);
lblValue.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
@@ -155,9 +152,6 @@
data.setChanged(isChanged(data, data.getValue(), txtValue.getText()));
data.setValue(txtValue.getText().trim());
- data.setChanged(isChanged(data, data.isShowIcon(), ctlShowIcon.getSelection()));
- data.setShowIcon(ctlShowIcon.getSelection());
-
data.setChanged(isChanged(data, data.getStyle(), txtStyle.getText()));
data.setStyle(txtStyle.getText());
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -189,7 +189,6 @@
private static final String ATTR_ANY_DISPLAY = "display"; //$NON-NLS-1$
static final String ATTR_ANY_TAG_FOR_DISPLAY="tag-for-display"; //$NON-NLS-1$
- static final String ATTR_ANY_ICON = "icon"; //$NON-NLS-1$
static final String ATTR_ANY_VALUE = "value"; //$NON-NLS-1$
static final String ATTR_ANY_STYLE = "style"; //$NON-NLS-1$
@Deprecated
@@ -646,10 +645,6 @@
.append(attrDisplay.getNodeValue()).append(";"); //$NON-NLS-1$
}
//-----------END
- attr = anyNode.getAttributeNode(ATTR_ANY_ICON);
- if (attr != null){
- anyData.setShowIcon(ATTR_VALUE_YES.equalsIgnoreCase(attr.getNodeValue()));
- }
attr = anyNode.getAttributeNode(ATTR_ANY_VALUE);
if (attr != null) {
@@ -801,8 +796,6 @@
// if (data.getBorderColor() != null && data.getBorderColor().length() > 0)
// newAnyElement.setAttribute(ATTR_ANY_BORDER_COLOR, data.getBorderColor());
- newAnyElement.setAttribute(ATTR_ANY_ICON, data.isShowIcon() ? ATTR_VALUE_YES : ATTR_VALUE_NO);
-
newTemplateElement.appendChild(newAnyElement);
return newTagElement;
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/editor/template/VpeTemplateManagerTest.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -2,27 +2,23 @@
import java.util.List;
-import org.jboss.tools.vpe.editor.util.TemplateManagingUtil;
-
import junit.framework.TestCase;
public class VpeTemplateManagerTest extends TestCase {
public void testSetAnyTemplates() {
VpeAnyData data = new VpeAnyData(
- "tag-name1",
- "tag-value",
- "color:red",
- true
+ "tag-name1", //$NON-NLS-1$
+ "tag-value", //$NON-NLS-1$
+ "color:red" //$NON-NLS-1$
);
VpeTemplateManager.getInstance().setAnyTemplate(data);
data = new VpeAnyData(
- "tag-name2",
- "tag-value",
- "color:white",
- true
+ "tag-name2", //$NON-NLS-1$
+ "tag-value", //$NON-NLS-1$
+ "color:white" //$NON-NLS-1$
);
VpeTemplateManager.getInstance().setAnyTemplate(data);
@@ -40,7 +36,7 @@
public void testGetDefTemplate() {
VpeTemplateManager.getInstance().setDefTemplate(null);
VpeTemplate template = VpeTemplateManager.getInstance().getDefTemplate();
- assertNotNull("TemplateManager.getDefTemplate() cannot return null",template);
+ assertNotNull("TemplateManager.getDefTemplate() cannot return null",template); //$NON-NLS-1$
}
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -14,24 +14,23 @@
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
+import junit.framework.TestCase;
import org.eclipse.core.internal.registry.ExtensionRegistry;
import org.eclipse.core.runtime.ContributorFactoryOSGi;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IContributor;
import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.RegistryFactory;
-import org.osgi.framework.Bundle;
-import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
import org.jboss.tools.common.reporting.IProblemReporter;
import org.jboss.tools.common.reporting.ProblemReporterFactory;
-import junit.framework.TestCase;
+import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
+import org.osgi.framework.Bundle;
/**
* This class created for testing templates expression.
@@ -40,15 +39,15 @@
*/
public class TemplatesExpressionParsingTest extends TestCase {
- private static final String PLUGIN_FAILURE_NAME = "testFailure-plugin.xml";
+ private static final String PLUGIN_FAILURE_NAME = "testFailure-plugin.xml"; //$NON-NLS-1$
- private static final String PLUGIN_OK_NAME = "testOk-plugin.xml";
+ private static final String PLUGIN_OK_NAME = "testOk-plugin.xml"; //$NON-NLS-1$
- private static final String EXTENSION_POINT_ID = "org.jboss.tools.vpe.templates";
+ private static final String EXTENSION_POINT_ID = "org.jboss.tools.vpe.templates"; //$NON-NLS-1$
- private static final String EXTENSION_ERROR_EXTENSION_ID_1 = "org.jboss.tools.vpe.tests.failureExtensions";
+ private static final String EXTENSION_ERROR_EXTENSION_ID_1 = "org.jboss.tools.vpe.tests.failureExtensions"; //$NON-NLS-1$
- private static final String EXTENSION_ERROR_EXTENSION_ID_2 = "org.jboss.tools.vpe.tests.okExtensions";
+ private static final String EXTENSION_ERROR_EXTENSION_ID_2 = "org.jboss.tools.vpe.tests.okExtensions"; //$NON-NLS-1$
private IStatus iStatus = null;
@@ -87,8 +86,8 @@
vpeTemplateManager = VpeTemplateManager.getInstance();
vpeTemplateManager.reload();
- assertNull("Can not parse template from ReDHat DevStudio" + iStatus, iStatus);
- assertEquals("There exist some errors", 0, errorNumber);
+ assertNull("Can not parse template from ReDHat DevStudio" + iStatus, iStatus); //$NON-NLS-1$
+ assertEquals("There exist some errors", 0, errorNumber); //$NON-NLS-1$
assertNotNull(vpeTemplateManager);
}
@@ -101,8 +100,8 @@
createTemplatesForTesting(PLUGIN_OK_NAME);
vpeTemplateManager = VpeTemplateManager.getInstance();
vpeTemplateManager.reload();
- assertNull("Can not parse template from ReDHat DevStudio" + iStatus, iStatus);
- assertEquals("There exist some errors", 0, errorNumber);
+ assertNull("Can not parse template from ReDHat DevStudio" + iStatus, iStatus); //$NON-NLS-1$
+ assertEquals("There exist some errors", 0, errorNumber); //$NON-NLS-1$
return;
}
@@ -117,8 +116,8 @@
vpeTemplateManager = VpeTemplateManager.getInstance();
errorNumber = 0;
vpeTemplateManager.reload();
- assertEquals("Number founds error is Incorrect ", 5, errorNumber);
- assertNotNull("Can not parse template from ReDHat DevStudio" + iStatus,
+ assertEquals("Number founds error is Incorrect ", 5, errorNumber); //$NON-NLS-1$
+ assertNotNull("Can not parse template from ReDHat DevStudio" + iStatus, //$NON-NLS-1$
iStatus);
return;
}
@@ -166,7 +165,7 @@
bundle = Platform.getBundle(confElement.getNamespaceIdentifier());
}
- URL url = bundle.getEntry("/");
+ URL url = bundle.getEntry("/"); //$NON-NLS-1$
IPath path = new Path(FileLocator.toFileURL(url).getFile());
path = path.append(name);
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -34,7 +34,7 @@
public class VpeAllTests extends TestCase{
public static Test suite(){
- TestSuite suite = new TestSuite("Tests for vpe");
+ TestSuite suite = new TestSuite("Tests for vpe"); //$NON-NLS-1$
// $JUnit-BEGIN$
suite.addTestSuite(TemplateLoadingTest.class);
suite.addTestSuite(TemplateSchemeValidateTest.class);
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeTestPlugin.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeTestPlugin.java 2008-10-01 14:27:48 UTC (rev 10592)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeTestPlugin.java 2008-10-01 14:41:58 UTC (rev 10593)
@@ -19,7 +19,7 @@
public class VpeTestPlugin extends Plugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.ide.vpe.tests";
+ public static final String PLUGIN_ID = "org.jboss.ide.vpe.tests"; //$NON-NLS-1$
// The shared instance
private static VpeTestPlugin plugin;
15 years, 6 months
JBoss Tools SVN: r10592 - in trunk/documentation: jbosstools-jdocbook-style/src/main/org/css/css and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: artdaw
Date: 2008-10-01 10:27:48 -0400 (Wed, 01 Oct 2008)
New Revision: 10592
Modified:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css
Log:
https://jira.jboss.org/jira/browse/JBDS-399 - 2 templates for adding 'added', 'changed' icons to all of the titles are done
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2008-10-01 14:10:39 UTC (rev 10591)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2008-10-01 14:27:48 UTC (rev 10592)
@@ -91,27 +91,17 @@
</xsl:attribute>
<xsl:choose>
- <xsl:when test="@role='new'">
+ <xsl:when test="@role='new' or @role='updated'">
<xsl:attribute name="class">
<xsl:value-of select="@role"/>
</xsl:attribute>
</xsl:when>
- <xsl:when test="@role='updated'">
+ <!-- For mkdiff compatibility-->
+ <xsl:when test="@revisionflag='added' or @revisionflag='changed'">
<xsl:attribute name="class">
- <xsl:value-of select="@role"/>
- </xsl:attribute>
- </xsl:when>
- <!-- For mkdiff compatibility-->
- <xsl:when test="@revisionflag='added'">
- <xsl:attribute name="class">
<xsl:value-of select="@revisionflag"/>
</xsl:attribute>
- </xsl:when>
- <xsl:when test="@revisionflag='changed'">
- <xsl:attribute name="class">
- <xsl:value-of select="@revisionflag"/>
- </xsl:attribute>
- </xsl:when>
+ </xsl:when>
</xsl:choose>
<!-- * if $autotoc.label.in.hyperlink is non-zero, then output the label -->
@@ -188,4 +178,132 @@
</xsl:with-param>
</xsl:call-template>
</xsl:template>
+
+<!-- THERE ARE 2 TEMPLATES FOR ADDING 'ADDED', 'CHANGED' ICONS TO ALL OF THE TITLES-->
+
+<xsl:template name="component.title">
+ <xsl:param name="node" select="."/>
+
+ <xsl:variable name="level">
+ <xsl:choose>
+ <xsl:when test="ancestor::section">
+ <xsl:value-of select="count(ancestor::section)+1"/>
+ </xsl:when>
+ <xsl:when test="ancestor::sect5">6</xsl:when>
+ <xsl:when test="ancestor::sect4">5</xsl:when>
+ <xsl:when test="ancestor::sect3">4</xsl:when>
+ <xsl:when test="ancestor::sect2">3</xsl:when>
+ <xsl:when test="ancestor::sect1">2</xsl:when>
+ <xsl:otherwise>1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <!-- Let's handle the case where a component (bibliography, for example)
+ occurs inside a section; will we need parameters for this? -->
+ <xsl:variable name="revflag">
+ <xsl:choose>
+ <xsl:when test="../@role='new' or ../@role='updated'">
+ <xsl:value-of select="../@role"/>
+ </xsl:when>
+ <!-- For mkdiff compatibility-->
+ <xsl:when test="../@revisionflag='added' or ../@revisionflag='changed'">
+ <xsl:value-of select="../@revisionflag"/>
+ </xsl:when>
+ <xsl:otherwise></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:element name="h{$level+1}">
+ <xsl:attribute name="class">
+ title
+ <xsl:value-of select="$revflag" />
+ </xsl:attribute>
+ <xsl:if test="$generate.id.attributes = 0">
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="node" select="$node"/>
+ <xsl:with-param name="conditional" select="0"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:apply-templates select="$node" mode="object.title.markup">
+ <xsl:with-param name="allow-anchors" select="1"/>
+ </xsl:apply-templates>
+ </xsl:element>
+</xsl:template>
+
+<!-- ==================================================================== -->
+
+<xsl:template name="section.heading">
+ <xsl:param name="section" select="."/>
+ <xsl:param name="level" select="1"/>
+ <xsl:param name="allow-anchors" select="1"/>
+ <xsl:param name="title"/>
+ <xsl:param name="class" select="'title'"/>
+
+ <xsl:variable name="id">
+ <xsl:choose>
+ <!-- if title is in an *info wrapper, get the grandparent -->
+ <xsl:when test="contains(local-name(..), 'info')">
+ <xsl:call-template name="object.id">
+ <xsl:with-param name="object" select="../.."/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="object.id">
+ <xsl:with-param name="object" select=".."/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <!-- HTML H level is one higher than section level -->
+ <xsl:variable name="hlevel">
+ <xsl:choose>
+ <!-- highest valid HTML H level is H6; so anything nested deeper
+ than 5 levels down just becomes H6 -->
+ <xsl:when test="$level > 5">6</xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$level + 1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="revflag">
+ <xsl:choose>
+ <xsl:when test="../@role='new' or ../@role='updated'">
+ <xsl:value-of select="../@role"/>
+ </xsl:when>
+ <!-- For mkdiff compatibility-->
+ <xsl:when test="../@revisionflag='added' or ../@revisionflag='changed'">
+ <xsl:value-of select="../@revisionflag"/>
+ </xsl:when>
+ <xsl:otherwise></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:element name="h{$hlevel}">
+ <xsl:attribute name="class">
+ <xsl:value-of select="$class"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$revflag"/>
+ </xsl:attribute>
+ <xsl:if test="$css.decoration != '0'">
+ <xsl:if test="$hlevel<3">
+ <xsl:attribute name="style">clear: both</xsl:attribute>
+ </xsl:if>
+ </xsl:if>
+ <xsl:if test="$allow-anchors != 0 and $generate.id.attributes = 0">
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="node" select="$section"/>
+ <xsl:with-param name="conditional" select="0"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="$generate.id.attributes != 0 and not(local-name(.) = 'appendix')">
+ <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
+ </xsl:if>
+ <xsl:copy-of select="$title"/>
+ </xsl:element>
+</xsl:template>
+
+<!-- ==================================================================== -->
+
+
</xsl:stylesheet>
Modified: trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css 2008-10-01 14:10:39 UTC (rev 10591)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/css/tools.css 2008-10-01 14:27:48 UTC (rev 10592)
@@ -82,11 +82,11 @@
display:block;
}
-a.new, a.added {
+.new, .added {
background:transparent url(../images/new.png) no-repeat scroll right top;
padding-right:70px;
}
-a.updated, a.changed {
+.updated, .changed {
background:transparent url(../images/updated.png) no-repeat scroll right top;
padding-right:70px;
}
15 years, 6 months
JBoss Tools SVN: r10591 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog: common and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-10-01 10:10:39 -0400 (Wed, 01 Oct 2008)
New Revision: 10591
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSStyleDialog.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Constants.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/messages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-2530
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2008-10-01 13:58:58 UTC (rev 10590)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2008-10-01 14:10:39 UTC (rev 10591)
@@ -135,6 +135,7 @@
.getImageDescriptor(Constants.IMAGE_FOLDERLARGE_FILE_LOCATION);
Image image = imageDesc.createImage();
button.setImage(image);
+ button.setToolTipText(MessageUtil.getString("CSS_BROWSE_BUTTON_TOOLTIP"));
button.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
Button button = (Button) e.getSource();
@@ -154,12 +155,12 @@
classCombo.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
- // TODO Auto-generated method stub
}
public void widgetSelected(SelectionEvent e) {
- String style = cssModel.getStyle(classCombo.getText());
+ String style = cssModel.getStyle(classCombo.getText());
+ classCombo.setToolTipText(cssModel.getCSSText(classCombo.getText()));
styleComposite.recreateStyleComposite(style);
}
@@ -202,8 +203,8 @@
+ styleAttributes.getAttribute(key)
+ Constants.SEMICOLON_STRING;
- html = Constants.OPEN_SPAN_TAG + styleForSpan
- + Constants.TEXT_FOR_PREVIEW + Constants.CLOSE_SPAN_TAG;
+ html = Constants.OPEN_DIV_TAG + styleForSpan
+ + Constants.TEXT_FOR_PREVIEW + Constants.CLOSE_DIV_TAG;
browser.setText(html);
}
});
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSStyleDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSStyleDialog.java 2008-10-01 13:58:58 UTC (rev 10590)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSStyleDialog.java 2008-10-01 14:10:39 UTC (rev 10591)
@@ -88,8 +88,8 @@
styleForSpan += key + Constants.COLON_STRING
+ styleAttributes.getAttribute(key) + Constants.SEMICOLON_STRING;
- html = Constants.OPEN_SPAN_TAG + styleForSpan
- + Constants.TEXT_FOR_PREVIEW + Constants.CLOSE_SPAN_TAG;
+ html = Constants.OPEN_DIV_TAG + styleForSpan
+ + Constants.TEXT_FOR_PREVIEW + Constants.CLOSE_DIV_TAG;
browser.setText(html);
}
});
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2008-10-01 13:58:58 UTC (rev 10590)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2008-10-01 14:10:39 UTC (rev 10591)
@@ -81,6 +81,21 @@
return selectors;
}
+
+ public String getCSSText(String selector) {
+ if (styleSheet != null) {
+ CSSRuleList list = styleSheet.getCssRules();
+ if (list != null) {
+ for (int i = 0; i < list.getLength(); i++) {
+ if (list.item(i) instanceof CSSStyleRule && ((CSSStyleRule)list.item(i)).getSelectorText().equals(selector)) {
+ return ((CSSStyleRule)list.item(i)).getCssText();
+ }
+ }
+ }
+ }
+ return null;
+ }
+
/**
* Get style by selectorName
*
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Constants.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Constants.java 2008-10-01 13:58:58 UTC (rev 10590)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Constants.java 2008-10-01 14:10:39 UTC (rev 10591)
@@ -63,6 +63,9 @@
public static String OPEN_SPAN_TAG = "<span style=\"width: 100%;";
public static String CLOSE_SPAN_TAG = "</span>";
+ public static String OPEN_DIV_TAG = "<div style=\"width: 100%;";
+ public static String CLOSE_DIV_TAG = "</div>";
+
public static String TEXT_FOR_PREVIEW = "\">Text for preview";
public static String COLON_STRING = ":";
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/messages.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/messages.properties 2008-10-01 13:58:58 UTC (rev 10590)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/messages.properties 2008-10-01 14:10:39 UTC (rev 10591)
@@ -1,5 +1,6 @@
CSS_STYLE_DIALOG_TITLE=CSS Style Dialog
CSS_STYLE_CLASS_DIALOG_TITLE=CSS Style Class Dialog
+CSS_BROWSE_BUTTON_TOOLTIP=Browse
TEXT_FONT_TAB_NAME=Text/Font
BOXES_TAB_NAME=Boxes
BACKGROUND_TAB_NAME=Background
15 years, 6 months
JBoss Tools SVN: r10590 - trunk/birt/docs/en/modules.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-10-01 09:58:58 -0400 (Wed, 01 Oct 2008)
New Revision: 10590
Modified:
trunk/birt/docs/en/modules/birt_designer.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-388 - birt designer chapter re-structured
Modified: trunk/birt/docs/en/modules/birt_designer.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_designer.xml 2008-10-01 13:36:16 UTC (rev 10589)
+++ trunk/birt/docs/en/modules/birt_designer.xml 2008-10-01 13:58:58 UTC (rev 10590)
@@ -14,200 +14,19 @@
<para>text here</para>
- <section id="esb_file">
+ <section id="birt_designer_introduction">
- <title>ESB File Editor</title>
- <para><property>ESB File Editor</property> is a powerful and customizable tool. ESB File Editor allows developing an
- application using ESB technology.</para>
-
- <para>ESB file editor has two tabs: Tree and Source.</para>
-
- <para>You can switch to Tree. The Tree view for the editor displays all ESB artifacts in a tree format.
- By selecting any node you can see and edit its properties which will appear in the right-hand area. For example, a Provider:</para>
- <figure>
- <title>Tree View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/01_esb_tree_view.png" scale="90"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can easily switch from Tree to Source by selecting the Source tab at the bottom of the editor and work in <link linkend="sourceView">Source view</link>.</para>
-
- <figure id="sourceView">
- <title>Source View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/02_esb_source_view.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The Source view for the editor displays a text content of the ESB file. It is always synchronized with tree view,
- so any changes made in one of the views will immediately appear in the other.</para>
- <para>No matter what view you select, you get full integration with <!--Properties and -->Outline view<!-- views -->.
- For example, you can work in the Source view with the help of the Outline view. The Outline view shows a tree structure of the ESB file.
- Simply select any element in the Outline view and it will jump to the same place in the Source editor,
- so you can navigate through the source code with Outline view.</para>
- <figure>
- <title>Outline View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/03_esb_outline_view.png" scale="70"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Adding, editing or deleting of some artifacts operations are available right in the <property>Tree</property> view. Right-click any node and select one of the available actions in the context menu.
- For example, you can easily add a new provider:</para>
- <para></para>
- <figure>
- <title>Adding new provider</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/04_esb_add_provider.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can easily add a new service too:</para>
- <figure>
- <title>Adding new service</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/05_esb_add_service.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The same way you can create a listener for service and other elements of ESB:</para>
- <figure>
- <title>Adding new listener for service</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/06_esb_add_listener.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The same actions can be done in the right part of <property>Tree</property> view tab
- using <property>Add</property>, <property>Edit</property> and <property>Remove</property> buttons.</para>
+ <title>BIRT Designer</title>
+ <para> text here</para>
</section>
- <section id="esb_editors_features">
+ <section id="birt_designer_features">
- <title>ESB Editors Features</title>
- <para>JBoss ESB tooling has powerful editor features that help you easily make use of content and code assist.</para>
+ <title>BIRT Designer Features</title>
+ <para>text here</para>
- <section id="ESBsyntaxvalidation84">
-
- <title>ESB syntax validation</title>
- <para>When working in JBoss ESB editor you are constantly provided with feedback
- and contextual error checking as you type. In the Source viewer, if at any point a tag is incorrect or incomplete, an error will be indicated next to the line and also in the Problems view below.</para>
- </section>
-
- <section id="ESBSupportXMLSchema">
- <title>Support for XML Schema</title>
-
- <para>JBoss ESB Framework fully
- <link linkend="sourceView">supports XML files based on schemas as well as DTDs</link>.</para>
+
</section>
-
- <!--<section id="OpenOnSelection">
-
- <title>OpenOn</title>
-
- <para><property>OpenOn</property> let's you easily navigate through your
- project without using the Package Explorer view (project tree). With OpenOn, you can
- simply click on a reference to another file and that file will be opened.</para>
-
- <para>OpenOn is available for the XML files </para>
-
- <para>Press and hold down the Ctrl key. As you move the mouse cursor over different
- file references in the file, they display an underline. When you have the mouse
- cursor over the name of the file you want to open, click and the file will open
- in its own editor. In this example the managed bean NameBean will open.</para>
-
- </section>
- -->
-
- <section id="ESBContentAssist">
-
- <title>Content Assist for ESB XML file</title>
-
- <para>When you work with any ESB XML file <property>Content Assist</property> is available to help you.
- It provides pop-up tip to help you complete your code statements.
- It allows you to write your code faster and with more accuracy.
- Content assist is always available in the Source mode. Simply type <emphasis>
- <property>Ctrl-Space</property></emphasis> to see what is available.</para>
-
- <para>Content Assist for ESB XML file:</para>
- <figure>
- <title>Content Assist for ESB XML file</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/esb_editor/08_esb_features.png" scale="80"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Content Assist for attributes:</para>
- <figure>
- <title>Content Assist for attributes:</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/esb_editor/09_esb_features.png" scale="80"/>
- </imageobject>
- </mediaobject>
- </figure>
- <!-- </section>
-
- <section id="ContentAssistWithinTreeEditor">
-
- <title>Content Assist within Tree ESB Editor</title>
-
- <para>JBoss Developer Studio also provides Content Assist when working within the Tree ESB editor.
- Just click <emphasis><property>Ctrl-Space</property>.</emphasis></para>
- <figure>
- <title>Content Assist in Tree ESB Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/esb_file/09_editors_features.png" scale="85"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section> -->
- </section>
-
- <section id="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing">
-
- <title>Synchronized Source and Visual Editing</title>
-
- <para>ESB file can be edited in either source
- or extra visual modes at the same time.</para>
-
- <para>JBoss Tools provide you two different editors to speed your development: a graphical view (<property>Tree</property>) and source
- (<property>Source</property>). At the same time, you always have full control over esb source file. Any changes you
- make in the source view will immediately appear in the tree view. Both views are synchronized, you can edit the file in any view.</para>
-
- <figure>
- <title>Two Views are Synchronized</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/10_esb_features.png" scale="70"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <para>The last chapter covers capabilities on how you can use ESB editor.</para>
-
- <para>In summary, this reference supplies you with all necessary information on the functionality
- that JBoss ESB Editor provides for work with JBoss ESB.</para>
- </section>
</chapter>
15 years, 6 months
JBoss Tools SVN: r10589 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-10-01 09:36:16 -0400 (Wed, 01 Oct 2008)
New Revision: 10589
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2810
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-10-01 12:38:24 UTC (rev 10588)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-10-01 13:36:16 UTC (rev 10589)
@@ -88,6 +88,7 @@
public static final String ATTR_ALT = "alt"; //$NON-NLS-1$
public static final String ATTR_JSFC = "jsfc"; //$NON-NLS-1$
public static final String ATTR_DISPLAY = "display"; //$NON-NLS-1$
+ public static final String ATTR_READONLY = "readonly"; //$NON-NLS-1$
public static final String VALUE_TOP_ALIGN = "top"; //$NON-NLS-1$
public static final String VALUE_MIDDLE_ALIGN = "middle"; //$NON-NLS-1$
15 years, 6 months
JBoss Tools SVN: r10588 - in trunk: jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-10-01 08:38:24 -0400 (Wed, 01 Oct 2008)
New Revision: 10588
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/ajaxValidator.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/beanValidator.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/graphValidator.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/componentControl.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2810
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-10-01 12:20:59 UTC (rev 10587)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-10-01 12:38:24 UTC (rev 10588)
@@ -15,11 +15,9 @@
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
-import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
-import java.util.Set;
import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
import org.jboss.tools.jsf.vpe.richfaces.HtmlComponentUtil;
@@ -30,6 +28,8 @@
import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.template.VpeToggableTemplate;
+import org.jboss.tools.vpe.editor.util.Constants;
+import org.jboss.tools.vpe.editor.util.HTML;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
@@ -46,101 +46,101 @@
*/
public class RichFacesCalendarTemplate extends VpeAbstractTemplate implements VpeToggableTemplate {
- static String[] HEADER_CONTENT = { "<<", "<", "", ">", ">>" };
- static String[] HEADER_CONTENT_ON_POPUP = { "<<", "<", "", ">", ">>", "X" };
+ static String[] HEADER_CONTENT = { "<<", "<", "", ">", ">>" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+ static String[] HEADER_CONTENT_ON_POPUP = { "<<", "<", "", ">", ">>", "X" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
final static int MONTH_LENGTH[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31,
30, 31 };
final static int LEAP_MONTH_LENGTH[] = { 31, 29, 31, 30, 31, 30, 31, 31,
30, 31, 30, 31 };
- final static String STYLE_PATH = "calendar/calendar.css";
- final static String BUTTON_IMG = "calendar/calendar.gif";
+ final static String STYLE_PATH = "calendar/calendar.css"; //$NON-NLS-1$
+ final static String BUTTON_IMG = "calendar/calendar.gif"; //$NON-NLS-1$
final static int COLUMN = 8;
- final static String FILL_WIDTH = "100%";
+ final static String FILL_WIDTH = "100%"; //$NON-NLS-1$
final static int NUM_DAYS_IN_WEEK = 7;
final static int NUM_WEEK_ON_PAGE = 6;
- final static String TODAY = "Today";
- final static String VERTICAL_SEPARATOR = "|";
- final static String APPLY = "Apply";
+ final static String TODAY = "Today"; //$NON-NLS-1$
+ final static String VERTICAL_SEPARATOR = "|"; //$NON-NLS-1$
+ final static String APPLY = "Apply"; //$NON-NLS-1$
final static int CALENDAR_WIDTH = 200;
final static int CALENDAR_INPUT_WIDTH = CALENDAR_WIDTH - 20;
final static int CALENDAR_IMAGE_WIDTH = 20;
final static int CALENDAR_CUSTOM_IMAGE_WIDTH = 40;
final static int CALENDAR_BUTTON_WIDTH = 80;
- final static String ATTRIBUTE_TEXT = "text";
+ final static String ATTRIBUTE_TEXT = "text"; //$NON-NLS-1$
- static final String DEFAULT_DATE_PATTERN = "MMMM, yyyy";
- static final String HEADER = "header";
- static final String FOOTER = "footer";
- static final String VPE_USER_TOGGLE_ID_ATTR = "vpe-user-toggle-id";
+ static final String DEFAULT_DATE_PATTERN = "MMMM, yyyy"; //$NON-NLS-1$
+ static final String HEADER = "header"; //$NON-NLS-1$
+ static final String FOOTER = "footer"; //$NON-NLS-1$
+ static final String VPE_USER_TOGGLE_ID_ATTR = "vpe-user-toggle-id"; //$NON-NLS-1$
/*rich:calendar attributes*/
- static final String BUTTON_LABEL = "buttonLabel";
- static final String BUTTON_ICON = "buttonIcon";
- static final String DIRECTION = "direction";
- static final String ENABLE_MANUAL_INPUT = "enableManualInput";
- static final String CELL_HEIGHT = "cellHeight";
- static final String CELL_WIDTH = "cellWidth";
- static final String DATE_PATTERN = "datePattern";
- static final String VALUE = "value";
- static final String DISABLED = "disabled";
- static final String HORIZONTAL_OFFSET = "horizontalOffset";
- static final String VERTICAL_OFFSET = "verticalOffset";
- static final String LOCALE = "locale";
- static final String POPUP = "popup";
- static final String SHOW_APPLY_BUTTON = "showApplyButton";
- static final String SHOW_INPUT = "showInput";
- static final String SHOW_SHOW_WEEKS_DAY_BAR = "showWeekDaysBar";
- static final String SHOW_WEEKS_BAR = "showWeeksBar";
- static final String TODAY_CONTROL_MODE = "todayControlMode";
- static final String SHOW_HEADER = "showHeader";
- static final String SHOW_FOOTER= "showFooter";
+ static final String BUTTON_LABEL = "buttonLabel"; //$NON-NLS-1$
+ static final String BUTTON_ICON = "buttonIcon"; //$NON-NLS-1$
+ static final String DIRECTION = "direction"; //$NON-NLS-1$
+ static final String ENABLE_MANUAL_INPUT = "enableManualInput"; //$NON-NLS-1$
+ static final String CELL_HEIGHT = "cellHeight"; //$NON-NLS-1$
+ static final String CELL_WIDTH = "cellWidth"; //$NON-NLS-1$
+ static final String DATE_PATTERN = "datePattern"; //$NON-NLS-1$
+ static final String VALUE = "value"; //$NON-NLS-1$
+ static final String DISABLED = "disabled"; //$NON-NLS-1$
+ static final String HORIZONTAL_OFFSET = "horizontalOffset"; //$NON-NLS-1$
+ static final String VERTICAL_OFFSET = "verticalOffset"; //$NON-NLS-1$
+ static final String LOCALE = "locale"; //$NON-NLS-1$
+ static final String POPUP = "popup"; //$NON-NLS-1$
+ static final String SHOW_APPLY_BUTTON = "showApplyButton"; //$NON-NLS-1$
+ static final String SHOW_INPUT = "showInput"; //$NON-NLS-1$
+ static final String SHOW_SHOW_WEEKS_DAY_BAR = "showWeekDaysBar"; //$NON-NLS-1$
+ static final String SHOW_WEEKS_BAR = "showWeeksBar"; //$NON-NLS-1$
+ static final String TODAY_CONTROL_MODE = "todayControlMode"; //$NON-NLS-1$
+ static final String SHOW_HEADER = "showHeader"; //$NON-NLS-1$
+ static final String SHOW_FOOTER= "showFooter"; //$NON-NLS-1$
/*CSS classes*/
- static final String CSS_R_C_INPUT = "rich-calendar-input";
- static final String CSS_R_C_BUTTON = "rich-calendar-button";
- static final String CSS_R_C_EXTERIOR = "rich-calendar-exterior";
- static final String CSS_R_C_HEADER = "rich-calendar-header";
- static final String CSS_R_C_TOOL = "rich-calendar-tool";
- static final String CSS_R_C_MONTH = "rich-calendar-month";
- static final String CSS_R_C_TOOL_CLOSE = "rich-calendar-tool-close";
- static final String CSS_R_C_DAYS = "rich-calendar-days";
- static final String CSS_R_C_WEEKENDS = "rich-calendar-weekends";
- static final String CSS_R_C_WEEK = "rich-calendar-week";
- static final String CSS_R_C_CELL = "rich-calendar-cell";
- static final String CSS_R_C_CELL_SIZE = "rich-calendar-cell-size";
- static final String CSS_R_C_HOLLY = "rich-calendar-holly";
- static final String CSS_R_C_BOUNDARY_DATES = "rich-calendar-boundary-dates";
- static final String CSS_R_C_BTN = "rich-calendar-btn";
- static final String CSS_R_C_TODAY = "rich-calendar-today";
- static final String CSS_R_C_SELECT = "rich-calendar-select";
- static final String CSS_R_C_TOOLFOOTER = "rich-calendar-toolfooter";
- static final String CSS_R_C_FOOTER = "rich-calendar-footer";
- static final String CSS_R_C_HEADER_OPTIONAL = "rich-calendar-header-optional";
- static final String CSS_R_C_FOOTER_OPTIONAL = "rich-calendar-footer-optional";
+ static final String CSS_R_C_INPUT = "rich-calendar-input"; //$NON-NLS-1$
+ static final String CSS_R_C_BUTTON = "rich-calendar-button"; //$NON-NLS-1$
+ static final String CSS_R_C_EXTERIOR = "rich-calendar-exterior"; //$NON-NLS-1$
+ static final String CSS_R_C_HEADER = "rich-calendar-header"; //$NON-NLS-1$
+ static final String CSS_R_C_TOOL = "rich-calendar-tool"; //$NON-NLS-1$
+ static final String CSS_R_C_MONTH = "rich-calendar-month"; //$NON-NLS-1$
+ static final String CSS_R_C_TOOL_CLOSE = "rich-calendar-tool-close"; //$NON-NLS-1$
+ static final String CSS_R_C_DAYS = "rich-calendar-days"; //$NON-NLS-1$
+ static final String CSS_R_C_WEEKENDS = "rich-calendar-weekends"; //$NON-NLS-1$
+ static final String CSS_R_C_WEEK = "rich-calendar-week"; //$NON-NLS-1$
+ static final String CSS_R_C_CELL = "rich-calendar-cell"; //$NON-NLS-1$
+ static final String CSS_R_C_CELL_SIZE = "rich-calendar-cell-size"; //$NON-NLS-1$
+ static final String CSS_R_C_HOLLY = "rich-calendar-holly"; //$NON-NLS-1$
+ static final String CSS_R_C_BOUNDARY_DATES = "rich-calendar-boundary-dates"; //$NON-NLS-1$
+ static final String CSS_R_C_BTN = "rich-calendar-btn"; //$NON-NLS-1$
+ static final String CSS_R_C_TODAY = "rich-calendar-today"; //$NON-NLS-1$
+ static final String CSS_R_C_SELECT = "rich-calendar-select"; //$NON-NLS-1$
+ static final String CSS_R_C_TOOLFOOTER = "rich-calendar-toolfooter"; //$NON-NLS-1$
+ static final String CSS_R_C_FOOTER = "rich-calendar-footer"; //$NON-NLS-1$
+ static final String CSS_R_C_HEADER_OPTIONAL = "rich-calendar-header-optional"; //$NON-NLS-1$
+ static final String CSS_R_C_FOOTER_OPTIONAL = "rich-calendar-footer-optional"; //$NON-NLS-1$
private final static String WEEK_DAY_HTML_CLASS_ATTR = CSS_R_C_DAYS;
- private final static String HOL_WEEK_DAY_HTML_CLASS_ATTR = CSS_R_C_DAYS + " " + CSS_R_C_WEEKENDS;
- private final static String TODAY_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_TODAY;
- private final static String CUR_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL;
- private final static String HOL_CUR_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_HOLLY;
- private final static String OTHER_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_BOUNDARY_DATES;
- private final static String HOL_OTHER_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_HOLLY + " " + CSS_R_C_BOUNDARY_DATES ;
+ private final static String HOL_WEEK_DAY_HTML_CLASS_ATTR = CSS_R_C_DAYS + " " + CSS_R_C_WEEKENDS; //$NON-NLS-1$
+ private final static String TODAY_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_TODAY; //$NON-NLS-1$ //$NON-NLS-2$
+ private final static String CUR_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL; //$NON-NLS-1$
+ private final static String HOL_CUR_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_HOLLY; //$NON-NLS-1$ //$NON-NLS-2$
+ private final static String OTHER_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_BOUNDARY_DATES; //$NON-NLS-1$ //$NON-NLS-2$
+ private final static String HOL_OTHER_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_HOLLY + " " + CSS_R_C_BOUNDARY_DATES ; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
/*Attribute values*/
- private static final String DIRECTIONS_TOP_LEFT = "top-left";
- private static final String DIRECTIONS_TOP_RIGHT = "top-right";
- private static final String DIRECTIONS_BOTTOM_LEFT = "bottom-left";
- private static final String DIRECTIONS_BOTTOM_RIGHT = "bottom-right";
+ private static final String DIRECTIONS_TOP_LEFT = "top-left"; //$NON-NLS-1$
+ private static final String DIRECTIONS_TOP_RIGHT = "top-right"; //$NON-NLS-1$
+ private static final String DIRECTIONS_BOTTOM_LEFT = "bottom-left"; //$NON-NLS-1$
+ private static final String DIRECTIONS_BOTTOM_RIGHT = "bottom-right"; //$NON-NLS-1$
private static final int DIRECTIONS_TOP_LEFT_INT = 1;
private static final int DIRECTIONS_TOP_RIGHT_INT = 2;
private static final int DIRECTIONS_BOTTOM_LEFT_INT = 3;
private static final int DIRECTIONS_BOTTOM_RIGHT_INT = 4;
/*styles for direction table cells*/
- private static final String STYLE_TOP_LEFT = "vertical-align: bottom; text-align: right;";
- private static final String STYLE_TOP_RIGHT = "vertical-align: bottom; text-align: left;";
- private static final String STYLE_BOTTOM_LEFT = "vertical-align: top; text-align: right;";
- private static final String STYLE_BOTTOM_RIGHT = "vertical-align: top; text-align: left;";
+ private static final String STYLE_TOP_LEFT = "vertical-align: bottom; text-align: right;"; //$NON-NLS-1$
+ private static final String STYLE_TOP_RIGHT = "vertical-align: bottom; text-align: left;"; //$NON-NLS-1$
+ private static final String STYLE_BOTTOM_LEFT = "vertical-align: top; text-align: right;"; //$NON-NLS-1$
+ private static final String STYLE_BOTTOM_RIGHT = "vertical-align: top; text-align: left;"; //$NON-NLS-1$
/*rich:calendar attributes*/
private String buttonLabel;
@@ -202,7 +202,7 @@
readAttributes(sourceNode);
initCalendar();
- ComponentUtil.setCSSLink(pageContext, STYLE_PATH, "calendar");
+ ComponentUtil.setCSSLink(pageContext, STYLE_PATH, "calendar"); //$NON-NLS-1$
nsIDOMElement div = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
@@ -222,8 +222,8 @@
nsIDOMElement calendar;
nsIDOMElement calendarWithPopup;
- if ("false".equalsIgnoreCase(popup)) {
- if ("true".equalsIgnoreCase(disabled)) {
+ if ("false".equalsIgnoreCase(popup)) { //$NON-NLS-1$
+ if ("true".equalsIgnoreCase(disabled)) { //$NON-NLS-1$
calendar = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
} else {
@@ -298,8 +298,8 @@
nsIDOMElement hiddenDiv = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
hiddenDiv.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + " : " + CALENDAR_WIDTH
- + "px; overflow: hidden; display: none;");
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : " + CALENDAR_WIDTH //$NON-NLS-1$
+ + "px; overflow: hidden; display: none;"); //$NON-NLS-1$
nsIDOMElement hiddenTable = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
@@ -346,7 +346,7 @@
.createElement(HtmlComponentUtil.HTML_TAG_TD);
table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + " : 100%");
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : 100%"); //$NON-NLS-1$
tr1.appendChild(td1_1);
tr1.appendChild(td1_2);
@@ -360,21 +360,21 @@
int divWidth = CALENDAR_WIDTH + CALENDAR_IMAGE_WIDTH;
div.appendChild(table);
- if (!"false".equalsIgnoreCase(showInput)) {
+ if (!Constants.FALSE.equalsIgnoreCase(showInput)) {
nsIDOMElement input = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_INPUT);
input.setAttribute(HtmlComponentUtil.HTML_TYPE_ATTR, ATTRIBUTE_TEXT);
input.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_INPUT);
input.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + " : "
- + CALENDAR_INPUT_WIDTH + "px;");
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : " //$NON-NLS-1$
+ + CALENDAR_INPUT_WIDTH + "px;"); //$NON-NLS-1$
- if ("true".equals(enableManualInput)) {
- input.setAttribute(HtmlComponentUtil.HTML_READONLY_ATTR, "true");
- }
- if ("true".equals(disabled)) {
- input.setAttribute(HtmlComponentUtil.HTML_ATTR_DISABLED, "true");
- }
+ if (Constants.TRUE.equals(enableManualInput)) {
+ input.setAttribute(HTML.ATTR_READONLY, Constants.TRUE);
+ }
+ if (Constants.TRUE.equals(disabled)) {
+ input.setAttribute(HTML.ATTR_DISABLED, Constants.TRUE);
+ }
if (attrPresents(value)) {
input.setAttribute(HtmlComponentUtil.HTML_VALUE_ATTR, value);
@@ -391,10 +391,10 @@
HtmlComponentUtil.HTML_TAG_BUTTON);
button.setAttribute(HtmlComponentUtil.HTML_VALUE_ATTR, buttonLabel);
button.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_BUTTON);
- if ("true".equalsIgnoreCase(disabled)) {
- button.setAttribute(HtmlComponentUtil.HTML_ATTR_DISABLED, "true");
+ if ("true".equalsIgnoreCase(disabled)) { //$NON-NLS-1$
+ button.setAttribute(HtmlComponentUtil.HTML_ATTR_DISABLED, "true"); //$NON-NLS-1$
}
- button.setAttribute(VPE_USER_TOGGLE_ID_ATTR, ""+showPopupCalendar);
+ button.setAttribute(VPE_USER_TOGGLE_ID_ATTR, ""+showPopupCalendar); //$NON-NLS-1$
td1_2.appendChild(button);
divWidth = CALENDAR_WIDTH + CALENDAR_BUTTON_WIDTH;
} else {
@@ -409,12 +409,12 @@
ComponentUtil.setImg(image, BUTTON_IMG);
divWidth = CALENDAR_WIDTH + CALENDAR_IMAGE_WIDTH;
}
- image.setAttribute(VPE_USER_TOGGLE_ID_ATTR, ""+showPopupCalendar);
+ image.setAttribute(VPE_USER_TOGGLE_ID_ATTR, ""+showPopupCalendar); //$NON-NLS-1$
td1_2.appendChild(image);
}
div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + " : "
- + divWidth + "px; overflow: hidden;");
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : " //$NON-NLS-1$
+ + divWidth + "px; overflow: hidden;"); //$NON-NLS-1$
return div;
}
@@ -454,14 +454,14 @@
nsIDOMElement div = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + " : " + CALENDAR_WIDTH
- + "px; overflow: hidden;");
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : " + CALENDAR_WIDTH //$NON-NLS-1$
+ + "px; overflow: hidden;"); //$NON-NLS-1$
nsIDOMElement table = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
- table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0");
+ table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0"); //$NON-NLS-1$
+ table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0"); //$NON-NLS-1$
+ table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0"); //$NON-NLS-1$
table.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
CSS_R_C_EXTERIOR);
@@ -481,10 +481,10 @@
nsIDOMElement calendarBody = createCalendarBody(visualDocument);
nsIDOMElement footer = null;
- if (!"false".equals(showHeader)) {
+ if (!"false".equals(showHeader)) { //$NON-NLS-1$
header = createCalendarHeader(visualDocument);
}
- if (!"false".equals(showFooter)) {
+ if (!"false".equals(showFooter)) { //$NON-NLS-1$
footer = createCalendarFooter(visualDocument);
}
@@ -524,7 +524,7 @@
.createElement(HtmlComponentUtil.HTML_TAG_TR);
nsIDOMElement td = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
- td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN);
+ td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN); //$NON-NLS-1$
tr.appendChild(td);
if (isHeader) {
@@ -549,10 +549,10 @@
.createElement(HtmlComponentUtil.HTML_TAG_TR);
nsIDOMElement td = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
- td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN);
+ td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN); //$NON-NLS-1$
String[] array;
- if ("false".equalsIgnoreCase(popup)) {
+ if ("false".equalsIgnoreCase(popup)) { //$NON-NLS-1$
array = HEADER_CONTENT;
} else {
array = HEADER_CONTENT_ON_POPUP;
@@ -573,9 +573,9 @@
nsIDOMElement table = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
- table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0");
+ table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0"); //$NON-NLS-1$
+ table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0"); //$NON-NLS-1$
+ table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0"); //$NON-NLS-1$
table.setAttribute(HtmlComponentUtil.HTML_ATR_WIDTH, FILL_WIDTH);
nsIDOMElement tbody = visualDocument
@@ -594,8 +594,8 @@
// close tool
if (i == 5) {
- td1.setAttribute(VPE_USER_TOGGLE_ID_ATTR, "0");
- td1.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "cursor: pointer;");
+ td1.setAttribute(VPE_USER_TOGGLE_ID_ATTR, "0"); //$NON-NLS-1$
+ td1.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "cursor: pointer;"); //$NON-NLS-1$
}
nsIDOMText text1 = visualDocument.createTextNode(array[i]);
@@ -622,12 +622,12 @@
.createElement(HtmlComponentUtil.HTML_TAG_TR);
nsIDOMElement td = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
- td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN);
+ td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN); //$NON-NLS-1$
nsIDOMElement table = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
- table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0");
+ table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0"); //$NON-NLS-1$
+ table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0"); //$NON-NLS-1$
+ table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0"); //$NON-NLS-1$
table.setAttribute(HtmlComponentUtil.HTML_ATR_WIDTH, FILL_WIDTH);
nsIDOMElement tr1 = visualDocument
@@ -640,7 +640,7 @@
td1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
CSS_R_C_TOOLFOOTER);
- SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
+ SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy"); //$NON-NLS-1$
Calendar cal = getCalendarWithLocale();
nsIDOMText text1 = visualDocument.createTextNode(sdf.format(cal
@@ -662,14 +662,14 @@
HtmlComponentUtil.HTML_ALIGN_RIGHT_VALUE);
String nodeText;
- if ("false".equalsIgnoreCase(showApplyButton)) {
- if ("hidden".equalsIgnoreCase(todayControlMode)) {
- nodeText = "";
+ if ("false".equalsIgnoreCase(showApplyButton)) { //$NON-NLS-1$
+ if ("hidden".equalsIgnoreCase(todayControlMode)) { //$NON-NLS-1$
+ nodeText = ""; //$NON-NLS-1$
} else {
nodeText = TODAY;
}
} else {
- if ("hidden".equalsIgnoreCase(todayControlMode)) {
+ if ("hidden".equalsIgnoreCase(todayControlMode)) { //$NON-NLS-1$
nodeText = APPLY;
} else {
nodeText = TODAY + VERTICAL_SEPARATOR + APPLY;
@@ -702,16 +702,14 @@
Calendar cal1 = getCalendarWithLocale();
- SimpleDateFormat wdf = new SimpleDateFormat("EE");
-
cal1.set(Calendar.WEEK_OF_MONTH, Calendar.SATURDAY);
// Create week days row
- if (!"false".equalsIgnoreCase(showWeekDaysBar)) {
+ if (!"false".equalsIgnoreCase(showWeekDaysBar)) { //$NON-NLS-1$
for (int i = 0; i < COLUMN; i++) {
nsIDOMElement td = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
- if ((i == 0) && (!"false".equalsIgnoreCase(showWeeksBar))) {
+ if ((i == 0) && (!"false".equalsIgnoreCase(showWeeksBar))) { //$NON-NLS-1$
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
WEEK_DAY_HTML_CLASS_ATTR);
nsIDOMElement br = visualDocument
@@ -726,7 +724,7 @@
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
WEEK_DAY_HTML_CLASS_ATTR);
}
- nsIDOMText text = visualDocument.createTextNode(i == 0 ? ""
+ nsIDOMText text = visualDocument.createTextNode(i == 0 ? "" //$NON-NLS-1$
: weeks[i - 1]);
td.appendChild(text);
bodyTR.appendChild(td);
@@ -754,13 +752,13 @@
nsIDOMElement tr = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TR);
- if (!"false".equalsIgnoreCase(showWeeksBar)) {
+ if (!"false".equalsIgnoreCase(showWeeksBar)) { //$NON-NLS-1$
// Week in year
nsIDOMElement weekTD = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
weekTD.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
CSS_R_C_WEEK);
- nsIDOMText weekText = visualDocument.createTextNode(""
+ nsIDOMText weekText = visualDocument.createTextNode("" //$NON-NLS-1$
+ cal.get(Calendar.WEEK_OF_YEAR));
weekTD.appendChild(weekText);
tr.appendChild(weekTD);
@@ -773,7 +771,7 @@
nsIDOMElement td = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
- String currentAttr = "";
+ String currentAttr = ""; //$NON-NLS-1$
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
@@ -808,18 +806,18 @@
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, currentAttr);
if (attrPresents(cellWidth) && attrPresents(cellHeight)) {
td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + ":" + cellWidth
- + "px;" + HtmlComponentUtil.HTML_ATR_HEIGHT
- + ":" + cellHeight + "px;");
+ HtmlComponentUtil.HTML_ATR_WIDTH + ":" + cellWidth //$NON-NLS-1$
+ + "px;" + HtmlComponentUtil.HTML_ATR_HEIGHT //$NON-NLS-1$
+ + ":" + cellHeight + "px;"); //$NON-NLS-1$ //$NON-NLS-2$
} else if (attrPresents(cellWidth)) {
td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH +":" + cellWidth + "px;");
+ HtmlComponentUtil.HTML_ATR_WIDTH +":" + cellWidth + "px;"); //$NON-NLS-1$ //$NON-NLS-2$
} else if (attrPresents(cellHeight)) {
td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_HEIGHT+":" + cellHeight + "px;");
+ HtmlComponentUtil.HTML_ATR_HEIGHT+":" + cellHeight + "px;"); //$NON-NLS-1$ //$NON-NLS-2$
}
- nsIDOMText text = visualDocument.createTextNode(""
+ nsIDOMText text = visualDocument.createTextNode("" //$NON-NLS-1$
+ cal.get(Calendar.DAY_OF_MONTH));
td.appendChild(text);
tr.appendChild(td);
@@ -843,7 +841,7 @@
visualNode, data, name, value);
if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_VALUE_ATTR)) {
String popup = sourceElement.getAttribute(POPUP);
- if (popup != null && popup.equalsIgnoreCase("false"))
+ if (popup != null && popup.equalsIgnoreCase("false")) //$NON-NLS-1$
return;
nsIDOMElement element = (nsIDOMElement) visualNode
.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
@@ -867,7 +865,7 @@
visualNode, data, name);
if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_VALUE_ATTR)) {
String popup = sourceElement.getAttribute(POPUP);
- if (popup != null && popup.equalsIgnoreCase("false"))
+ if (popup != null && popup.equalsIgnoreCase("false")) //$NON-NLS-1$
return;
nsIDOMElement element = (nsIDOMElement) visualNode
.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
@@ -917,7 +915,7 @@
* @return true, if successful
*/
private boolean attrPresents(String attr) {
- return ((null != attr) && (!"".equals(attr)));
+ return ((null != attr) && (!"".equals(attr))); //$NON-NLS-1$
}
/**
@@ -931,8 +929,8 @@
cal.add(Calendar.DAY_OF_MONTH, 1);
}
- SimpleDateFormat sdf = new SimpleDateFormat("EE");
- String dayOfWeek = "";
+ SimpleDateFormat sdf = new SimpleDateFormat("EE"); //$NON-NLS-1$
+ String dayOfWeek = ""; //$NON-NLS-1$
for (int i = 0; i < NUM_DAYS_IN_WEEK; i++) {
dayOfWeek = sdf.format(cal.getTime());
weeks[i] = dayOfWeek;
@@ -964,7 +962,7 @@
return Locale.getDefault();
}
// Lookup index of first '_' in string locale representation.
- int index1 = localeStr.indexOf("_");
+ int index1 = localeStr.indexOf("_"); //$NON-NLS-1$
// Get first charters (if exist) from string
String language = null;
if (index1 != -1) {
@@ -973,7 +971,7 @@
return new Locale(localeStr);
}
// Lookup index of second '_' in string locale representation.
- int index2 = localeStr.indexOf("_", index1 + 1);
+ int index2 = localeStr.indexOf("_", index1 + 1); //$NON-NLS-1$
String country = null;
if (index2 != -1) {
country = localeStr.substring(index1 + 1, index2);
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java 2008-10-01 12:20:59 UTC (rev 10587)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java 2008-10-01 12:38:24 UTC (rev 10588)
@@ -66,13 +66,13 @@
public static final String ATTR_SHOW_BUTTON_LABELS = "showButtonLabels"; //$NON-NLS-1$
/** The Constant ATTR_DEFAULT_LABEL. */
- public static final String ATTR_DEFAULT_LABEL = "defaultLabel";
+ public static final String ATTR_DEFAULT_LABEL = "defaultLabel"; //$NON-NLS-1$
/** The Constant ATTR_ADD_CONTROL_LABEL. */
- public static final String ATTR_ADD_CONTROL_LABEL = "addControlLabel";
+ public static final String ATTR_ADD_CONTROL_LABEL = "addControlLabel"; //$NON-NLS-1$
/** The Constant ATTR_STYLE_CLASS. */
- public static final String ATTR_STYLE_CLASS = "styleClass";
+ public static final String ATTR_STYLE_CLASS = "styleClass"; //$NON-NLS-1$
public static final String ATTR_SELECT_ITEM_LABEL = "itemLabel"; //$NON-NLS-1$
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/ajaxValidator.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/ajaxValidator.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/ajaxValidator.xhtml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<head>
+</head>
+<body>
+<h1>ajaxValidator</h1>
+
+<h:form>
+
+ <h:panelGrid columns="2">
+ <h:inputText value="#{bean.avString}" id="input" required="true">
+ <f:validateLength minimum="3" maximum="12" />
+ <rich:ajaxValidator event="onblur" id="ajaxValidator" />
+ </h:inputText>
+ <rich:message for="input" />
+ </h:panelGrid>
+</h:form>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/beanValidator.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/beanValidator.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/beanValidator.xhtml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<head>
+</head>
+<body>
+<h1>beanValidator</h1>
+<h:form>
+ <h:inputText value="#{bean.bvString}" id="input">
+ <rich:beanValidator id="beanValidator"/>
+ </h:inputText>
+ <rich:message for="input"/>
+ <a4j:commandButton value="Store changes" />
+</h:form>
+</body>
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml 2008-10-01 12:20:59 UTC (rev 10587)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -9,7 +9,9 @@
<head>
</head>
<body>
- <!-- Calendar -->
- <rich:calendar />
+<h1>calendar</h1>
+<rich:calendar direction="bottom-right" id="calendar1"></rich:calendar>
+
+<rich:calendar direction="bottom-right" popup="false" id="calendar2"></rich:calendar>
</body>
</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/calendar.xhtml.xml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -0,0 +1,30 @@
+<tests>
+ <test id="calendar1">
+ <TABLE>
+ <TR>
+ <TD>
+ <DIV>
+ <DIV STYLE="overflow: hidden; width: 220px;">
+ <TABLE STYLE="width: 100%;">
+ <TR>
+ <TD>
+ <INPUT TYPE="text" CLASS="rich-calendar-input" STYLE="width: 180px;" />
+ </TD>
+ <TD>
+ <IMG CLASS="rich-calendar-button" VPE-USER-TOGGLE-ID="false" />
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </DIV>
+ </TD>
+ </TR>
+ <BR VPE:PSEUDO-ELEMENT="yes"
+ STYLE="font-style: italic; color: green; -moz-user-modify: read-only;" />
+ </TABLE>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<head>
+</head>
+<body>
+<h1>comboBox</h1>
+<rich:comboBox value="#{bean.cbString}" defaultLabel="Select Any Value"
+ style="width:250px" id="comboBox">
+ <f:selectItem itemValue="suggestion 1" />
+ <f:selectItem itemValue="suggestion 2" />
+ <f:selectItem itemValue="suggestion 3" />
+ <f:selectItem itemValue="suggestion 4" />
+ <f:selectItem itemValue="suggestion 5" />
+</rich:comboBox>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/comboBox.xhtml.xml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -0,0 +1,22 @@
+<tests>
+ <test id="comboBox">
+ <DIV STYLE="width: 150px;">
+ <DIV ALIGN="left" CLASS="rich-combobox-font rich-combobox"
+ STYLE="position: static; z-index: 0; width: 250px;">
+ <DIV CLASS="rich-combobox-font rich-combobox-shell" STYLE="width: 150px; z-index: 1;">
+ <INPUT TYPE="text"
+ CLASS="rich-combobox-font-disabled rich-combobox-input-inactive"
+ AUTOCOMPLETE="off" STYLE="width: 133px;" VALUE="Select Any Value" />
+ <INPUT TYPE="text"
+ CLASS="rich-combobox-font-inactive rich-combobox-button-background rich-combobox-button-inactive"
+ READONLY="true" VPE-USER-TOGGLE-ID="0" />
+ <INPUT TYPE="text"
+ CLASS="rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive"
+ READONLY="true" VPE-USER-TOGGLE-ID="0" />
+ <DIV CLASS="rich-combobox-strut rich-combobox-font" STYLE="width: 140px;">
+ Struts</DIV>
+ </DIV>
+ </DIV>
+ </DIV>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/componentControl.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/componentControl.xhtml 2008-10-01 12:20:59 UTC (rev 10587)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/componentControl.xhtml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -10,6 +10,6 @@
</head>
<body>
<h:inputText value="#{user}" id="inputText"/>
- <rich:componentControl for="inputText" attachTo="link" operation="show" event="onclick"/>
+ <rich:componentControl for="inputText" attachTo="link" operation="show" event="onclick" id="componentControl"/>
</body>
</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/graphValidator.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/graphValidator.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/graphValidator.xhtml 2008-10-01 12:38:24 UTC (rev 10588)
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<head>
+</head>
+<body>
+<h1>graphValidator</h1>
+<h:form>
+
+ <rich:graphValidator id="graphValidator">
+
+ <h:inputText value="#{bean.gvString}" id="input">
+ </h:inputText>
+ <rich:message for="input" />
+ <h:inputText value="#{bean.gvString2}" id="input2">
+ </h:inputText>
+ <rich:message for="input2" />
+
+ </rich:graphValidator>
+ <a4j:commandButton value="Store changes" />
+</h:form>
+</body>
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-10-01 12:20:59 UTC (rev 10587)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-10-01 12:38:24 UTC (rev 10588)
@@ -38,40 +38,43 @@
public class RichFacesAllTests {
- public static Test suite() {
- TestSuite suite = new TestSuite("Tests for Vpe RichFaces components"); // $NON-NLS-1$
- // $JUnit-BEGIN$
+ public static final String IMPORT_PROJECT_NAME = "richFacesTest"; //$NON-NLS-1$
- suite.addTestSuite(RichFacesComponentTest.class);
- suite.addTestSuite(JBIDE1579Test.class);
- suite.addTestSuite(Jbide1580Test.class);
- suite.addTestSuite(JBIDE1613Test.class);
- suite.addTestSuite(Jbide1614Test.class);
- suite.addTestSuite(Jbide1639Test.class);
- suite.addTestSuite(Jbide1682Test.class);
- suite.addTestSuite(Jbide1548Test.class);
- suite.addTestSuite(JBIDE1713Test.class);
- suite.addTestSuite(RichFacesComboBoxTemplateTestCase.class);
- suite.addTestSuite(RichFacesInplaceInputTemplateTestCase.class);
- suite.addTestSuite(RichFacesInplaceSelectTemplateTestCase.class);
- suite.addTestSuite(RichFacesProgressBarTemplateTestCase.class);
- suite.addTestSuite(RichFacesFileUploadTemplateTestCase.class);
- suite.addTestSuite(RichFacesColumnsTemplateTestCase.class);
- suite.addTestSuite(RichFacesPickListTemplateTestCase.class);
- suite.addTestSuite(JBIDE1605Test.class);
- suite.addTestSuite(JBIDE1606Test.class);
- // $JUnit-END$
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Tests for Vpe RichFaces components"); // $NON
+ // $JUnit-BEGIN$
- List<ImportBean> projectToImport = new ArrayList<ImportBean>();
- ImportBean importBean = new ImportBean();
- importBean
- .setImportProjectName(RichFacesComponentTest.IMPORT_PROJECT_NAME);
- importBean.setImportProjectPath(RichFacesTestPlugin
- .getPluginResourcePath());
- projectToImport.add(importBean);
+ suite.addTestSuite(RichFacesComponentTest.class);
+ suite.addTestSuite(JBIDE1579Test.class);
+ suite.addTestSuite(Jbide1580Test.class);
+ suite.addTestSuite(JBIDE1613Test.class);
+ suite.addTestSuite(Jbide1614Test.class);
+ suite.addTestSuite(Jbide1639Test.class);
+ suite.addTestSuite(Jbide1682Test.class);
+ suite.addTestSuite(Jbide1548Test.class);
+ suite.addTestSuite(JBIDE1713Test.class);
+ suite.addTestSuite(RichFacesComboBoxTemplateTestCase.class);
+ suite.addTestSuite(RichFacesInplaceInputTemplateTestCase.class);
+ suite.addTestSuite(RichFacesInplaceSelectTemplateTestCase.class);
+ suite.addTestSuite(RichFacesProgressBarTemplateTestCase.class);
+ suite.addTestSuite(RichFacesFileUploadTemplateTestCase.class);
+ suite.addTestSuite(RichFacesColumnsTemplateTestCase.class);
+ suite.addTestSuite(RichFacesPickListTemplateTestCase.class);
+ suite.addTestSuite(JBIDE1605Test.class);
+ suite.addTestSuite(JBIDE1606Test.class);
+ suite.addTestSuite(RichFacesComponentContentTest.class);
- return new VpeTestSetup(suite, projectToImport);
+ // $JUnit-END$
- }
+ List<ImportBean> projectToImport = new ArrayList<ImportBean>();
+ ImportBean importBean = new ImportBean();
+ importBean.setImportProjectName(RichFacesAllTests.IMPORT_PROJECT_NAME);
+ importBean.setImportProjectPath(RichFacesTestPlugin
+ .getPluginResourcePath());
+ projectToImport.add(importBean);
+ return new VpeTestSetup(suite, projectToImport);
+
+ }
+
}
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-01 12:38:24 UTC (rev 10588)
@@ -0,0 +1,324 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.jsf.vpe.richfaces.test;
+
+import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+
+/**
+ * Class for testing all richfaces components
+ *
+ * @author sdzmitrovich
+ *
+ */
+public class RichFacesComponentContentTest extends ComponentContentTest {
+
+ public RichFacesComponentContentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ public void testAjaxValidator() throws Throwable {
+ performInvisibleTagTest(
+ "components/ajaxValidator.xhtml", "ajaxValidator");//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testGraphValidator() throws Throwable {
+ performInvisibleWrapperTagTest(
+ "components/graphValidator.xhtml", "graphValidator");//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testBeanValidator() throws Throwable {
+ performInvisibleTagTest(
+ "components/beanValidator.xhtml", "beanValidator");//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testCalendar() throws Throwable {
+ performContentTest("components/calendar.xhtml");//$NON-NLS-1$
+ }
+
+ public void testComboBox() throws Throwable {
+ performContentTest("components/comboBox.xhtml");//$NON-NLS-1$
+ }
+
+ public void testComponentControl() throws Throwable {
+ performInvisibleTagTest(
+ "components/componentControl.xhtml", "componentControl");//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testContextMenu() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDataFilterSlider() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDatascroller() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testColumns() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testColumnGroup() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testColumn() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDataGrid() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDataList() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDataOrderedList() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDataDefinitionList() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDataTable() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testSubTable() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDndParam() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDragIndicator() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDragSupport() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDropSupport() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDragListener() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDropListener() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testDropDownMenu() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testExtendedDataTable() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testMenuGroup() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testMenuItem() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testMenuSeparator() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testEffect() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testFileUpload() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testGmap() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testVirtualEarth() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testHotKey() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testInplaceInput() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testInplaceSelect() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testInputNumberSlider() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testInputNumberSpinner() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testInsert() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testJQuery() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testListShuttle() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testMessage() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testMessages() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testModalPanel() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testOrderingList() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPaint2D() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPanel() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPanelBar() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPanelBarItem() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPanelMenu() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPanelMenuGroup() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPanelMenuItem() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testPickList() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testProgressBar() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testScrollableDataTable() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testSeparator() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testSimpleTogglePanel() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testSpacer() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testSuggestionbox() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testTabPanel() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testTab() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testTogglePanel() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testToggleControl() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testToolBar() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testToolBarGroup() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testToolTip() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testTree() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testTreeNode() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testChangeExpandListener() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testNodeSelectListener() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testRecursiveTreeNodesAdaptor() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ public void testTreeNodesAdaptor() throws Throwable {
+ assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ }
+
+ protected String getTestProjectName() {
+ return RichFacesAllTests.IMPORT_PROJECT_NAME;
+ }
+
+}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java 2008-10-01 12:20:59 UTC (rev 10587)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java 2008-10-01 12:38:24 UTC (rev 10588)
@@ -34,186 +34,186 @@
public void testAllComponentsOnSinglePage() throws PartInitException,
Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/richFacesTest.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/richFacesTest.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testCalendar() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/calendar.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/calendar.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDataDefinitionList() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dataDefinitionList.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dataDefinitionList.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDataFilterSlider() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dataFilterSlider.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dataFilterSlider.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDataGrid() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dataGrid.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dataGrid.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDataList() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dataList.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dataList.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDataOrderedList() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dataOrderedList.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dataOrderedList.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDataScroller() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dataScroller.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dataScroller.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDataTable() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dataTable.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dataTable.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDragAndDrop() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dragAndDrop.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dragAndDrop.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testDropDawnMenu() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/dropDawnMenu.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/dropDawnMenu.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testEffect() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/effect.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/effect.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testGoogleMap() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/googleMap.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/googleMap.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testInputNumberSlider() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/inputNumberSlider.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/inputNumberSlider.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testInputNumberSpinner() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/inputNumberSpinner.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/inputNumberSpinner.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testInsert() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/insert.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/insert.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testMessage() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/message.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/message.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testMessages() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/messages.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/messages.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testModalPanel() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/modalPanel.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/modalPanel.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testOrderingList() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/orderingList.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/orderingList.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testPaint2D() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/paint2D.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/paint2D.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testPanel() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/panel.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/panel.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testPanelBar() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/panelBar.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/panelBar.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testPanelMenu() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/panelMenu.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/panelMenu.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testScrollableDataTable() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/scrollableDataTable.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/scrollableDataTable.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testSeparator() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/separator.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/separator.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testSimpleTogglePanel() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/simpleTogglePanel.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/simpleTogglePanel.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testSpacer() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/spacer.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/spacer.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testSuggestionBox() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/suggestionbox.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/suggestionbox.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testTabPanel() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/tabPanel.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/tabPanel.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testTogglePanel() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/togglePanel.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/togglePanel.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testToolBar() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/toolBar.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/toolBar.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testTree() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/tree.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/tree.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testVirtualEarth() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/virtualEarth.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/virtualEarth.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testComponentControl() throws PartInitException, Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/componentControl.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/componentControl.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testContextMenu() throws Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/contextMenu.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/contextMenu.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testListShuttle() throws Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/listShuttle.xhtml", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ "components/listShuttle.xhtml", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2008-10-01 12:20:59 UTC (rev 10587)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2008-10-01 12:38:24 UTC (rev 10588)
@@ -22,8 +22,11 @@
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
/**
* @author Sergey Dzmitrovich
@@ -127,9 +130,12 @@
}
/**
+ * test for invisible tags
*
* @param elementPagePath
* - path to test page
+ * @param elementId
+ * - id of element on page
* @throws Throwable
*/
protected void performInvisibleTagTest(String elementPagePath,
@@ -191,7 +197,81 @@
}
/**
+ * test for invisible tags which can have visible children
*
+ * @param elementPagePath
+ * - path to test page
+ * @param elementId
+ * - id of element on page
+ * @throws Throwable
+ */
+ protected void performInvisibleWrapperTagTest(String elementPagePath,
+ String elementId) throws Throwable {
+ setException(null);
+
+ IFile elementPageFile = (IFile) TestUtil.getComponentPath(
+ elementPagePath, getTestProjectName());
+
+ IEditorInput input = new FileEditorInput(elementPageFile);
+
+ TestUtil.waitForJobs();
+
+ IEditorPart editor = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().openEditor(input,
+ EDITOR_ID, true);
+
+ assertNotNull(editor);
+
+ TestUtil.waitForJobs();
+
+ VpeController controller = getVpeController((JSPMultiPageEditor) editor);
+
+ // find source element and check if it is not null
+ Element sourceELement = findSourceElementById(controller, elementId);
+ assertNotNull(sourceELement);
+
+ // find visual element and check if it is null
+ nsIDOMElement visualElement = findElementById(controller, elementId);
+ assertNull(visualElement);
+
+ // check children of non-visual
+ NodeList children = sourceELement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ assertNotNull(findNode(controller, child));
+ }
+
+ // set show invisible tag's flag to true
+ controller.getVisualBuilder().setShowInvisibleTags(true);
+ controller.visualRefresh();
+
+ TestUtil.waitForIdle();
+
+ // find visual element and check if it is not null
+ visualElement = findElementById(controller, elementId);
+ assertNotNull(visualElement);
+
+ // generate text for invisible tag
+ String modelInvisibleTagText = generateInvisibleTagText(sourceELement
+ .getNodeName());
+
+ // generate dom document and get root element
+ Element modelElement = TestDomUtil.getDocument(modelInvisibleTagText)
+ .getDocumentElement();
+ assertNotNull(modelElement);
+
+ // compare elements
+ assertEquals(true, TestDomUtil
+ .compareNodes(visualElement, modelElement));
+
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ /**
+ *
* @param tagName
* @return
*/
@@ -222,6 +302,24 @@
}
/**
+ * find visual element by "id" entered in source part of vpe
+ *
+ * @param controller
+ * @param elementId
+ * @return
+ */
+ protected nsIDOMNode findNode(VpeController controller, Node node) {
+
+ VpeNodeMapping nodeMapping = controller.getDomMapping().getNodeMapping(
+ node);
+
+ if (nodeMapping == null)
+ return null;
+
+ return nodeMapping.getVisualNode();
+ }
+
+ /**
* find source element by "id"
*
* @param controller
15 years, 6 months
JBoss Tools SVN: r10587 - trunk/esb/docs/esb_ref_guide/en.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-10-01 08:20:59 -0400 (Wed, 01 Oct 2008)
New Revision: 10587
Modified:
trunk/esb/docs/esb_ref_guide/en/master.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-359
ESB guide was mistakenly merged with Bird, now the changes are fixed, the guide is corrected
Modified: trunk/esb/docs/esb_ref_guide/en/master.xml
===================================================================
--- trunk/esb/docs/esb_ref_guide/en/master.xml 2008-10-01 12:10:07 UTC (rev 10586)
+++ trunk/esb/docs/esb_ref_guide/en/master.xml 2008-10-01 12:20:59 UTC (rev 10587)
@@ -4,26 +4,37 @@
[
<!ENTITY introduction SYSTEM "modules/introduction.xml">
-<!ENTITY birt_support SYSTEM "modules/birt_support.xml">
-<!ENTITY birt_designer SYSTEM "modules/birt_designer.xml">
+<!ENTITY esb_support SYSTEM "modules/esb_support.xml">
+<!ENTITY esb_editor SYSTEM "modules/esb_editor.xml">
-
+<!ENTITY seamlink "../../seam/html_single/index.html">
+<!ENTITY aslink "../../as/html_single/index.html">
+<!ENTITY esblink "../../esb_ref_guide/html_single/index.html">
+<!ENTITY gsglink "../../GettingStartedGuide/html_single/index.html">
+<!ENTITY hibernatelink "../../hibernatetools/html_single/index.html">
+<!ENTITY jbpmlink "../../jbpm/html_single/index.html">
+<!ENTITY jsflink "../../jsf/html_single/index.html">
+<!ENTITY jsfreflink "../../jsf_tools_ref_guide/html_single/index.html">
+<!ENTITY jsftutoriallink "../../jsf_tools_tutorial/html_single/index.html">
+<!ENTITY strutsreflink "../../struts_tools_ref_guide/html_single/index.html">
+<!ENTITY strutstutoriallink "../../struts_tools_tutorial/html_single/index.html">
]>
<book>
<bookinfo>
- <title>Birt Plugin Reference Guide</title>
+ <title>ESB Tools Reference Guide</title>
- <author><firstname>Anastasiya</firstname><surname>Bogachuk</surname><email>abogachuk(a)exadel.com</email></author>
-
+ <author><firstname>Svetlana</firstname><surname>Mukhina</surname><email>smukhina(a)exadel.com</email></author>
+ <author><firstname>Tatyana</firstname><surname>Romanovich</surname></author>
- <pubdate>August 2008</pubdate>
+ <pubdate>April 2008</pubdate>
<copyright>
- <year>2008</year>
+ <year>2007</year>
+ <year>2008</year>
<holder>JBoss, a division of Red Hat Inc.</holder>
</copyright>
<releaseinfo>
- Version: 1.0.0.alpha
+ Version: 3.0.0.alpha
</releaseinfo>
<abstract>
@@ -37,8 +48,7 @@
<toc/>
&introduction;
- &birt_support;
- &birt_designer;
-
+ &esb_support;
+ &esb_editor;
</book>
\ No newline at end of file
15 years, 6 months
JBoss Tools SVN: r10586 - trunk/esb/docs/esb_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-10-01 08:10:07 -0400 (Wed, 01 Oct 2008)
New Revision: 10586
Removed:
trunk/esb/docs/esb_ref_guide/en/modules/birt_designer.xml
trunk/esb/docs/esb_ref_guide/en/modules/birt_support.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-359
ESB guide was mistakenly merged with Bird, now the changes are fixed, the guide is corrected
Deleted: trunk/esb/docs/esb_ref_guide/en/modules/birt_designer.xml
===================================================================
--- trunk/esb/docs/esb_ref_guide/en/modules/birt_designer.xml 2008-10-01 11:33:56 UTC (rev 10585)
+++ trunk/esb/docs/esb_ref_guide/en/modules/birt_designer.xml 2008-10-01 12:10:07 UTC (rev 10586)
@@ -1,213 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="birt_designer" xreflabel="birt_designer">
- <?dbhtml filename="birtDesigner.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss BIRT</keyword>
- <keyword>BIRT</keyword>
- <keyword>BIRT Designer</keyword>
-
- </keywordset>
- </chapterinfo>
-
- <title>BIRT Designer</title>
-
- <para>text here</para>
-
- <section id="esb_file">
-
- <title>ESB File Editor</title>
- <para><property>ESB File Editor</property> is a powerful and customizable tool. ESB File Editor allows developing an
- application using ESB technology.</para>
-
- <para>ESB file editor has two tabs: Tree and Source.</para>
-
- <para>You can switch to Tree. The Tree view for the editor displays all ESB artifacts in a tree format.
- By selecting any node you can see and edit its properties which will appear in the right-hand area. For example, a Provider:</para>
- <figure>
- <title>Tree View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/01_esb_tree_view.png" scale="90"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can easily switch from Tree to Source by selecting the Source tab at the bottom of the editor and work in <link linkend="sourceView">Source view</link>.</para>
-
- <figure id="sourceView">
- <title>Source View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/02_esb_source_view.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The Source view for the editor displays a text content of the ESB file. It is always synchronized with tree view,
- so any changes made in one of the views will immediately appear in the other.</para>
- <para>No matter what view you select, you get full integration with <!--Properties and -->Outline view<!-- views -->.
- For example, you can work in the Source view with the help of the Outline view. The Outline view shows a tree structure of the ESB file.
- Simply select any element in the Outline view and it will jump to the same place in the Source editor,
- so you can navigate through the source code with Outline view.</para>
- <figure>
- <title>Outline View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/03_esb_outline_view.png" scale="70"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Adding, editing or deleting of some artifacts operations are available right in the <property>Tree</property> view. Right-click any node and select one of the available actions in the context menu.
- For example, you can easily add a new provider:</para>
- <para></para>
- <figure>
- <title>Adding new provider</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/04_esb_add_provider.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can easily add a new service too:</para>
- <figure>
- <title>Adding new service</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/05_esb_add_service.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The same way you can create a listener for service and other elements of ESB:</para>
- <figure>
- <title>Adding new listener for service</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/06_esb_add_listener.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The same actions can be done in the right part of <property>Tree</property> view tab
- using <property>Add</property>, <property>Edit</property> and <property>Remove</property> buttons.</para>
- </section>
-
-
-
- <section id="esb_editors_features">
-
- <title>ESB Editors Features</title>
- <para>JBoss ESB tooling has powerful editor features that help you easily make use of content and code assist.</para>
-
- <section id="ESBsyntaxvalidation84">
-
- <title>ESB syntax validation</title>
- <para>When working in JBoss ESB editor you are constantly provided with feedback
- and contextual error checking as you type. In the Source viewer, if at any point a tag is incorrect or incomplete, an error will be indicated next to the line and also in the Problems view below.</para>
- </section>
-
- <section id="ESBSupportXMLSchema">
- <title>Support for XML Schema</title>
-
- <para>JBoss ESB Framework fully
- <link linkend="sourceView">supports XML files based on schemas as well as DTDs</link>.</para>
- </section>
-
- <!--<section id="OpenOnSelection">
-
- <title>OpenOn</title>
-
- <para><property>OpenOn</property> let's you easily navigate through your
- project without using the Package Explorer view (project tree). With OpenOn, you can
- simply click on a reference to another file and that file will be opened.</para>
-
- <para>OpenOn is available for the XML files </para>
-
- <para>Press and hold down the Ctrl key. As you move the mouse cursor over different
- file references in the file, they display an underline. When you have the mouse
- cursor over the name of the file you want to open, click and the file will open
- in its own editor. In this example the managed bean NameBean will open.</para>
-
- </section>
- -->
-
- <section id="ESBContentAssist">
-
- <title>Content Assist for ESB XML file</title>
-
- <para>When you work with any ESB XML file <property>Content Assist</property> is available to help you.
- It provides pop-up tip to help you complete your code statements.
- It allows you to write your code faster and with more accuracy.
- Content assist is always available in the Source mode. Simply type <emphasis>
- <property>Ctrl-Space</property></emphasis> to see what is available.</para>
-
- <para>Content Assist for ESB XML file:</para>
- <figure>
- <title>Content Assist for ESB XML file</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/esb_editor/08_esb_features.png" scale="80"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Content Assist for attributes:</para>
- <figure>
- <title>Content Assist for attributes:</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/esb_editor/09_esb_features.png" scale="80"/>
- </imageobject>
- </mediaobject>
- </figure>
- <!-- </section>
-
- <section id="ContentAssistWithinTreeEditor">
-
- <title>Content Assist within Tree ESB Editor</title>
-
- <para>JBoss Developer Studio also provides Content Assist when working within the Tree ESB editor.
- Just click <emphasis><property>Ctrl-Space</property>.</emphasis></para>
- <figure>
- <title>Content Assist in Tree ESB Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/esb_file/09_editors_features.png" scale="85"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section> -->
- </section>
-
- <section id="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing">
-
- <title>Synchronized Source and Visual Editing</title>
-
- <para>ESB file can be edited in either source
- or extra visual modes at the same time.</para>
-
- <para>JBoss Tools provide you two different editors to speed your development: a graphical view (<property>Tree</property>) and source
- (<property>Source</property>). At the same time, you always have full control over esb source file. Any changes you
- make in the source view will immediately appear in the tree view. Both views are synchronized, you can edit the file in any view.</para>
-
- <figure>
- <title>Two Views are Synchronized</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_editor/10_esb_features.png" scale="70"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <para>The last chapter covers capabilities on how you can use ESB editor.</para>
-
- <para>In summary, this reference supplies you with all necessary information on the functionality
- that JBoss ESB Editor provides for work with JBoss ESB.</para>
- </section>
-</chapter>
Deleted: trunk/esb/docs/esb_ref_guide/en/modules/birt_support.xml
===================================================================
--- trunk/esb/docs/esb_ref_guide/en/modules/birt_support.xml 2008-10-01 11:33:56 UTC (rev 10585)
+++ trunk/esb/docs/esb_ref_guide/en/modules/birt_support.xml 2008-10-01 12:10:07 UTC (rev 10586)
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="esb_support">
- <?dbhtml filename="esb_support.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>BIRT</keyword>
- <keyword>Java</keyword>
- <keyword>JBoss</keyword>
- </keywordset>
- </chapterinfo>
-
- <title>BIRT Support</title>
-
- <para>In this section we will focus more on all concepts that JBoss Tools integrates for
- working with BIRT.</para>
-
- <section>
- <title>BIRT Plugin Installation</title>
-
- <para>This chapter will provide you with detailed information on how to install BIRT plugin into JBoss Developer Studio.</para>
-
- <para>Since BIRT plugin is one of the modules of JBoss Tools project it has a dependence on other modules and will require their pre-installation. </para>
-
- <para>These are the prerequisites to create a web project including Seam and BIRT capabilities:</para>
- <itemizedlist>
- <listitem><para>Eclipse Version 3.4 SDK</para></listitem>
- <listitem><para>DTP Version 1.6 Release</para></listitem>
- <listitem><para>EMF Version 2.4 Release EMF+XSD</para></listitem>
- <listitem><para>GEF Version 3.4 Release runtime</para></listitem>
- <listitem><para>WTP Version 3.0 Release</para></listitem>
- <listitem><para>BIRT Report Designer SDK 2.3.0 Release or BIRT Report Designer 2.3.0 Release <ulink url="http://repository.jboss.org/eclipse/birt/2.3.0/birt-report-framework-2_3_...">download here</ulink></para></listitem>
- <listitem><para>JBoss Application Server 4.2.2 GA</para></listitem>
- <listitem><para>JBoss Seam 2.0.1 GA</para></listitem>
- <listitem><para>BIRT Web Tools Integration <ulink url="http://repository.jboss.org/eclipse/birt/2.3.0/birt-wtp-integration-sdk-2...">download here</ulink></para></listitem>
- <listitem><para>JBoss Tools nightly build</para></listitem>
-
- </itemizedlist>
-
-
-
- </section>
-
-<section>
-
- <title>JBoss BIRT Integration</title>
- <para>To understand Hibernate configuration, integration with Seam, and deployment see <ulink url="http://docs.jboss.org/tools/whatsnew/birt/birt-news-1.0.0.Alpha1.html">JBoss BIRT Integration 1.0.0.alpha1 - New and Noteworthy</ulink>.</para>
-
-</section>
-
- <section>
- <title>Creating a BIRT Report</title>
- <para>In this chapter we suggest a step-by-step walk-through of creating your own BIRT report.</para>
-
- <para>We will show you how to use the Creation wizard for creating a new BIRT report.</para>
-
- <para>Select <emphasis><property>File >New > Other...</property>
- </emphasis> in the main menu bar or context menu for selected project and then <emphasis><property>ESB > ESB File</property></emphasis> in the New dialog:</para>
-
- <figure>
- <title>New Dialog</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_support/01_create_esb.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para> Clicking <emphasis><property>Next</property></emphasis> brings us to the wizard page where it's necessary to specify the
- folder, name and version for the file. We choose, for example, <emphasis><property>jboss-esb.xml</property>
- </emphasis> as the name and accept the selected projects folder and default version.</para>
- <figure>
- <title>Folder, Name and Version</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/esb_support/02_create_esb.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Thus, our file will be created in the selected projects folder by default. If you want to change the folder
- for your future file click <emphasis><property>Browse...</property></emphasis> button to set needed folder or simply type it.</para>
-
- <para>Clicking on <emphasis><property>Finish</property>
- </emphasis> results in the file being generated. The wizard creates one xml file.</para>
-
- </section>
-
-</chapter>
15 years, 6 months
JBoss Tools SVN: r10585 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-10-01 07:33:56 -0400 (Wed, 01 Oct 2008)
New Revision: 10585
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/gsg_faq.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-429 - reconstracting the FAQ;
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/gsg_faq.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/gsg_faq.xml 2008-10-01 11:32:51 UTC (rev 10584)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/gsg_faq.xml 2008-10-01 11:33:56 UTC (rev 10585)
@@ -11,176 +11,182 @@
</keywordset>
</chapterinfo>
<title>FAQ</title>
-
- <para>For more information on <property>JBoss Developer Studio</property> features, refer to the following
- FAQ to get the answers on the most "popular" questions.</para>
-
- <section id="Installation_Issues">
- <title>Installation Issues</title>
- <para>
- <emphasis role="bold">Visual Editor does not start under Linux</emphasis>
- </para>
- <para>Linux users may need to do the following to get the visual editor to work correctly on
- their machines.</para>
-
- <orderedlist>
- <listitem>
- <para>On Red Hat based Linux distributions install the xpLib.i386 package</para>
- </listitem>
- <listitem>
- <para>Type</para>
- <programlisting role="JAVA"><![CDATA[ln -s libstdc++.so.5.0.7 libstdc++.so.5
+
+ <para>For more information on <property>JBoss Developer Studio</property> features, refer to the
+ following FAQ to get the answers on the most "popular" questions.</para>
+
+ <section id="question_1">
+ <title>What should I do if Visual Page Editor does not start under Linux</title>
+
+ <para>Linux users may need to do the following to get the <property>Visual Page
+ Editor</property> to work correctly on their machines.</para>
+
+ <orderedlist>
+ <listitem>
+ <para>On Red Hat based Linux distributions install the xpLib.i386 package</para>
+ </listitem>
+ <listitem>
+ <para>Type</para>
+ <programlisting role="JAVA"><![CDATA[ln -s libstdc++.so.5.0.7 libstdc++.so.5
]]></programlisting>
- </listitem>
- <listitem>
- <para>and/or use</para>
- <programlisting role="JAVA"><![CDATA[yum install libXp
+ </listitem>
+ <listitem>
+ <para>and/or use</para>
+ <programlisting role="JAVA"><![CDATA[yum install libXp
]]></programlisting>
- </listitem>
- <listitem>
- <para>Open the JBDS perspective. If you see the Help view open, close it and restart
- JBDS</para>
- </listitem>
- <listitem>
- <para>If none of these work, do the following:</para>
- <itemizedlist>
- <listitem>
- <para>Clear the Eclipse log file,
+ </listitem>
+ <listitem>
+ <para>Open the JBDS perspective. If you see the Help view open, close it and restart
+ JBDS</para>
+ </listitem>
+ <listitem>
+ <para>If none of these work, do the following:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Clear the Eclipse log file,
<emphasis><workspace>\.metadata\.log</emphasis></para>
- </listitem>
- <listitem>
- <para>Start Eclipse with the -debug option:</para>
- <programlisting role="JAVA"><![CDATA[eclipse -debug
+ </listitem>
+ <listitem>
+ <para>Start Eclipse with the -debug option:</para>
+ <programlisting role="JAVA"><![CDATA[eclipse -debug
]]></programlisting>
- </listitem>
- <listitem>
- <para>Post the Eclipse log file
- (<emphasis><workspace>\.metadata\.log</emphasis>) on the forums.</para>
- </listitem>
- </itemizedlist>
- </listitem>
- </orderedlist>
-
-
- <para>
- <emphasis role="bold">Do I need to have JBoss server installed to run JBoss Developer
- Studio?</emphasis>
- </para>
- <para>No. JBoss Developer Studio already comes bundled with JBoss server. We bundle it together
- so that you don't need to download any additional software and can test your
- application in a Web browser right away.</para>
- <para>If you want to use a different JBoss server installation, after JBoss Developer Studio is
- installed open Servers View (select <emphasis><property>Window > Show View >
- Others > Server > Servers</property>),</emphasis> then right click on this <emphasis>
- <property>view > New > Server</property>
- </emphasis> and follow the wizards steps to point to another Jboss server installation.</para>
- <para>JBoss Developer Studio works with any servlet container, not just JBoss. For more
- information on deployment, please see the Deploying Your Application section.</para>
- </section>
- <section id="Importing_Projects">
- <title>Importing Projects</title>
- <para>
- <emphasis role="bold">I have an existing Seam 1.2.1 project. Can I migrate/import the project to
- a JBDS Seam project?</emphasis>
- </para>
- <para>We highly recommend you to create Seam 1.2.1 project using the JBDS. In other case try to
- do manually:</para>
- <itemizedlist>
- <listitem>
- <para>Create a Seam Web project to get the JBoss tools structure</para>
- </listitem>
- </itemizedlist>
- <para>Then from your Seam 1.2.1 seam-gen project start doing the following:</para>
- <itemizedlist>
- <listitem>
- <para>Copy <property>src</property> to <property>src</property></para>
- </listitem>
- <listitem>
- <para>Copy <property>view</property> to <property>Web content</property></para>
- </listitem>
- <listitem>
- <para>Copy resources individual files to where they are in the seam web project etc.</para>
- </listitem>
- </itemizedlist>
- <para>
- <emphasis role="bold">I have an existing Struts or JSF project. Can I open the project in
- JBDS?</emphasis>
- </para>
- <para>Yes. From main menu select <emphasis>
+ </listitem>
+ <listitem>
+ <para>Post the Eclipse log file
+ (<emphasis><workspace>\.metadata\.log</emphasis>) on
+ the forums.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </orderedlist>
+ </section>
+
+ <section id="question_2">
+ <title>Do I need to have JBoss Server installed to run JBoss Developer Studio?</title>
+
+ <para>No. <property>JBoss Developer Studio</property> already comes bundled with JBoss
+ Server. We bundle it together so that you don't need to download any additional
+ software and can test your application in a Web browser right away.</para>
+ <para>If you want to use a different JBoss server installation, after <property>JBoss Developer Studio</property>
+ is installed open Servers View (select <emphasis><property>Window > Show View
+ > Others > Server > Servers</property>),</emphasis> then
+ right click on this <emphasis>
+ <property>view > New > Server</property>
+ </emphasis> and follow the wizards steps to point to another Jboss Server installation.</para>
+ <para><property>JBoss Developer Studio</property> works with any servlet container, not just JBoss. For more
+ information on deployment, please see the Deploying Your Application section.</para>
+ </section>
+
+ <section id="question_3">
+ <title>I have an existing Seam 1.2.1 project. Can I migrate/import the
+ project to a JBDS Seam project?</title>
+
+ <para>We highly recommend you to create Seam 1.2.1 project using the <property>JBDS</property>. In other case try
+ to do manually:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Create a Seam Web project to get the JBoss tools structure</para>
+ </listitem>
+ </itemizedlist>
+ <para>Then from your Seam 1.2.1 seam-gen project start doing the following:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Copy <property>src</property> to <property>src</property></para>
+ </listitem>
+ <listitem>
+ <para>Copy <property>view</property> to <property>Web content</property></para>
+ </listitem>
+ <listitem>
+ <para>Copy resources individual files to where they are in the seam web project
+ etc.</para>
+ </listitem>
+ </itemizedlist>
+
+ </section>
+ <section id="questio_4">
+ <title>I have an existing Struts or JSF project. Can I open the project
+ in JBDS?</title>
+
+ <para>Yes. From main menu select <emphasis>
<property>File > Import > Other > JSF Project (or Struts
Project)</property>
- </emphasis> and follow wizards steps.</para>
- <para>
- <emphasis role="bold">Can I import a .war file?</emphasis>
- </para>
- <para>Yes. Select <emphasis><property>File > Import > Web > WAR
+ </emphasis> and follow wizards steps.</para>
+
+ </section>
+
+ <section id="question_5">
+ <title>Can I import a .war file?</title>
+
+ <para>Yes. Select <emphasis><property>File > Import > Web > WAR
file</property>, </emphasis> then follow importing steps.</para>
- </section>
- <section id="Troubleshooting">
- <title>Troubleshooting, Problems, Configuration, Error Messages</title>
- <para>
- <emphasis role="bold">Is it possible to increase the performance of Eclipse after installing
- your product?</emphasis>
- </para>
- <para>JBoss Developer Studio preconfigures eclipse via the eclipse.ini file to allocate extra
- memory, but if you for some reason need more memory then by default, you can manually make
- adjustments in this file. For example:</para>
- <programlisting role="XML">
+ </section>
+
+ <section id="question_6">
+ <title>Is it possible to increase the performance of Eclipse after
+ installing your product?</title>
+
+ <para><property>JBoss Developer Studio</property> preconfigures eclipse via the eclipse.ini file to allocate
+ extra memory, but if you for some reason need more memory then by default, you can
+ manually make adjustments in this file. For example:</para>
+ <programlisting role="XML">
<![CDATA[-vmargs -Xms128m -Xmx512m -XX:MaxPermSize=128m
]]></programlisting>
-
- <para>
- <emphasis role="bold">How can I add my own tag library to the JBoss Tools Palette?</emphasis>
- </para>
- <para>See <ulink url="&jsflink;#AddingCustomJSFTagsToTheRedHatPalette7433">Adding Tag
+ </section>
+
+ <section id="question_7">
+ <title>How can I add my own tag library to the JBoss Tools
+ Palette?</title>
+
+ <para>See <ulink url="&jsflink;#AddingCustomJSFTagsToTheRedHatPalette7433">Adding Tag
Libraries</ulink> in Visual Web Tools Guide.</para>
- </section>
-
- <section id="question1">
- <title>How to get Code Assist for Seam specific resources in an externally
- generated project?</title>
-
+ </section>
+
+ <section id="question_8">
+ <title>How to get Code Assist for Seam specific resources in an externally generated
+ project?</title>
+
<para>To get Code Assist for Seam specific resources in an externally generated project, you
should enable Seam features in Project Preferences. Right click an imported project and
navigate <emphasis>
<property>Properties > Seam Settings</property>.</emphasis> Check <emphasis>
- <property>Seam support</property></emphasis> box to enable
- all available <ulink url="&seamlink;#project_pref">Seam Settings</ulink>.</para>
+ <property>Seam support</property>
+ </emphasis> box to enable all available <ulink url="&seamlink;#project_pref">Seam
+ Settings</ulink>.</para>
</section>
-
- <section id="question2">
- <title>How to import an example Seam project from jboss-eap
- directory?</title>
-
+
+ <section id="question_9">
+ <title>How to import an example Seam project from jboss-eap directory?</title>
+
<para>To import an example Seam project from <emphasis>
- <property>jboss-eap</property>
- </emphasis> into your working directory, you should perform the following steps:</para>
-
+ <property>jboss-eap</property>
+ </emphasis> into your working directory, you should perform the following steps:</para>
+
<itemizedlist>
<listitem>
<para>Go to <emphasis>
- <property>New > Other > Java Project from Existing Buildfile</property>
- </emphasis></para>
+ <property>New > Other > Java Project from Existing Buildfile</property>
+ </emphasis></para>
</listitem>
-
+
<listitem>
<para>Point to the <emphasis>
- <property>build.xml</property>
- </emphasis> of any chosen project by pressing <emphasis>
- <property>Browse</property>
- </emphasis> button</para>
+ <property>build.xml</property>
+ </emphasis> of any chosen project by pressing <emphasis>
+ <property>Browse</property>
+ </emphasis> button</para>
</listitem>
-
+
<listitem>
<para>Hit <emphasis>
- <property>Finish</property>
- </emphasis> to open the project</para>
+ <property>Finish</property>
+ </emphasis> to open the project</para>
</listitem>
</itemizedlist>
-
- <para>As these seam examples are non WTP projects, next you should enable Seam support for them.
- To do that, right click the project and go to <emphasis>
+
+ <para>As these seam examples are non WTP projects, next you should enable Seam support for
+ them. To do that, right click the project and go to <emphasis>
<property>Properties > Seam Settings</property>.</emphasis></para>
</section>
-
-</chapter>
\ No newline at end of file
+
+</chapter>
15 years, 6 months
JBoss Tools SVN: r10584 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-10-01 07:32:51 -0400 (Wed, 01 Oct 2008)
New Revision: 10584
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-429 - updating the chapter;
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml 2008-10-01 10:34:50 UTC (rev 10583)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/getting_started.xml 2008-10-01 11:32:51 UTC (rev 10584)
@@ -13,14 +13,14 @@
<section id="intro1">
<title>What is JBDS?</title>
- <para>JBoss Developer Studio is a set of eclipse-based development tools that are pre-configured
- for JBoss Enterprise Middleware Platforms and Red Hat Enterprise Linux. Developers are not
- required to use JBoss Developer Studio to develop on JBoss Enterprise Middleware and/or Red Hat
- Linux. But, many find these pre-configured tools offer significant time-savings and value, making
- them more productive and speeding time to deployment.</para>
- <para>This guide covers the first steps to get started working with JBoss Developer Studio. You
- will learn how to install and configure necessary software for your OS (currently Linux,
- Microsoft Windows or Mac OSX).</para>
+ <para><property>JBoss Developer Studio</property> is a set of eclipse-based development tools that
+ are pre-configured for JBoss Enterprise Middleware Platforms and Red Hat Enterprise Linux.
+ Developers are not required to use <property>JBoss Developer Studio</property> to develop on
+ JBoss Enterprise Middleware and/or Red Hat Linux. But, many find these pre-configured tools offer
+ significant time-savings and value, making them more productive and speeding time to deployment.</para>
+ <para>This guide covers the first steps to get started working with <property>JBoss Developer
+ Studio</property>. You will learn how to install and configure necessary software for your OS
+ (currently Linux, Microsoft Windows or Mac OSX).</para>
<para>Thus this guide will provide you with detailed info on how to start JDK, JBDS and JBoss
Tools.</para>
</section>
@@ -28,10 +28,11 @@
<section id="ConfigJavaEnvironment">
<?dbhtml filename="ConfigJavaEnvironment.html"?>
<title>Configuring Your Java Environment</title>
- <para>You must have a working installation of JDK 5 before you install JBoss Developer Studio.
- Currently it will only fully work with a 32-bit JVM, not a 64-bit JVM. On a 64-bit JVM the visual
- editor fails to launch because of feature of OS architecture. Thus in this guide we will show you
- how to install a 32-bit Sun JDK 5.0 on a Linux Platform and Microsoft Windows Platform.</para>
+ <para>You must have a working installation of JDK 5 before you install <property>JBoss Developer
+ Studio</property>. Currently it will only fully work with a 32-bit JVM, not a 64-bit JVM. On a
+ 64-bit JVM the visual editor fails to launch because of feature of OS architecture. Thus in this
+ guide we will show you how to install a 32-bit Sun JDK 5.0 on a Linux Platform and Microsoft
+ Windows Platform.</para>
<section id="InstallJDK50onLinux">
<title>Installing and Configuring 32-bit Sun JDK 5.0 on Linux</title>
@@ -72,8 +73,8 @@
<title>Note:</title>
<para>If you have JDK already installed and added in your system path, you should add
- <emphasis>$JAVA_HOME/bin</emphasis> before the old <emphasis>$PATH</emphasis> (not after it) so that the new
- version of JDK can be found first, i. e. <para>
+ <emphasis>$JAVA_HOME/bin</emphasis> before the old <emphasis>$PATH</emphasis> (not after it)
+ so that the new version of JDK can be found first, i. e. <para>
<emphasis>export PATH=$JAVA_HOME/bin:$PATH</emphasis>
</para> This way, the machine will pick up the new JVM first. You only need to run
"alternative" as a safe guard for the right JVM. </para>
@@ -170,9 +171,17 @@
<para>
<emphasis>C:\Program Files\Java\jdk1.5.0_11\jre\bin</emphasis>
</para>
- <para>To do this, open the Control Panel from the Start Menu, switch to Classic View if
- necessary, open the System Control Panel applet (System), select the Advanced Tab, and click on
- the Environment Variables button.</para>
+ <para>To do this, open the <emphasis>
+ <property>Control Panel</property>
+ </emphasis> from the <emphasis>
+ <property>Start</property>
+ </emphasis> menu, switch to Classic View if necessary, open the System Control Panel applet (<emphasis>
+ <property>System</property>
+ </emphasis>), select the <emphasis>
+ <property>Advanced</property>
+ </emphasis> Tab, and click on the <emphasis>
+ <property>Environment Variables</property>
+ </emphasis> button.</para>
<para>Now, when 32-bit Sun JDK 5.0 has been successfully installed, we can pass on to the next
step.</para>
</section>
@@ -182,129 +191,143 @@
<section id="InstallingJBDS">
<?dbhtml filename="InstallingRHDS.html"?>
<title>JBoss Developer Studio Installation</title>
- <para>This chapter will provide you with detailed information on how to install JBoss Developer
- Studio and all the JBoss Tools modules.</para>
- <section id="Instfromdownver">
- <title>Installing from the downloaded version</title>
- <para>Let's start with the JBDS installation.</para>
- <para>JBDS comes with a simple installer, bundled with tested/pre-configured versions of Eclipse,
- WTP, JBossEAP, Seam, and SpringIDE. Thus, to start perform the next steps:</para>
+ <para>This chapter will provide you with detailed information on how to install <property>JBoss
+ Developer Studio</property>.</para>
- <itemizedlist>
- <listitem>
- <para>First of all you need the appropriate installation file for your platform from <ulink
- url="https://www.redhat.com/apps/store/developers/jboss_developer_studio.html">Red Hat website</ulink>.</para>
- </listitem>
- <listitem>
- <para>Then run in console:</para>
- <programlisting role="JAVA"><![CDATA[java -jar jbdevstudio-linux-gtk-1.1.0.GA.jar
+ <para>JBDS comes with a simple installer, bundled with tested/pre-configured versions of Eclipse,
+ WTP, JBossEAP, Seam, and SpringIDE. Thus, to start perform the next steps:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>First of all you need the appropriate installation file for your platform from <ulink
+ url="https://www.redhat.com/apps/store/developers/jboss_developer_studio.html">Red Hat
+ website</ulink>.</para>
+ </listitem>
+ <listitem>
+ <para>Then run in console:</para>
+ <programlisting role="JAVA"><![CDATA[java -jar jbdevstudio-linux-gtk-1.1.0.GA.jar
]]></programlisting>
- </listitem>
- <listitem>
- <para>Follow the instructions presented by the installation wizard</para>
- </listitem>
- </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>Follow the instructions presented by the installation wizard</para>
+ </listitem>
+ </itemizedlist>
- <figure>
- <title>JBoss Developer Studio Installation Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/getting_started/getting_started_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>JBoss Developer Studio Installation Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <itemizedlist>
- <listitem>
- <para>Provide the installation path</para>
- </listitem>
- <listitem>
- <para>Select Java VM</para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>Provide the installation path</para>
+ </listitem>
+ <listitem>
+ <para>Select Java VM</para>
+ </listitem>
+ </itemizedlist>
- <figure>
- <title>Select Java VM</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/getting_started/getting_started_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Select Java VM</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>Selecting <emphasis>
+ <tip>
+ <title>Tip:</title>
+ <para>By selecting <emphasis>
<property>Default Java VM</property>
</emphasis> you set default Java VM of your system (to verify your Java environment, type
"java -version" in console).</para>
- <para>Selecting <emphasis>
- <property>Specific Java VM</property>
- </emphasis> you can provide the path to non-default Java VM.</para>
+ </tip>
- <note>
- <title>Note:</title>
- <para>JBoss Developer Studio needs Java 5 and "gij" isn't available
- on every platform.</para>
- </note>
+ <para>Selecting <emphasis>
+ <property>Specific Java VM</property>
+ </emphasis> you can provide the path to non-default Java VM.</para>
- <itemizedlist>
- <listitem>
- <para>Installation process includes <ulink
- url="http://www.jboss.com/products/platforms/application">JBoss Enterprise Application
- Platform</ulink>. Select <emphasis>
- <property>Yes</property>
- </emphasis> to use it in JBoss Developer Studio.</para>
- </listitem>
- </itemizedlist>
+ <note>
+ <title>Note:</title>
+ <para>JBoss Developer Studio needs Java 5 and "gij" isn't available on
+ every platform.</para>
+ </note>
- <para/>
+ <itemizedlist>
+ <listitem>
+ <para>Installation process includes <ulink
+ url="http://www.jboss.com/products/platforms/application">JBoss Enterprise Application
+ Platform</ulink>. Select <emphasis>
+ <property>Yes</property>
+ </emphasis> to use it in JBoss Developer Studio.</para>
+ </listitem>
+ </itemizedlist>
- <figure>
- <title>JBoss Enterprise Application Platform Installing</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/getting_started/getting_started_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para/>
- <note>
- <title>Note:</title>
- <para>The installer installs JBoss Enterprise Application Platform for running your applications
- if you select this option during the installation process. If you want to use a different
- server than ours, you can change the setting in JBoss Developer Studio.</para>
- </note>
+ <para/>
- <itemizedlist>
- <listitem>
- <para>Check your installation paths and see the components to install. If you'd like to change
- something, press <emphasis>
- <property>Previous</property>
- </emphasis> button. Click <emphasis>
- <property>Next</property>
- </emphasis> to start installation. </para>
- </listitem>
- </itemizedlist>
+ <figure>
+ <title>JBoss Enterprise Application Platform Installing</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para/>
+ <note>
+ <title>Note:</title>
+ <para>The installer installs JBoss Enterprise Application Platform for running your applications
+ if you select this option during the installation process. If you want to use a different server
+ than ours, you can change the setting in JBoss Developer Studio.</para>
+ </note>
- <para/>
+ <itemizedlist>
+ <listitem>
+ <para>Check your installation paths and see the components to install. If you'd like to change
+ something, press <emphasis>
+ <property>Previous</property>
+ </emphasis> button. Click <emphasis>
+ <property>Next</property>
+ </emphasis> to start installation. </para>
+ </listitem>
+ </itemizedlist>
- <figure>
- <title>Summary Information</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/getting_started/getting_started_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <para/>
- </section>
+ <figure>
+ <title>Summary Information</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="jbds_jbosstools">
+
+ <title>JBoss Developer Studio and JBoss Tools</title>
+
+ <para>This section uncovers the points on the differences between <property>JBoss Developer
+ Studio</property> and <property>JBoss Tools</property> and provides the steps on <property>JBoss
+ Tools</property> installation as well.</para>
+
<section id="WhatDifferenceBetweenJBDSAndJBossTools">
- <title>What is the difference between JBoss Developer Studio and JBoss Tools</title>
- <para>This release of JBoss Tools is what went into our JBoss Developer Studio which provides an
- easy-to-install Eclipse based IDE fully configured and ready to run with the bundled JBoss
- Enterprise Application Platform.</para>
- <para>In short JBoss Tools are just a set of Eclipse plugins and JBoss Developer Studio adds:</para>
+ <title>What is the difference?</title>
+
+ <para><property>JBoss Tools</property> is what went into our <property>JBoss Developer
+ Studio</property> which comes as an easy-to-install Eclipse based IDE fully configured and ready
+ to run with the bundled <property>JBoss Enterprise Application Platform</property>.</para>
+
+ <para>In short <property>JBoss Tools</property> are just a set of Eclipse plugins and
+ <property>JBoss Developer Studio</property> adds:</para>
<itemizedlist>
<listitem>
<para>An installer</para>
@@ -327,110 +350,109 @@
</itemizedlist>
<para> For additional information see <ulink url="http://www.jboss.com/products/devstudio"
>JBoss.com</ulink></para>
+ </section>
- <section id="JBossToolsInstall" role="updated">
- <title>JBoss Tools Installation</title>
- <para>Here, let's consider the installation of the <property>JBoss Tools</property>
- modules.</para>
- <para>JBoss Tools is an umbrella project for the JBoss developed plugins that will make it into
- JBoss Developer Studio. The JBoss Tools modules are:</para>
- <itemizedlist>
- <listitem>
- <para>JBoss AS Tools</para>
- </listitem>
- <listitem>
- <para>Seam Tools</para>
- </listitem>
- <listitem>
- <para>Hibernate Tools</para>
- </listitem>
- <listitem>
- <para>Visual Page Editor</para>
- </listitem>
- <listitem>
- <para>JST Tools</para>
- </listitem>
- <listitem>
- <para>JBPM Tools</para>
- </listitem>
- </itemizedlist>
+ <section id="JBossToolsInstall" role="updated">
+ <title>JBoss Tools Installation</title>
+ <para>Here, let's consider the installation of the <property>JBoss Tools</property>
+ modules.</para>
+ <para><property>JBoss Tools</property> is an umbrella project for the JBoss developed plugins
+ that will make it into <property>JBoss Developer Studio</property>. The JBoss Tools modules are:</para>
+ <itemizedlist>
+ <listitem>
+ <para>JBoss AS Tools</para>
+ </listitem>
+ <listitem>
+ <para>Seam Tools</para>
+ </listitem>
+ <listitem>
+ <para>Hibernate Tools</para>
+ </listitem>
+ <listitem>
+ <para>Visual Page Editor</para>
+ </listitem>
+ <listitem>
+ <para>JST Tools</para>
+ </listitem>
+ <listitem>
+ <para>JBPM Tools</para>
+ </listitem>
+ </itemizedlist>
- <para>To install the JBoss Tools plugins for Eclipse, you need the following:</para>
+ <para>To install the JBoss Tools plugins for Eclipse, you need the following:</para>
- <itemizedlist>
- <listitem>
- <para>Get Eclipse and Web Tools</para>
- </listitem>
- </itemizedlist>
- <para>The currant version of JBoss Tools (3.0.0 Alpha) targets at Eclipse 3.4/Ganymede and WTP
- 3.0.</para>
+ <itemizedlist>
+ <listitem>
+ <para>Get Eclipse and Web Tools</para>
+ </listitem>
+ </itemizedlist>
+ <para>The currant version of JBoss Tools (3.0.0Alpha1) targets at Eclipse 3.4/Ganymede and WTP
+ 3.0.</para>
- <tip>
- <title>Tip:</title>
- <para>We recommend you do not use Eclipse.org update site to go from Eclipse 3.3 to Eclipse
- 3.4. Instead we suggest that you download the full binary from <ulink
- url="http://www.eclipse.org/downloads/">here</ulink>.</para>
- </tip>
+ <tip>
+ <title>Tip:</title>
+ <para>We recommend you do not use Eclipse.org update site to go from Eclipse 3.3 to Eclipse 3.4.
+ Instead we suggest that you download the full binary from <ulink
+ url="http://www.eclipse.org/downloads/">here</ulink>.</para>
+ </tip>
- <para>If you can only use Eclipse 3.3 use <ulink
- url="http://www.jboss.org/tools/download/index.html#stable">JBoss Tools 2.1.2</ulink>, but
- JBoss Tools 2.x will not have any of the new features.</para>
+ <para>If you can only use Eclipse 3.3 use <ulink
+ url="http://www.jboss.org/tools/download/index.html#stable">JBoss Tools 2.1.2</ulink>, but
+ JBoss Tools 2.x will not have any of the new features.</para>
- <note>
- <title>Note:</title>
- <para>Remember to choose the download that matches your OS and use Java 5 when you run
- it.</para>
- </note>
+ <note>
+ <title>Note:</title>
+ <para>Remember to choose the download that matches your OS and use Java 5 when you run
+ it.</para>
+ </note>
- <itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>Get the <ulink url="http://download.jboss.org/jbosstools/builds/nightly/latestBuild.html"
+ >latest JBoss Tools build</ulink></para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Some of our newer plugins, like TPTP and BIRT, need additional drivers. On the left side of
+ the download page you can find all of the required drivers for chosen build and their versions.</para>
+ <para>Instead of downloading the nightly build version manually, it's also possible to
+ get the latest release of <property>JBoss Tools</property> from one of our update sites: <itemizedlist>
<listitem>
- <para>Get the <ulink
- url="http://download.jboss.org/jbosstools/builds/nightly/latestBuild.html">latest JBoss
- Tools build</ulink></para>
+ <para>Stable Updates: <ulink url="http://download.jboss.org/jbosstools/updates/stable"
+ >http://download.jboss.org/jbosstools/updates/stable</ulink></para>
</listitem>
- </itemizedlist>
-
- <para>Some of our newer plugins, like TPTP and BIRT, need additional drivers. On the left side
- of the download page you can find all of the required drivers for chosen build and their
- versions.</para>
- <para>Instead of downloading the nightly build version manually, it's also possible to
- get the latest release of <property>JBoss Tools</property> from one of our update sites: <itemizedlist>
- <listitem>
- <para>Stable Updates: <ulink url="http://download.jboss.org/jbosstools/updates/stable"
- >http://download.jboss.org/jbosstools/updates/stable</ulink></para>
- </listitem>
- <listitem>
- <para> Development Updates: <ulink
- url="http://download.jboss.org/jbosstools/updates/development"
- >http://download.jboss.org/jbosstools/updates/development</ulink></para>
- </listitem>
- </itemizedlist>
- </para>
-
- <itemizedlist>
<listitem>
- <para>Finally, install the build</para>
+ <para> Development Updates: <ulink
+ url="http://download.jboss.org/jbosstools/updates/development"
+ >http://download.jboss.org/jbosstools/updates/development</ulink></para>
</listitem>
</itemizedlist>
+ </para>
- <para>Unzip the file(s) directly into your Eclipse <emphasis>
- <property>plugins/features</property>
- </emphasis> directory and it will be readily available. It might be necessary to start Eclipse
- with eclipse -clean to make sure it starts clean and rereads the new list of plugins.</para>
+ <itemizedlist>
+ <listitem>
+ <para>Finally, install the build</para>
+ </listitem>
+ </itemizedlist>
- <para>If you need to install any standalone plug-in from JBoss Tools visit a <ulink
- url="http://labs.jboss.com/wiki/InstallingJBossTools">JBoss Tools Wiki</ulink> page to read
- about dependencies between standalone plug-ins.</para>
- </section>
+ <para>Unzip the file(s) directly into your Eclipse <emphasis>
+ <property>plugins/features</property>
+ </emphasis> directory and it will be readily available. It might be necessary to start Eclipse
+ with eclipse -clean to make sure it starts clean and rereads the new list of plugins.</para>
+ <para>If you need to install any standalone plug-in from JBoss Tools visit a <ulink
+ url="http://labs.jboss.com/wiki/InstallingJBossTools">JBoss Tools Wiki</ulink> page to read
+ about dependencies between standalone plug-ins.</para>
</section>
+
</section>
<section id="Welcome">
<title>Welcome to JBoss Developer Studio</title>
- <para>In this section we'll show you how to work with the welcome page of the JBoss Developer
- Studio.</para>
- <para>The welcome page is the first page you see when you first launch JBoss Developer Studio. </para>
+ <para>In this section we'll show you how to work with the welcome page of the <property>JBoss
+ Developer Studio</property>.</para>
+ <para>The welcome page is the first page you see when you first launch <property>JBoss Developer
+ Studio</property>. </para>
<figure>
<title>Welcome to JBoss Developer Studio</title>
@@ -505,9 +527,9 @@
</mediaobject>
</figure>
- <para>Start work with JBoss Developer Studio by clicking on <emphasis>
+ <para>Start work with <property>JBoss Developer Studio</property> by clicking on <emphasis>
<property>Workbench</property>
- </emphasis> button or simply close the welcome page.</para>
+ </emphasis> button or simply close the Welcome page.</para>
</section>
@@ -522,10 +544,11 @@
<title>Uninstalling</title>
<itemizedlist>
<listitem>
- <para>Make sure JBoss Developer Studio is not running</para>
+ <para>Make sure <property>JBoss Developer Studio</property> is not running</para>
</listitem>
<listitem>
- <para>Uninstall your current version of JBoss Developer Studio by running uninstaller</para>
+ <para>Uninstall your current version of <property>JBoss Developer Studio</property> by running
+ Uninstaller</para>
</listitem>
</itemizedlist>
</section>
@@ -550,7 +573,7 @@
</orderedlist>
</section>
-
+
<section id="OtherRelevantResourcesOnTheTopic33">
<?dbhtml filename="OtherRelevantResourcesOnTheTopic33.html"?>
<title>Other relevant resources on the topic</title>
@@ -559,7 +582,9 @@
<para>Forum: <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258">JBoss
Forum</ulink></para>
- <para>Download: <ulink url="http://www.jboss.com/products/devstudio">JBDS Download</ulink></para>
+ <para>Subscription: <ulink
+ url="https://www.redhat.com/apps/store/developers/jboss_developer_studio.html">JBDS
+ Subscription</ulink></para>
<para>The latest documentation builds are available <ulink
url="http://download.jboss.org/jbosstools/nightly-docs/">here</ulink>.</para>
15 years, 6 months