JBoss Tools SVN: r20904 - in trunk: jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-03-18 07:35:56 -0400 (Thu, 18 Mar 2010)
New Revision: 20904
Added:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/CompareUtils.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/templates/SetTemplateForUnknownTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java
Log:
Added CompareUtils.java
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/templates/SetTemplateForUnknownTagTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/templates/SetTemplateForUnknownTagTest.java 2010-03-18 11:32:31 UTC (rev 20903)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/templates/SetTemplateForUnknownTagTest.java 2010-03-18 11:35:56 UTC (rev 20904)
@@ -5,6 +5,7 @@
import org.jboss.tools.jsf.ui.bot.test.CSSStyleDialogVariables;
import org.jboss.tools.jsf.ui.bot.test.JSFAutoTestCase;
import org.jboss.tools.jsf.ui.bot.test.UnknownTagDialogVariables;
+import org.jboss.tools.ui.bot.ext.CompareUtils;
import org.jboss.tools.ui.bot.test.WidgetVariables;
public class SetTemplateForUnknownTagTest extends JSFAutoTestCase {
@@ -40,10 +41,13 @@
bot.textWithLabel(UnknownTagDialogVariables.TAG_STYLE_FIELD).setText("color:red");//$NON-NLS-1$
bot.buttonWithTooltip(UnknownTagDialogVariables.EDIT_TAG_STYLE_TIP).click();
String returnValue = setStyles();
- assertEquals("font-family:Arial;color:black;", returnValue);//$NON-NLS-1$
- bot.button(WidgetVariables.OK_BUTTON).click();
- bot.shell(WidgetVariables.PREF_FILTER_SHELL_TITLE).activate();
- bot.button(WidgetVariables.OK_BUTTON).click();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+ bot.shell(WidgetVariables.PREF_FILTER_SHELL_TITLE).activate();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+ assertTrue("Atttributes are not as expexted:\n"
+ + "Expected: " + "font-family:Arial;color:black;"
+ + "Value: " + returnValue
+ ,CompareUtils.compareStyleAttributes("font-family:Arial;color:black;", returnValue));//$NON-NLS-1$
checkVPE("templates/SetTemplateForUnknownTag.xml");//$NON-NLS-1$
}
@@ -52,16 +56,22 @@
bot.shell(WidgetVariables.PREF_FILTER_SHELL_TITLE).activate();
bot.tabItem(WidgetVariables.VPE_TEMPLATES_TAB).activate();
bot.table().select(0);
- checkTable(bot.table());
- bot.button(WidgetVariables.EDIT_BUTTON).click();
- bot.shell(UnknownTagDialogVariables.DIALOG_TITLE).activate();
- bot.textWithLabel(UnknownTagDialogVariables.TAG_URI_FIELD).setText(""); //$NON-NLS-1$
- bot.checkBoxWithLabel(UnknownTagDialogVariables.ALLOW_CHILDREN_CHECKBOX).click();
- bot.textWithLabel(UnknownTagDialogVariables.VALUE_FIELD).setText(""); //$NON-NLS-1$
- bot.textWithLabel(UnknownTagDialogVariables.TAG_STYLE_FIELD).setText(""); //$NON-NLS-1$
- bot.button(WidgetVariables.OK_BUTTON).click();
- bot.shell(WidgetVariables.PREF_FILTER_SHELL_TITLE).activate();
- bot.button(WidgetVariables.OK_BUTTON).click();
+ try {
+ checkTable(bot.table());
+ bot.button(WidgetVariables.EDIT_BUTTON).click();
+ bot.shell(UnknownTagDialogVariables.DIALOG_TITLE).activate();
+ bot.textWithLabel(UnknownTagDialogVariables.TAG_URI_FIELD).setText(""); //$NON-NLS-1$
+ bot.checkBoxWithLabel(UnknownTagDialogVariables.ALLOW_CHILDREN_CHECKBOX)
+ .click();
+ bot.textWithLabel(UnknownTagDialogVariables.VALUE_FIELD).setText(""); //$NON-NLS-1$
+ bot.textWithLabel(UnknownTagDialogVariables.TAG_STYLE_FIELD).setText(""); //$NON-NLS-1$
+ bot.button(WidgetVariables.OK_BUTTON).click();
+ } catch (Throwable t) {
+ throw t;
+ } finally {
+ bot.shell(WidgetVariables.PREF_FILTER_SHELL_TITLE).activate();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+ }
checkVPE("templates/EditedTemplateForUnknownTag.xml"); //$NON-NLS-1$
}
Added: trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/CompareUtils.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/CompareUtils.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/CompareUtils.java 2010-03-18 11:35:56 UTC (rev 20904)
@@ -0,0 +1,111 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.ui.bot.ext;
+/**
+ * Utils for Css Tests
+ * @author Vladimir Pakan
+ */
+public class CompareUtils {
+ /**
+ * Compare style attributes
+ * @param attrs1
+ * @param attrs2
+ * @return
+ */
+ public static boolean compareStyleAttributes(String attrs1 , String attrs2){
+
+ boolean result = false;
+
+ if (attrs1 != null && attrs2 != null){
+ String[] attrs1Split = attrs1.trim().split(";");
+ String[] attrs2Split = attrs2.trim().split(";");
+ if (attrs1Split.length == attrs2Split.length){
+ if(attrs1Split.length > 0){
+ boolean equals = true;
+ for (int index = 0 ; equals && index < attrs1Split.length ; index++){
+ equals = CompareUtils.compareInAttrsList(attrs1Split[index],attrs2Split);
+ if (equals){
+ equals = CompareUtils.compareInAttrsList(attrs2Split[index],attrs1Split);
+ }
+ }
+ result = equals;
+ }
+ else{
+ result = true;
+ }
+ }
+ else{
+ result = false;
+ }
+ }
+ else{
+ result = (attrs1 == null) && (attrs2 == null);
+ }
+
+ return result;
+
+ }
+ /**
+ * Compare style attribute
+ * @param attr1
+ * @param attr2
+ * @return
+ */
+ private static boolean compareStyleAttribute (String attr1 , String attr2){
+
+ boolean result = false;
+
+ if (attr1 != null && attr2 != null){
+ String[] attr1Split = attr1.trim().split(":");
+ String[] attr2Split = attr2.trim().split(":");
+ if (attr1Split.length == attr2Split.length){
+ if(attr1Split.length > 0){
+ boolean equals = true;
+ for (int index = 0 ; equals && index < attr1Split.length ; index++){
+ equals = attr1Split[index].trim().equals(attr2Split[index].trim());
+ }
+ result = equals;
+ }
+ else{
+ result = true;
+ }
+ }
+ else{
+ result = false;
+ }
+ }
+ else{
+ result = (attr1 == null) && (attr2 == null);
+ }
+
+ return result;
+
+ }
+ /**
+ * Search for attr in attrsList and compare values
+ * @param attr
+ * @param attrsList
+ * @return
+ */
+ private static boolean compareInAttrsList (String attr , String[] attrsList){
+
+ boolean result = false;
+
+ for (int index = 0 ; !result && index < attrsList.length ; index++){
+ result = CompareUtils.compareStyleAttribute(attr, attrsList[index]);
+ }
+
+ return result;
+
+ }
+
+}
Property changes on: trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/CompareUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java 2010-03-18 11:32:31 UTC (rev 20903)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java 2010-03-18 11:35:56 UTC (rev 20904)
@@ -22,6 +22,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jboss.tools.common.model.util.XMLUtil;
+import org.jboss.tools.ui.bot.ext.CompareUtils;
import org.jboss.tools.vpe.editor.util.Constants;
import org.mozilla.interfaces.nsIDOMAttr;
import org.mozilla.interfaces.nsIDOMNamedNodeMap;
@@ -263,10 +264,18 @@
nsIDOMAttr vpeAttr = (nsIDOMAttr) vpeAttributes.getNamedItem(
name).queryInterface(nsIDOMAttr.NS_IDOMATTR_IID);
+
+ String modelAttribute = modelAttr.getNodeValue().trim();
+ String vpeAttribute = vpeAttr.getNodeValue().trim();
+ try{
+ compareComplexStrings(modelAttribute,vpeAttribute);
+ } catch (ComparisonException ce){
+ // Try to compare as list of parameters
+ if (!CompareUtils.compareStyleAttributes(modelAttribute, vpeAttribute)){
+ throw ce;
+ }
+ }
- compareComplexStrings(modelAttr.getNodeValue().trim(),
- vpeAttr.getNodeValue().trim());
-
}
}
}
14 years, 7 months
JBoss Tools SVN: r20903 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-03-18 07:32:31 -0400 (Thu, 18 Mar 2010)
New Revision: 20903
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
Log:
Added displaynsIDOMNode() method for debug purposes
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java 2010-03-18 11:30:41 UTC (rev 20902)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java 2010-03-18 11:32:31 UTC (rev 20903)
@@ -24,7 +24,9 @@
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNamedNodeMap;
import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -310,7 +312,44 @@
Node testBodyNode = xmlTestDocument.getElementsByTagName("BODY").item(0); //$NON-NLS-1$
TestDomUtil.compareNodes(visualBodyNode, testBodyNode);
}
-
+ /**
+ * For debug purposes. Displays formatted node
+ * @param node
+ */
+ private void displaynsIDOMNode(nsIDOMNode node) {
+ System.out.println("");
+ System.out.print("<" + node.getNodeName() + " ");
+
+ // compare node's attributes
+ if (node.getNodeType() == Node.ELEMENT_NODE) {
+ nsIDOMNamedNodeMap modelAttributes = node.getAttributes();
+ for (int i = 0; i < modelAttributes.getLength(); i++) {
+ nsIDOMNode modelAttr = modelAttributes.item(i);
+ System.out.print(modelAttr.getNodeName() + "=" + modelAttr.getNodeValue() + " ");
+ }
+ }
+ System.out.println(">");
+ if (node.getNodeValue() != null){
+ System.out.println(node.getNodeValue());
+ }
+ // compare children
+ nsIDOMNodeList children = node.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+
+ nsIDOMNode child = children.item(i);
+
+ // leave out empty text nodes in test dom model
+ if ((child.getNodeType() == Node.TEXT_NODE)
+ && ((child.getNodeValue() == null) || (child.getNodeValue().trim()
+ .length() == 0)))
+ continue;
+
+ displaynsIDOMNode(child);
+
+ }
+ System.out.println("<" + node.getNodeName() + "/>");
+ }
+
/**
* Try to close all unnecessary dialogs, that could prevent next tests fails
*/
14 years, 7 months
JBoss Tools SVN: r20902 - trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-03-18 07:30:41 -0400 (Thu, 18 Mar 2010)
New Revision: 20902
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java
Log:
Expand Attribute node before selection styleClass property within Properties window
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java 2010-03-18 11:29:27 UTC (rev 20901)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java 2010-03-18 11:30:41 UTC (rev 20902)
@@ -5,6 +5,7 @@
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.jsf.ui.bot.test.JSFAutoTestCase;
import org.jboss.tools.ui.bot.test.WidgetVariables;
@@ -92,8 +93,9 @@
delay();
SWTBot innerBot = bot.viewByTitle(WidgetVariables.PROPERTIES).bot();
SWTBotTree tree = innerBot.tree();
- tree.getAllItems()[0].getNode("styleClass").select(); //$NON-NLS-1$
- tree.getAllItems()[0].getNode("styleClass").click(); //$NON-NLS-1$
+ SWTBotTreeItem tiStyleClass = tree.getAllItems()[0].expand().getNode("styleClass");
+ tiStyleClass.select(); //$NON-NLS-1$
+ tiStyleClass.click(); //$NON-NLS-1$
bot.button("...").click(); //$NON-NLS-1$
}
14 years, 7 months
JBoss Tools SVN: r20901 - trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-03-18 07:29:27 -0400 (Thu, 18 Mar 2010)
New Revision: 20901
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAutoTestCase.java
Log:
Fix getPathToResources() method.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAutoTestCase.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAutoTestCase.java 2010-03-18 05:13:43 UTC (rev 20900)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/JSFAutoTestCase.java 2010-03-18 11:29:27 UTC (rev 20901)
@@ -1,5 +1,6 @@
package org.jboss.tools.jsf.ui.bot.test;
+import java.io.File;
import java.io.IOException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
@@ -32,9 +33,19 @@
@Override
protected String getPathToResources(String testPage) throws IOException {
- return FileLocator
+ String filePath = FileLocator
.toFileURL(
Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile() + "resources/" + testPage; //$NON-NLS-1$ //$NON-NLS-2$
+
+ File file = new File(filePath);
+ if (!file.exists() || !file.isFile()) {
+ filePath = FileLocator
+ .toFileURL(
+ Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile() + testPage; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ return filePath;
+
}
protected void openTestPage() {
14 years, 7 months
JBoss Tools SVN: r20900 - branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-18 01:13:43 -0400 (Thu, 18 Mar 2010)
New Revision: 20900
Modified:
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml
Log:
updated
Modified: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml 2010-03-18 05:13:24 UTC (rev 20899)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml 2010-03-18 05:13:43 UTC (rev 20900)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="getting_started" xreflabel="getting_started">
-<?dbhtml filename="getting_started.html"?>
+<chapter id="chap-update_site_configuration">
+<?dbhtml filename="update_site_configuration.html"?>
<chapterinfo>
<keywordset>
<keyword>JBoss Developer Studio</keyword>
@@ -9,9 +9,17 @@
<keyword>JBoss</keyword>
</keywordset>
</chapterinfo>
- <title>Getting started</title>
+ <title>Update site configuration</title>
- <section id="sect-getting_started-Upgrading_using_the_update_site">
+ <section id="sect-update_site_configuration-Username_and_password">
+ <title>Update site username and password</title>
+ <para>
+ Updating JBoss Developer Studio using the update site requires a username and password to be
+entered by the user as described in <xref linkend="proc-Adding_Update_Sites"/>. These details, and
+consequently the ability to update using the update site, are provided to customers of JBoss Developer Studio. Information presented here regarding the addition of an update site and configuring automated updates can be applied to the installation of plug-ins in general.
+ </para>
+ </section>
+ <section id="sect-update_site_configuration-Upgrading_using_the_update_site">
<title>Upgrading using the update site</title>
<para>
JBoss Developer Studio provides the facility to update from version 3.0.x to the the latest code fixes and enhancements without the need to download a complete installation. Updating can be achieved by adding the relevant remote update site to the list of available software sites then performing manual or scheduled updates. At present, the update site contains the latest 3.0.0.GA build so performing an update at this stage will leave your installation unchanged.
@@ -19,7 +27,7 @@
<para>
<xref linkend="proc-Adding_Update_Sites"/> describes how to add the update site to the list of available sites. Configuring JBoss Developer Studio to check for and download updates is outlined in <xref linkend="proc-Configuring_Automatic_Updates"/>. Manual updates can be performed by selecting <menuchoice><guimenu>Help</guimenu><guisubmenu>Check For Updates</guisubmenu></menuchoice>.
</para>
- <section id="sect-getting_started-Upgrading_using_the_update_site-Adding_the_update_site">
+ <section id="sect-update_site_configuration-Upgrading_using_the_update_site-Adding_the_update_site">
<title>Adding the update site</title>
<!--
@@ -175,7 +183,7 @@
</para>
</note>
</section>
- <section id="sect-getting_started-Upgrading_using_the_update_site-Automatic_updates">
+ <section id="sect-update_site_configuration-Upgrading_using_the_update_site-Automatic_updates">
<title>Automatic updates</title>
<procedure id="proc-Configuring_Automatic_Updates">
<title>Automatic Updates</title>
14 years, 7 months
JBoss Tools SVN: r20899 - trunk/documentation/guides/Update_Guide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-18 01:13:24 -0400 (Thu, 18 Mar 2010)
New Revision: 20899
Modified:
trunk/documentation/guides/Update_Guide/en-US/Update.xml
Log:
updated
Modified: trunk/documentation/guides/Update_Guide/en-US/Update.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Update.xml 2010-03-18 03:03:36 UTC (rev 20898)
+++ trunk/documentation/guides/Update_Guide/en-US/Update.xml 2010-03-18 05:13:24 UTC (rev 20899)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="getting_started" xreflabel="getting_started">
-<?dbhtml filename="getting_started.html"?>
+<chapter id="chap-update_site_configuration">
+<?dbhtml filename="update_site_configuration.html"?>
<chapterinfo>
<keywordset>
<keyword>JBoss Developer Studio</keyword>
@@ -9,9 +9,17 @@
<keyword>JBoss</keyword>
</keywordset>
</chapterinfo>
- <title>Getting started</title>
+ <title>Update site configuration</title>
- <section id="sect-getting_started-Upgrading_using_the_update_site">
+ <section id="sect-update_site_configuration-Username_and_password">
+ <title>Update site username and password</title>
+ <para>
+ Updating JBoss Developer Studio using the update site requires a username and password to be
+entered by the user as described in <xref linkend="proc-Adding_Update_Sites"/>. These details, and
+consequently the ability to update using the update site, are provided to customers of JBoss Developer Studio. Information presented here regarding the addition of an update site and configuring automated updates can be applied to the installation of plug-ins in general.
+ </para>
+ </section>
+ <section id="sect-update_site_configuration-Upgrading_using_the_update_site">
<title>Upgrading using the update site</title>
<para>
JBoss Developer Studio provides the facility to update from version 3.0.x to the the latest code fixes and enhancements without the need to download a complete installation. Updating can be achieved by adding the relevant remote update site to the list of available software sites then performing manual or scheduled updates. At present, the update site contains the latest 3.0.0.GA build so performing an update at this stage will leave your installation unchanged.
@@ -19,7 +27,7 @@
<para>
<xref linkend="proc-Adding_Update_Sites"/> describes how to add the update site to the list of available sites. Configuring JBoss Developer Studio to check for and download updates is outlined in <xref linkend="proc-Configuring_Automatic_Updates"/>. Manual updates can be performed by selecting <menuchoice><guimenu>Help</guimenu><guisubmenu>Check For Updates</guisubmenu></menuchoice>.
</para>
- <section id="sect-getting_started-Upgrading_using_the_update_site-Adding_the_update_site">
+ <section id="sect-update_site_configuration-Upgrading_using_the_update_site-Adding_the_update_site">
<title>Adding the update site</title>
<!--
@@ -175,7 +183,7 @@
</para>
</note>
</section>
- <section id="sect-getting_started-Upgrading_using_the_update_site-Automatic_updates">
+ <section id="sect-update_site_configuration-Upgrading_using_the_update_site-Automatic_updates">
<title>Automatic updates</title>
<procedure id="proc-Configuring_Automatic_Updates">
<title>Automatic Updates</title>
14 years, 7 months
JBoss Tools SVN: r20898 - in trunk/documentation/guides: Update_Guide and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-17 23:03:36 -0400 (Wed, 17 Mar 2010)
New Revision: 20898
Added:
trunk/documentation/guides/Update_Guide/
trunk/documentation/guides/Update_Guide/en-US/
trunk/documentation/guides/Update_Guide/en-US/Author_Group.xml
trunk/documentation/guides/Update_Guide/en-US/Book_Info.xml
trunk/documentation/guides/Update_Guide/en-US/Preface.xml
trunk/documentation/guides/Update_Guide/en-US/Revision_History.xml
trunk/documentation/guides/Update_Guide/en-US/Update.xml
trunk/documentation/guides/Update_Guide/en-US/Update_Guide.ent
trunk/documentation/guides/Update_Guide/en-US/Update_Guide.xml
trunk/documentation/guides/Update_Guide/en-US/images/
trunk/documentation/guides/Update_Guide/en-US/images/favicon0.ico
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_01.png
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_02.png
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Automatic-Update_01.png
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_0.png
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_1.png
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_2.png
trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_3.png
trunk/documentation/guides/Update_Guide/en-US/master.xml
trunk/documentation/guides/Update_Guide/pom.xml
trunk/documentation/guides/Update_Guide/publican.cfg
Log:
adding new book
Added: trunk/documentation/guides/Update_Guide/en-US/Author_Group.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Author_Group.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/Author_Group.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<authorgroup>
+ <author>
+ <firstname>Ben</firstname>
+ <surname>Clare</surname>
+ <email>bclare(a)redhat.com</email>
+ </author>
+</authorgroup>
Added: trunk/documentation/guides/Update_Guide/en-US/Book_Info.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Book_Info.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/Book_Info.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<bookinfo>
+ <title>Update Guide</title>
+ <subtitle>Updating from 3.0 to 3.0.x</subtitle>
+ <productname>JBoss Developer Studio</productname>
+ <productnumber>3.0</productnumber>
+ <edition>1.0</edition>
+ <pubsnumber>0</pubsnumber>
+ <abstract>
+ <para>
+ The Update Guide explains how to upgrade from the JBoss Developer Studio 3.0
+ </para>
+ </abstract>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="Common_Content/images/title_logo.svg" format="SVG"></imagedata>
+ </imageobject>
+ </inlinemediaobject>
+ </corpauthor>
+ <xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+</bookinfo>
Added: trunk/documentation/guides/Update_Guide/en-US/Preface.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Preface.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/Preface.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<preface>
+ <title>Preface</title>
+ <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ </xi:fallback>
+ </xi:include>
+</preface>
Added: trunk/documentation/guides/Update_Guide/en-US/Revision_History.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Revision_History.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/Revision_History.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<appendix>
+ <title>Revision History</title>
+ <simpara>
+ <revhistory>
+ <revision>
+ <revnumber>0</revnumber>
+ <date>Wed Mar 17 2010</date>
+ <author>
+ <firstname>Ben</firstname>
+ <surname>Clare</surname>
+ <email>bclare(a)redhat.com</email>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>Initial compilation of book</member>
+ </simplelist>
+ </revdescription>
+ </revision>
+ </revhistory>
+ </simpara>
+</appendix>
Added: trunk/documentation/guides/Update_Guide/en-US/Update.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Update.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/Update.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,334 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="getting_started" xreflabel="getting_started">
+<?dbhtml filename="getting_started.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Getting started</title>
+
+ <section id="sect-getting_started-Upgrading_using_the_update_site">
+ <title>Upgrading using the update site</title>
+ <para>
+ JBoss Developer Studio provides the facility to update from version 3.0.x to the the latest code fixes and enhancements without the need to download a complete installation. Updating can be achieved by adding the relevant remote update site to the list of available software sites then performing manual or scheduled updates. At present, the update site contains the latest 3.0.0.GA build so performing an update at this stage will leave your installation unchanged.
+ </para>
+ <para>
+ <xref linkend="proc-Adding_Update_Sites"/> describes how to add the update site to the list of available sites. Configuring JBoss Developer Studio to check for and download updates is outlined in <xref linkend="proc-Configuring_Automatic_Updates"/>. Manual updates can be performed by selecting <menuchoice><guimenu>Help</guimenu><guisubmenu>Check For Updates</guisubmenu></menuchoice>.
+ </para>
+ <section id="sect-getting_started-Upgrading_using_the_update_site-Adding_the_update_site">
+ <title>Adding the update site</title>
+
+ <!--
+ <para>
+ Upgrading <application>JBoss Developer Studio</application> from version 3.0 to 3.0.x can be achieved by adding the relevant remote update site to the list of available software sites. This will require entering a username and password which are currently <literal>username</literal> and <literal>password</literal>. Software sites can be added according to the following procedure:
+ </para>
+ -->
+ <procedure id="proc-Adding_Update_Sites">
+ <title>Adding an Update Site</title>
+ <step>
+ <title>Access the Install dialog box</title>
+ <para>
+ Select <menuchoice><guimenu>Help</guimenu><guisubmenu>Install New Software</guisubmenu></menuchoice>
+ </para>
+ </step>
+ <step>
+ <title>Enter the site information</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Click the <menuchoice><guibutton>Add</guibutton></menuchoice> button.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Enter a name for the update site such as JBDS3.0 in the <guilabel>Name</guilabel> field.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Enter the <acronym>url</acronym> of the update site (<ulink url="https://devstudio.jboss.com/updates/3.0/">https://devstudio.jboss.com/updates/3.0/</ulink>) in the <guilabel>Location</guilabel> field.
+ </para>
+ <figure id="figure-Add-Site_01">
+ <title>Add Site Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/migration-guide/Add-Site_01.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Add Site</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ <note><title>Note: Update site information</title>
+ <para>
+ Information pertaining to the update site can be obtained by entering the url in a browser.
+ </para>
+ </note>
+ </listitem>
+
+ </orderedlist>
+ </step>
+ <step>
+ <title>Add the site</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Once the entered details have been verified, click the <menuchoice><guibutton>OK</guibutton></menuchoice> button to begin the installation.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Enter the username and password when prompted.
+ </para>
+ <figure id="figure-Add-Site_02">
+ <title>Enter Login Details</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/migration-guide/Add-Site_02.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Login Details</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </orderedlist>
+ <para>
+ The plug-in details are retrieved by <application>JBoss Developer Studio</application> and the available plug-ins will be displayed in the main window of the <guilabel>Install</guilabel> dialog box.
+ </para>
+ </step>
+ <step>
+ <title>Select the plug-ins</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Choose the required plug-ins and any <guilabel>Optional</guilabel> plug-ins listed by clicking the relevant checkboxes. Sub-items can be selected or deselected as required.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Click the <guibutton>Next</guibutton> button.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ <step>
+ <title>Review the plug-ins</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ The plug-ins to be installed will be displayed in the <guilabel>Install Details</guilabel> screen.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Choose the <guibutton>Next</guibutton> button to continue the installation or the <guibutton>Back</guibutton> button to revise the selection.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ <step>
+ <title>Review the licenses</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Read the license information presented on the screen. Click on the <guibutton>I accept</guibutton> radio button to proceed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Choose the <guibutton>Finish</guibutton> button to complete the installation or the <guibutton>Back</guibutton> button to revise the selection.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ <!--
+ <step>
+ <title>Note any security warnings</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Read the security warning. Click the <guibutton>Details</guibutton> button to obtain further details if required.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Once satisfied that the software is safe to install, click the <guibutton>OK</guibutton> button to accept the installation.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ -->
+ <step><title>Restart <application>JBoss Developer Studio</application></title>
+ <para>
+ When prompted, it is recommended to restart <application>JBoss Developer Studio</application> by clicking the <guibutton>Yes</guibutton> button.
+ </para>
+ </step>
+ </procedure>
+ <note><title>Download Delays</title>
+ <para>
+ In the event that delays are experienced while downloading the plug-ins due to a slow mirror or bandwidth issues, it is possible to shut down JBoss Developer Studio and restart the procedure from Step 1. Any errors returned during the subsequent installation attempt can be ignored as they will be resolved once the installation is completed.
+ </para>
+ </note>
+ </section>
+ <section id="sect-getting_started-Upgrading_using_the_update_site-Automatic_updates">
+ <title>Automatic updates</title>
+ <procedure id="proc-Configuring_Automatic_Updates">
+ <title>Automatic Updates</title>
+ <step>
+ <title>Access the <guilabel>Preferences</guilabel> dialog</title>
+ <para>
+ Select <menuchoice><guimenu>Window</guimenu><guisubmenu>Preferences</guisubmenu></menuchoice>
+ </para>
+ </step>
+ <step>
+ <title>Access the Install/Update Options</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Click the arrow adjacent to the <menuchoice><guibutton>Install/Update</guibutton></menuchoice> label in the left panel of the display. This will display the <guilabel>Automatic Updates</guilabel> and <guilabel>Available Software Sites</guilabel> options.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Click on the <guilabel>Automatically find new updates and notify me</guilabel> checkbox.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Configure the <guilabel>Update Schedule</guilabel>, <guilabel>Download Options</guilabel> and <guilabel>When updates are found</guilabel> options to suit your preferences.
+ </para>
+ <figure id="figure-Automatic-Update_01">
+ <title>Automatic Updates</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/migration-guide/Automatic-Update_01.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Configure Automatic Updates</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>
+ Click on the <guilabel>OK</guilabel> button to schedule the updates.
+ </para>
+ <note><title>Note: Available Software Sites</title>
+ <para>
+ Update sites can also be added by selecting <guilabel>Available Software Sites</guilabel> and clicking on the <guibutton>Add</guibutton> button of the resultant screen. The <guibutton>Add</guibutton> action is equivalent to Step 2 of <xref linkend="proc-Adding_Update_Sites"/>.
+ </para>
+ </note>
+ </listitem>
+
+ </orderedlist>
+ </step>
+ </procedure>
+ </section>
+
+ <!--
+ <note><title>Unsigned Software</title>
+ <para>
+ The installation of plug-ins often involves unsigned content for which the validity of the software cannot be established. There are risks associated with the use of unsigned software and it is recommended that users acquaint themselves with the risks prior to finalising the installation.
+ </para>
+ </note>
+ -->
+ <!-- Keeping the original material for now bc.
+ <orderedlist>
+ <listitem>
+ <para>Start the JBoss Developer Studio
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ , then go to Help > Software Updates... >
+ Available Software > Manage Sites... > Add...
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Paste in the following URL:
+ <ulink url="https://devstudio.jboss.com/updates/2.1/">https://devstudio.jboss.com/updates/2.1/
+ </ulink>
+ </para>
+ <note>
+ <para>On some platforms, you may also be able to drag and drop
+ the link from your browser directly into Eclipse.
+ </para>
+ </note>
+ <figure>
+ <title>Help > Software Updates... > Available Software > Manage
+ Sites... > Add...</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_0.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>
+ Enter your username and password. You may be prompted twice.
+ </para>
+ <figure>
+ <title>Password Required</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_1.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>
+ Select features to update or install, then click Install...
+ </para>
+ <figure>
+ <title>Select features to install</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_2.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>
+ Install. Restart when prompted.
+ </para>
+ <figure>
+ <title>Installing...</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_3.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>If the install gets stuck on a particular jar download
+ (bandwidth saturation, slow mirror, etc.), you can shut down JBDS
+ and try again.
+ Ignore any errors you get when starting the second
+ time - a completed install should resolve them so that when you
+ restart the third time you will be ready to go.
+ </para>
+ </listitem>
+ </orderedlist>
+ <note>
+ <para>
+ Installation of EAP 5 is not covered by this migration guide. See
+ <ulink url="http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/">http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/</ulink> for full details.
+ </para>
+ </note>
+ -->
+ </section>
+</chapter>
Added: trunk/documentation/guides/Update_Guide/en-US/Update_Guide.ent
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Update_Guide.ent (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/Update_Guide.ent 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,4 @@
+<!ENTITY PRODUCT "JBoss">
+<!ENTITY BOOKID "Update_Guide">
+<!ENTITY YEAR "2010">
+<!ENTITY HOLDER "Red Hat">
Added: trunk/documentation/guides/Update_Guide/en-US/Update_Guide.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/Update_Guide.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/Update_Guide.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<book>
+<xi:include href="Book_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Update.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+</book>
Added: trunk/documentation/guides/Update_Guide/en-US/images/favicon0.ico
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/favicon0.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_01.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_01.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_02.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_02.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Automatic-Update_01.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/Automatic-Update_01.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_0.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_0.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/Update_Guide/en-US/master.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/en-US/master.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/en-US/master.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+"http://www.docbook.org/xml/4.3/docbookx.dtd"
+[
+<!ENTITY migration-guide SYSTEM "Update.xml">
+
+]>
+
+<book>
+ <bookinfo>
+ <title>JBoss Developer Studio Update Guide for 3.0 to 3.0.x</title>
+ <pubdate>March 2010</pubdate>
+ <copyright>
+ <year>2010</year>
+ <holder>JBoss by Red Hat</holder>
+ </copyright>
+ <releaseinfo>Version: 3.0.0.GA</releaseinfo>
+</bookinfo>
+ <toc/>
+
+&migration-guide;
+</book>
Added: trunk/documentation/guides/Update_Guide/pom.xml
===================================================================
--- trunk/documentation/guides/Update_Guide/pom.xml (rev 0)
+++ trunk/documentation/guides/Update_Guide/pom.xml 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,146 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>getting-started-guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Getting_Started_Guide</name>
+
+ <profiles>
+ <profile>
+ <id>release</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseJBDS</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release-nomarker.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release-nomarker.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ <cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/com/css/</cssdir>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>diffmk</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-diff.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-diff.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf-diff.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ </profiles>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
+ <extensions>true</extensions>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>jbosstools-docbook-xslt</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xmlgraphics</groupId>
+ <artifactId>fop</artifactId>
+ <version>0.95</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDocumentName>${master}</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en-US</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en-US</directory>
+ <includes>
+ <include>images/**/*</include>
+ <include>database.zip</include>
+ </includes>
+ </imageResource>
+ <cssResource>
+ <directory>${pom.basedir}/${cssdir}</directory>
+ </cssResource>
+
+ <formats>
+ <!--format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>${xsl-pdf}</stylesheetResource>
+ <finalName>${pom.name}.pdf</finalName>
+ </format-->
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>${xsl-chunked}</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>${xsl-single}</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/com/jboss/tools/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+
+ <options>
+ <useRelativeImageUris>
+ true
+ </useRelativeImageUris>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ </build>
+
+ <properties>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ <stylesdir>../../../documentation/jbosstools-docbook-xslt/src/main/resources/</stylesdir>
+ <cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/com/css/</cssdir>
+ <stylesdir>../../../documentation/jbosstools-docbook-xslt/src/main/resources/</stylesdir>
+ <master>master.xml</master>
+ <translation>en-US</translation>
+ </properties>
+
+</project>
Added: trunk/documentation/guides/Update_Guide/publican.cfg
===================================================================
--- trunk/documentation/guides/Update_Guide/publican.cfg (rev 0)
+++ trunk/documentation/guides/Update_Guide/publican.cfg 2010-03-18 03:03:36 UTC (rev 20898)
@@ -0,0 +1,7 @@
+# Config::Simple 4.59
+# Fri Nov 20 13:19:45 2009
+
+xml_lang: en-US
+type: Book
+brand: JBoss
+
14 years, 7 months
JBoss Tools SVN: r20897 - in branches/jbosstools-3.1.x/documentation/guides: Update_Guide and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-17 23:03:05 -0400 (Wed, 17 Mar 2010)
New Revision: 20897
Added:
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Author_Group.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Book_Info.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Preface.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Revision_History.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.ent
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/favicon0.ico
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_01.png
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_02.png
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Automatic-Update_01.png
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_0.png
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_1.png
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_2.png
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_3.png
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/master.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/pom.xml
branches/jbosstools-3.1.x/documentation/guides/Update_Guide/publican.cfg
Log:
adding new book
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Author_Group.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Author_Group.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Author_Group.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<authorgroup>
+ <author>
+ <firstname>Ben</firstname>
+ <surname>Clare</surname>
+ <email>bclare(a)redhat.com</email>
+ </author>
+</authorgroup>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Book_Info.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Book_Info.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Book_Info.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<bookinfo>
+ <title>Update Guide</title>
+ <subtitle>Updating from 3.0 to 3.0.x</subtitle>
+ <productname>JBoss Developer Studio</productname>
+ <productnumber>3.0</productnumber>
+ <edition>1.0</edition>
+ <pubsnumber>0</pubsnumber>
+ <abstract>
+ <para>
+ The Update Guide explains how to upgrade from the JBoss Developer Studio 3.0
+ </para>
+ </abstract>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="Common_Content/images/title_logo.svg" format="SVG"></imagedata>
+ </imageobject>
+ </inlinemediaobject>
+ </corpauthor>
+ <xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+</bookinfo>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Preface.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Preface.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Preface.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<preface>
+ <title>Preface</title>
+ <xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ </xi:fallback>
+ </xi:include>
+</preface>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Revision_History.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Revision_History.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Revision_History.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<appendix>
+ <title>Revision History</title>
+ <simpara>
+ <revhistory>
+ <revision>
+ <revnumber>0</revnumber>
+ <date>Wed Mar 17 2010</date>
+ <author>
+ <firstname>Ben</firstname>
+ <surname>Clare</surname>
+ <email>bclare(a)redhat.com</email>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>Initial compilation of book</member>
+ </simplelist>
+ </revdescription>
+ </revision>
+ </revhistory>
+ </simpara>
+</appendix>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,334 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="getting_started" xreflabel="getting_started">
+<?dbhtml filename="getting_started.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Getting started</title>
+
+ <section id="sect-getting_started-Upgrading_using_the_update_site">
+ <title>Upgrading using the update site</title>
+ <para>
+ JBoss Developer Studio provides the facility to update from version 3.0.x to the the latest code fixes and enhancements without the need to download a complete installation. Updating can be achieved by adding the relevant remote update site to the list of available software sites then performing manual or scheduled updates. At present, the update site contains the latest 3.0.0.GA build so performing an update at this stage will leave your installation unchanged.
+ </para>
+ <para>
+ <xref linkend="proc-Adding_Update_Sites"/> describes how to add the update site to the list of available sites. Configuring JBoss Developer Studio to check for and download updates is outlined in <xref linkend="proc-Configuring_Automatic_Updates"/>. Manual updates can be performed by selecting <menuchoice><guimenu>Help</guimenu><guisubmenu>Check For Updates</guisubmenu></menuchoice>.
+ </para>
+ <section id="sect-getting_started-Upgrading_using_the_update_site-Adding_the_update_site">
+ <title>Adding the update site</title>
+
+ <!--
+ <para>
+ Upgrading <application>JBoss Developer Studio</application> from version 3.0 to 3.0.x can be achieved by adding the relevant remote update site to the list of available software sites. This will require entering a username and password which are currently <literal>username</literal> and <literal>password</literal>. Software sites can be added according to the following procedure:
+ </para>
+ -->
+ <procedure id="proc-Adding_Update_Sites">
+ <title>Adding an Update Site</title>
+ <step>
+ <title>Access the Install dialog box</title>
+ <para>
+ Select <menuchoice><guimenu>Help</guimenu><guisubmenu>Install New Software</guisubmenu></menuchoice>
+ </para>
+ </step>
+ <step>
+ <title>Enter the site information</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Click the <menuchoice><guibutton>Add</guibutton></menuchoice> button.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Enter a name for the update site such as JBDS3.0 in the <guilabel>Name</guilabel> field.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Enter the <acronym>url</acronym> of the update site (<ulink url="https://devstudio.jboss.com/updates/3.0/">https://devstudio.jboss.com/updates/3.0/</ulink>) in the <guilabel>Location</guilabel> field.
+ </para>
+ <figure id="figure-Add-Site_01">
+ <title>Add Site Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/migration-guide/Add-Site_01.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Add Site</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ <note><title>Note: Update site information</title>
+ <para>
+ Information pertaining to the update site can be obtained by entering the url in a browser.
+ </para>
+ </note>
+ </listitem>
+
+ </orderedlist>
+ </step>
+ <step>
+ <title>Add the site</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Once the entered details have been verified, click the <menuchoice><guibutton>OK</guibutton></menuchoice> button to begin the installation.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Enter the username and password when prompted.
+ </para>
+ <figure id="figure-Add-Site_02">
+ <title>Enter Login Details</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/migration-guide/Add-Site_02.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Login Details</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </orderedlist>
+ <para>
+ The plug-in details are retrieved by <application>JBoss Developer Studio</application> and the available plug-ins will be displayed in the main window of the <guilabel>Install</guilabel> dialog box.
+ </para>
+ </step>
+ <step>
+ <title>Select the plug-ins</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Choose the required plug-ins and any <guilabel>Optional</guilabel> plug-ins listed by clicking the relevant checkboxes. Sub-items can be selected or deselected as required.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Click the <guibutton>Next</guibutton> button.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ <step>
+ <title>Review the plug-ins</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ The plug-ins to be installed will be displayed in the <guilabel>Install Details</guilabel> screen.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Choose the <guibutton>Next</guibutton> button to continue the installation or the <guibutton>Back</guibutton> button to revise the selection.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ <step>
+ <title>Review the licenses</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Read the license information presented on the screen. Click on the <guibutton>I accept</guibutton> radio button to proceed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Choose the <guibutton>Finish</guibutton> button to complete the installation or the <guibutton>Back</guibutton> button to revise the selection.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ <!--
+ <step>
+ <title>Note any security warnings</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Read the security warning. Click the <guibutton>Details</guibutton> button to obtain further details if required.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Once satisfied that the software is safe to install, click the <guibutton>OK</guibutton> button to accept the installation.
+ </para>
+ </listitem>
+ </orderedlist>
+ </step>
+ -->
+ <step><title>Restart <application>JBoss Developer Studio</application></title>
+ <para>
+ When prompted, it is recommended to restart <application>JBoss Developer Studio</application> by clicking the <guibutton>Yes</guibutton> button.
+ </para>
+ </step>
+ </procedure>
+ <note><title>Download Delays</title>
+ <para>
+ In the event that delays are experienced while downloading the plug-ins due to a slow mirror or bandwidth issues, it is possible to shut down JBoss Developer Studio and restart the procedure from Step 1. Any errors returned during the subsequent installation attempt can be ignored as they will be resolved once the installation is completed.
+ </para>
+ </note>
+ </section>
+ <section id="sect-getting_started-Upgrading_using_the_update_site-Automatic_updates">
+ <title>Automatic updates</title>
+ <procedure id="proc-Configuring_Automatic_Updates">
+ <title>Automatic Updates</title>
+ <step>
+ <title>Access the <guilabel>Preferences</guilabel> dialog</title>
+ <para>
+ Select <menuchoice><guimenu>Window</guimenu><guisubmenu>Preferences</guisubmenu></menuchoice>
+ </para>
+ </step>
+ <step>
+ <title>Access the Install/Update Options</title>
+ <orderedlist numeration="loweralpha">
+ <listitem>
+ <para>
+ Click the arrow adjacent to the <menuchoice><guibutton>Install/Update</guibutton></menuchoice> label in the left panel of the display. This will display the <guilabel>Automatic Updates</guilabel> and <guilabel>Available Software Sites</guilabel> options.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Click on the <guilabel>Automatically find new updates and notify me</guilabel> checkbox.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Configure the <guilabel>Update Schedule</guilabel>, <guilabel>Download Options</guilabel> and <guilabel>When updates are found</guilabel> options to suit your preferences.
+ </para>
+ <figure id="figure-Automatic-Update_01">
+ <title>Automatic Updates</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/migration-guide/Automatic-Update_01.png" format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Configure Automatic Updates</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>
+ Click on the <guilabel>OK</guilabel> button to schedule the updates.
+ </para>
+ <note><title>Note: Available Software Sites</title>
+ <para>
+ Update sites can also be added by selecting <guilabel>Available Software Sites</guilabel> and clicking on the <guibutton>Add</guibutton> button of the resultant screen. The <guibutton>Add</guibutton> action is equivalent to Step 2 of <xref linkend="proc-Adding_Update_Sites"/>.
+ </para>
+ </note>
+ </listitem>
+
+ </orderedlist>
+ </step>
+ </procedure>
+ </section>
+
+ <!--
+ <note><title>Unsigned Software</title>
+ <para>
+ The installation of plug-ins often involves unsigned content for which the validity of the software cannot be established. There are risks associated with the use of unsigned software and it is recommended that users acquaint themselves with the risks prior to finalising the installation.
+ </para>
+ </note>
+ -->
+ <!-- Keeping the original material for now bc.
+ <orderedlist>
+ <listitem>
+ <para>Start the JBoss Developer Studio
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ , then go to Help > Software Updates... >
+ Available Software > Manage Sites... > Add...
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Paste in the following URL:
+ <ulink url="https://devstudio.jboss.com/updates/2.1/">https://devstudio.jboss.com/updates/2.1/
+ </ulink>
+ </para>
+ <note>
+ <para>On some platforms, you may also be able to drag and drop
+ the link from your browser directly into Eclipse.
+ </para>
+ </note>
+ <figure>
+ <title>Help > Software Updates... > Available Software > Manage
+ Sites... > Add...</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_0.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>
+ Enter your username and password. You may be prompted twice.
+ </para>
+ <figure>
+ <title>Password Required</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_1.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>
+ Select features to update or install, then click Install...
+ </para>
+ <figure>
+ <title>Select features to install</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_2.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>
+ Install. Restart when prompted.
+ </para>
+ <figure>
+ <title>Installing...</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/upgrade-guide/migration-guide_3.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+
+ <listitem>
+ <para>If the install gets stuck on a particular jar download
+ (bandwidth saturation, slow mirror, etc.), you can shut down JBDS
+ and try again.
+ Ignore any errors you get when starting the second
+ time - a completed install should resolve them so that when you
+ restart the third time you will be ready to go.
+ </para>
+ </listitem>
+ </orderedlist>
+ <note>
+ <para>
+ Installation of EAP 5 is not covered by this migration guide. See
+ <ulink url="http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/">http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/</ulink> for full details.
+ </para>
+ </note>
+ -->
+ </section>
+</chapter>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.ent
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.ent (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.ent 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,4 @@
+<!ENTITY PRODUCT "JBoss">
+<!ENTITY BOOKID "Update_Guide">
+<!ENTITY YEAR "2010">
+<!ENTITY HOLDER "Red Hat">
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/Update_Guide.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<book>
+<xi:include href="Book_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Update.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+</book>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/favicon0.ico
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/favicon0.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_01.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_01.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_02.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Add-Site_02.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Automatic-Update_01.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/Automatic-Update_01.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_0.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_0.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_1.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_2.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_3.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/images/migration-guide/migration-guide_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/master.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/master.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/en-US/master.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+"http://www.docbook.org/xml/4.3/docbookx.dtd"
+[
+<!ENTITY migration-guide SYSTEM "Update.xml">
+
+]>
+
+<book>
+ <bookinfo>
+ <title>JBoss Developer Studio Update Guide for 3.0 to 3.0.x</title>
+ <pubdate>March 2010</pubdate>
+ <copyright>
+ <year>2010</year>
+ <holder>JBoss by Red Hat</holder>
+ </copyright>
+ <releaseinfo>Version: 3.0.0.GA</releaseinfo>
+</bookinfo>
+ <toc/>
+
+&migration-guide;
+</book>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/pom.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/pom.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/pom.xml 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,146 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>getting-started-guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Getting_Started_Guide</name>
+
+ <profiles>
+ <profile>
+ <id>release</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ <profile>
+ <id>releaseJBDS</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release-nomarker.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release-nomarker.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ <cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/com/css/</cssdir>
+ </properties>
+ </profile>
+
+ <profile>
+ <id>diffmk</id>
+ <properties>
+ <master>master_output.xml</master>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-diff.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-diff.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf-diff.xsl</xsl-pdf>
+ </properties>
+ </profile>
+ </profiles>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
+ <extensions>true</extensions>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jboss</groupId>
+ <artifactId>jbossent-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.1.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>jbosstools-docbook-xslt</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xmlgraphics</groupId>
+ <artifactId>fop</artifactId>
+ <version>0.95</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDocumentName>${master}</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en-US</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en-US</directory>
+ <includes>
+ <include>images/**/*</include>
+ <include>database.zip</include>
+ </includes>
+ </imageResource>
+ <cssResource>
+ <directory>${pom.basedir}/${cssdir}</directory>
+ </cssResource>
+
+ <formats>
+ <!--format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>${xsl-pdf}</stylesheetResource>
+ <finalName>${pom.name}.pdf</finalName>
+ </format-->
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>${xsl-chunked}</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>${xsl-single}</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/com/jboss/tools/eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+
+ <options>
+ <useRelativeImageUris>
+ true
+ </useRelativeImageUris>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ </build>
+
+ <properties>
+ <xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single.xsl</xsl-single>
+ <xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml.xsl</xsl-chunked>
+ <xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
+ <stylesdir>../../../documentation/jbosstools-docbook-xslt/src/main/resources/</stylesdir>
+ <cssdir>../../../documentation/jbosstools-jdocbook-style/src/main/com/css/</cssdir>
+ <stylesdir>../../../documentation/jbosstools-docbook-xslt/src/main/resources/</stylesdir>
+ <master>master.xml</master>
+ <translation>en-US</translation>
+ </properties>
+
+</project>
Added: branches/jbosstools-3.1.x/documentation/guides/Update_Guide/publican.cfg
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Update_Guide/publican.cfg (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Update_Guide/publican.cfg 2010-03-18 03:03:05 UTC (rev 20897)
@@ -0,0 +1,7 @@
+# Config::Simple 4.59
+# Fri Nov 20 13:19:45 2009
+
+xml_lang: en-US
+type: Book
+brand: JBoss
+
14 years, 7 months
JBoss Tools SVN: r20896 - in trunk: common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2010-03-17 13:34:43 -0400 (Wed, 17 Mar 2010)
New Revision: 20896
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/GlobalElVariablesComposite.java
Removed:
trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java
Modified:
trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/ELVariablesPreferencePage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5867 , class has been moved and import dependency removed from plugin manifest
Modified: trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF 2010-03-17 17:10:31 UTC (rev 20895)
+++ trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF 2010-03-17 17:34:43 UTC (rev 20896)
@@ -10,7 +10,6 @@
Bundle-Activator: org.jboss.tools.common.el.ui.ElUiPlugin
Require-Bundle: org.eclipse.ui,
org.jboss.tools.common.el.core,
- org.jboss.tools.common.resref.ui,
org.jboss.tools.common.model.ui,
org.eclipse.jdt.ui;bundle-version="[3.5.0,4.0.0)",
org.eclipse.ui.ide;bundle-version="[3.5.0,4.0.0)",
@@ -19,4 +18,4 @@
org.jboss.tools.common.ui
Bundle-Vendor: %Bundle-Vendor.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Import-Package: org.jboss.tools.vpe.resref.core
+
Deleted: trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java 2010-03-17 17:10:31 UTC (rev 20895)
+++ trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java 2010-03-17 17:34:43 UTC (rev 20896)
@@ -1,93 +0,0 @@
-/*******************************************************************************
- * 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.common.el.ui;
-
-import java.util.List;
-
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.ui.PlatformUI;
-import org.jboss.tools.common.el.core.GlobalELReferenceList;
-import org.jboss.tools.common.resref.core.ResourceReference;
-import org.jboss.tools.common.resref.core.ResourceReferenceList;
-import org.jboss.tools.common.resref.ui.ResourceReferencesTableProvider;
-import org.jboss.tools.vpe.resref.core.AbstractResourceReferencesComposite;
-import org.jboss.tools.vpe.resref.core.GlobalELReferenceWizardDialog;
-import org.jboss.tools.vpe.resref.core.ReferenceWizardDialog;
-
-
-/**
- * Composite class for the global el variables.
- * @author Evgenij Stherbin
- *
- */
-public class GlobalElVariablesComposite extends AbstractResourceReferencesComposite {
-
- /**
- * @see org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#createTableProvider(java.util.List)
- */
- @Override
- protected ResourceReferencesTableProvider createTableProvider(List dataList) {
- return ResourceReferencesTableProvider.getGlobalELTableProvider(dataList);
- }
-
- /**
- * @see org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#getReferenceList()
- */
- @Override
- protected ResourceReferenceList getReferenceList() {
- return GlobalELReferenceList.getInstance();
- }
-
- @Override
- protected ResourceReference getDefaultResourceReference() {
- ResourceReference rf = new ResourceReference("", ResourceReference.GLOBAL_SCOPE); //$NON-NLS-1$
- rf.setGlobal(true);
- return rf;
- }
-
- protected ReferenceWizardDialog getDialog(ResourceReference resref) {
- return new GlobalELReferenceWizardDialog(
- PlatformUI.getWorkbench().getDisplay().getActiveShell(), fileLocation, resref, getReferenceArray());
- }
-
- @Override
- protected void add(int index) {
- ResourceReference resref = getDefaultResourceReference();
- int returnCode = -1;
- ReferenceWizardDialog d = getDialog(resref);
- if (null != d) {
- returnCode = d.open();
- }
- if (Dialog.OK == returnCode) {
- dataList.add(resref);
- update();
- table.setSelection(dataList.size() - 1);
- }
- }
-
- @Override
- protected void edit(int index) {
- if(index < 0) {
- return;
- }
- ResourceReference resref = getReferenceArray()[index];
- int returnCode = -1;
- ReferenceWizardDialog d = getDialog(resref);
- if (null != d) {
- returnCode = d.open();
- }
- if (Dialog.OK == returnCode) {
- update();
- }
- }
-
-}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/ELVariablesPreferencePage.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/ELVariablesPreferencePage.java 2010-03-17 17:10:31 UTC (rev 20895)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/ELVariablesPreferencePage.java 2010-03-17 17:34:43 UTC (rev 20896)
@@ -20,7 +20,6 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.jboss.tools.common.el.ui.GlobalElVariablesComposite;
/**
* Page for the El preferences.
Copied: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/GlobalElVariablesComposite.java (from rev 20893, trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java)
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/GlobalElVariablesComposite.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/GlobalElVariablesComposite.java 2010-03-17 17:34:43 UTC (rev 20896)
@@ -0,0 +1,93 @@
+/*******************************************************************************
+ * 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.vpe.editor.preferences;
+
+import java.util.List;
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.common.el.core.GlobalELReferenceList;
+import org.jboss.tools.common.resref.core.ResourceReference;
+import org.jboss.tools.common.resref.core.ResourceReferenceList;
+import org.jboss.tools.common.resref.ui.ResourceReferencesTableProvider;
+import org.jboss.tools.vpe.resref.core.AbstractResourceReferencesComposite;
+import org.jboss.tools.vpe.resref.core.GlobalELReferenceWizardDialog;
+import org.jboss.tools.vpe.resref.core.ReferenceWizardDialog;
+
+
+/**
+ * Composite class for the global el variables.
+ * @author Evgenij Stherbin
+ *
+ */
+public class GlobalElVariablesComposite extends AbstractResourceReferencesComposite {
+
+ /**
+ * @see org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#createTableProvider(java.util.List)
+ */
+ @Override
+ protected ResourceReferencesTableProvider createTableProvider(List dataList) {
+ return ResourceReferencesTableProvider.getGlobalELTableProvider(dataList);
+ }
+
+ /**
+ * @see org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#getReferenceList()
+ */
+ @Override
+ protected ResourceReferenceList getReferenceList() {
+ return GlobalELReferenceList.getInstance();
+ }
+
+ @Override
+ protected ResourceReference getDefaultResourceReference() {
+ ResourceReference rf = new ResourceReference("", ResourceReference.GLOBAL_SCOPE); //$NON-NLS-1$
+ rf.setGlobal(true);
+ return rf;
+ }
+
+ protected ReferenceWizardDialog getDialog(ResourceReference resref) {
+ return new GlobalELReferenceWizardDialog(
+ PlatformUI.getWorkbench().getDisplay().getActiveShell(), fileLocation, resref, getReferenceArray());
+ }
+
+ @Override
+ protected void add(int index) {
+ ResourceReference resref = getDefaultResourceReference();
+ int returnCode = -1;
+ ReferenceWizardDialog d = getDialog(resref);
+ if (null != d) {
+ returnCode = d.open();
+ }
+ if (Dialog.OK == returnCode) {
+ dataList.add(resref);
+ update();
+ table.setSelection(dataList.size() - 1);
+ }
+ }
+
+ @Override
+ protected void edit(int index) {
+ if(index < 0) {
+ return;
+ }
+ ResourceReference resref = getReferenceArray()[index];
+ int returnCode = -1;
+ ReferenceWizardDialog d = getDialog(resref);
+ if (null != d) {
+ returnCode = d.open();
+ }
+ if (Dialog.OK == returnCode) {
+ update();
+ }
+ }
+
+}
14 years, 8 months
JBoss Tools SVN: r20895 - trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-03-17 13:10:31 -0400 (Wed, 17 Mar 2010)
New Revision: 20895
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6073
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java 2010-03-17 17:07:24 UTC (rev 20894)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java 2010-03-17 17:10:31 UTC (rev 20895)
@@ -90,7 +90,7 @@
Set<IQualifierDeclaration> declarations = bean.getQualifierDeclarations();
assertEquals("Wrong number of qualifier declarations.", 1, declarations.size());
// TODO use correct start position instead of 0.
- assertLocationEquals(declarations, 0, 12);
+ assertLocationEquals(declarations, 856, 12);
}
/**
@@ -107,7 +107,7 @@
Set<IQualifier> qualifiers = bean.getQualifiers();
assertEquals("Wrong number of qualifiers.", 4, qualifiers.size());
Set<IQualifierDeclaration> declarations = bean.getQualifierDeclarations();
- assertEquals("Wrong number of qualifier declarations.", 2, declarations.size());
+ assertEquals("Wrong number of qualifier declarations.", 3, declarations.size());
// TODO use correct start position instead of 0.
assertLocationEquals(declarations, 0, 6);
assertLocationEquals(declarations, 0, 9);
@@ -126,7 +126,7 @@
Set<IQualifierDeclaration> declarations = point.getQualifierDeclarations();
assertEquals("Wrong number of qualifier declarations.", 1, declarations.size());
// TODO use correct start position instead of 0.
- assertLocationEquals(declarations, 0, 5);
+ assertLocationEquals(declarations, 914, 5);
Set<IBean> injectedBeans = cdiProject.getBeans(point);
assertEquals("Wrong number of beans.", 1, injectedBeans.size());
@@ -149,7 +149,7 @@
IQualifierDeclaration hairy = getQualifierDeclarationFromBeanClass("JavaSource/org/jboss/jsr299/tck/tests/definition/qualifier/LongHairedDog.java", "org.jboss.jsr299.tck.tests.definition.qualifier.Hairy");
IParametedType type = getType("org.jboss.jsr299.tck.tests.definition.qualifier.BorderCollie");
Set<IBean> beans = cdiProject.getBeans(true, type, hairy);
- assertEquals("Wrong number of beans.", 1, beans.size());
+ assertFalse("Wrong number of beans.", beans.isEmpty());
IBean bean = beans.iterator().next();
Set<IQualifier> qualifiers = bean.getQualifiers();
assertEquals("Wrong number of qualifiers for org.jboss.jsr299.tck.tests.definition.qualifier.BorderCollie type.", 2, qualifiers.size());
@@ -163,7 +163,7 @@
*/
public void testQualifierNotDeclaredInheritedIsNotInherited() throws JavaModelException {
Set<IBean> beans = getBeans("org.jboss.jsr299.tck.tests.definition.qualifier.ShetlandPony");
- assertEquals("Wrong number of beans.", 1, beans.size());
+ assertFalse("Wrong number of beans.", beans.isEmpty());
IBean bean = beans.iterator().next();
Set<IQualifier> qualifiers = bean.getQualifiers();
assertEquals(
14 years, 8 months