JBoss Tools SVN: r25992 - trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2010-10-22 08:16:05 -0400 (Fri, 22 Oct 2010)
New Revision: 25992
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java
Log:
JBIDE-6397
JstJspAllTests fail intermittently on slave vmg18-rhel5-x86_64 for both JBT & JBDS builds
JstJspJbide1585Test is included to the suite after JBIDE-1704 is fixed
Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java 2010-10-22 12:09:07 UTC (rev 25991)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java 2010-10-22 12:16:05 UTC (rev 25992)
@@ -14,6 +14,7 @@
import junit.framework.TestSuite;
import org.jboss.tools.jst.jsp.test.ca.ExternalizeCommandTest;
+import org.jboss.tools.jst.jsp.test.ca.JstJspJbide1585Test;
import org.jboss.tools.jst.jsp.test.ca.JstJspJbide1641Test;
import org.jboss.tools.jst.jsp.test.ca.NewEditorSideBySideCommandTest;
import org.jboss.tools.jst.jsp.test.ca.SelectionBarTest;
@@ -23,22 +24,14 @@
public static Test suite() {
TestSuite suite = new TestSuite("Test for org.jboss.tools.jst.jsp.test"); //$NON-NLS-1$
- /*
- * TODO: Uncomment the following test case after https://jira.jboss.org/browse/JBIDE-7104 issue
- * is resolved due to enable the test to run
-
suite.addTestSuite(JstJspJbide1585Test.class);
-
- */
-
suite.addTestSuite(JstJspJbide1641Test.class);
/*
* TODO: Uncomment the following test case after https://jira.jboss.org/browse/JBIDE-7100 issue
* is resolved due to enable the test to run
-
+ *
suite.addTestSuite(Jbide1791Test.class);
-
*/
suite.addTestSuite(JspPreferencesPageTest.class);
14 years, 2 months
JBoss Tools SVN: r25991 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp: selection/bar and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-10-22 08:09:07 -0400 (Fri, 22 Oct 2010)
New Revision: 25991
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java
Log:
https://jira.jboss.org/browse/JBIDE-7356: VPE Selection Bar is too high
- fixed layout
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java 2010-10-22 10:08:39 UTC (rev 25990)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java 2010-10-22 12:09:07 UTC (rev 25991)
@@ -113,7 +113,6 @@
* Create Selection Bar Composite and set its layout
*/
selectionBar = new SelectionBar(sourcePart, parent2, SWT.NONE);
- selectionBar.setLayout(new GridLayout(1, false));
selectionBar.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false, 2, 1));
editor.addPropertyListener(new IPropertyListener() {
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java 2010-10-22 10:08:39 UTC (rev 25990)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java 2010-10-22 12:09:07 UTC (rev 25991)
@@ -34,6 +34,7 @@
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
@@ -120,6 +121,7 @@
.getState("org.eclipse.ui.commands.toggleState"); //$NON-NLS-1$
toggleSelBarState.addListener(this);
toggleSelBarCommand.addCommandListener(this);
+ this.setLayout(new FillLayout());
/*
* Create the Selection Bar Composite in its constructor
*/
@@ -131,7 +133,6 @@
* The parent of all children should be 'this' composite
*/
splitter = new Splitter(this, SWT.NONE);
- splitter.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false));
/*
* The invisible Selection Bar that is used to handle
* show/hide Selection Bar actions.
14 years, 2 months
JBoss Tools SVN: r25990 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-10-22 06:08:39 -0400 (Fri, 22 Oct 2010)
New Revision: 25990
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/TableStructuredFieldEditor.java
Log:
JBIDE-7338
https://jira.jboss.org/browse/JBIDE-7338
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/TableStructuredFieldEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/TableStructuredFieldEditor.java 2010-10-22 09:30:16 UTC (rev 25989)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/TableStructuredFieldEditor.java 2010-10-22 10:08:39 UTC (rev 25990)
@@ -305,9 +305,45 @@
control.setLayoutData(gd);
}
}
+ updateTableLayoutData();
}
return tableButtonsControl;
}
+
+ public boolean updateTableLayoutData() {
+ if(tableField == null || tableField.isDisposed()) return false;
+ boolean isNew = false;
+ boolean changed = false;
+ GridData data = null;
+ if(tableButtonsControl.getLayoutData() instanceof GridData) {
+ data = (GridData)tableButtonsControl.getLayoutData();
+ } else {
+ data = new GridData(GridData.FILL_BOTH);
+ data.horizontalSpan = 2;
+ isNew = true;
+ changed = true;
+ }
+ int itemCount = tableField.getItemCount();
+ if(itemCount > 10) {
+ if(data.heightHint != 250 || data.verticalAlignment != GridData.BEGINNING) {
+ changed = true;
+ data.verticalAlignment = GridData.BEGINNING;
+ data.heightHint = 250;
+ }
+ } else {
+ if(data.heightHint != SWT.DEFAULT || data.verticalAlignment != GridData.FILL) {
+ changed = true;
+ data.verticalAlignment = GridData.FILL;
+ data.heightHint = SWT.DEFAULT;
+ }
+ }
+ if(changed) {
+ tableButtonsControl.setLayoutData(data);
+ }
+
+
+ return !isNew && changed;
+ }
public Control getControl() {
return this.tableControl;
@@ -338,6 +374,11 @@
if(i < 0) i = 0;
tableViewer.refresh();
int c = tableViewer.getTable().getItemCount();
+ if(updateTableLayoutData()) {
+ tableButtonsControl.layout();
+ tableButtonsControl.getParent().layout();
+ tableButtonsControl.getParent().getParent().layout();
+ }
while(i >= c) --i;
if(i >= 0) {
tableViewer.setSelection(new StructuredSelection(tableViewer.getTable().getItem(i).getData()));
14 years, 2 months
JBoss Tools SVN: r25989 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/forms.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-10-22 05:30:16 -0400 (Fri, 22 Oct 2010)
New Revision: 25989
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/forms/Form.java
Log:
JBIDE-7338
https://jira.jboss.org/browse/JBIDE-7338
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/forms/Form.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/forms/Form.java 2010-10-22 07:20:27 UTC (rev 25988)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/forms/Form.java 2010-10-22 09:30:16 UTC (rev 25989)
@@ -37,6 +37,7 @@
import org.jboss.tools.common.model.ui.attribute.editor.IPropertyFieldEditor;
import org.jboss.tools.common.model.ui.attribute.editor.JavaEclipseChoicerEditor;
import org.jboss.tools.common.model.ui.attribute.editor.TableStructuredEditor;
+import org.jboss.tools.common.model.ui.attribute.editor.TableStructuredFieldEditor;
import org.jboss.tools.common.model.ui.widgets.IWidgetSettings;
/**
@@ -110,7 +111,7 @@
layout.marginWidth = 5;
composite.setLayout(layout);
Control[] control = null;
- GridData gd;
+ GridData gd = null;
String description = formData.getDescription();
if(description!=null && description.length()>0) {
@@ -172,8 +173,15 @@
control = ((IFieldEditor)fieldEditor).getControls(composite);
control[0].dispose(); // cannot show label
-
- gd = new GridData(GridData.FILL_BOTH);
+
+ if(fieldEditor instanceof TableStructuredFieldEditor) {
+ ((TableStructuredFieldEditor)fieldEditor).updateTableLayoutData();
+ gd = (GridData)control[1].getLayoutData();
+ }
+ if(gd == null) {
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.heightHint = 300;
+ }
gd.horizontalSpan = 2;
control[1].setLayoutData(gd);
fieldEditor.setEnabled(xmo.isObjectEditable());
14 years, 2 months
JBoss Tools SVN: r25988 - in trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test: META-INF and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: psrna
Date: 2010-10-22 03:20:27 -0400 (Fri, 22 Oct 2010)
New Revision: 25988
Added:
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.classpath
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.project
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/META-INF/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/META-INF/MANIFEST.MF
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/bin/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/build.properties
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/screenshots/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/ModeshapeAllTests.java
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Properties.java
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Publishing.java
Log:
* SWTBot tests for Modeshape Eclipse Plug-in
Added: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.classpath
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.classpath (rev 0)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.classpath 2010-10-22 07:20:27 UTC (rev 25988)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.project
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.project (rev 0)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.project 2010-10-22 07:20:27 UTC (rev 25988)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.modeshape.rest.ui.bot.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/META-INF/MANIFEST.MF 2010-10-22 07:20:27 UTC (rev 25988)
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Modeshape SWTBot Tests
+Bundle-SymbolicName: org.jboss.tools.modeshape.rest.ui.bot.test;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-ActivationPolicy: lazy
+Bundle-Vendor:
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.eclipse.swtbot.go,
+ org.jboss.tools.ui.bot.ext;bundle-version="3.2.0",
+ org.eclipse.jdt.junit4.runtime;bundle-version="1.1.100"
Property changes on: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/build.properties
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/build.properties (rev 0)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/build.properties 2010-10-22 07:20:27 UTC (rev 25988)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/ModeshapeAllTests.java
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/ModeshapeAllTests.java (rev 0)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/ModeshapeAllTests.java 2010-10-22 07:20:27 UTC (rev 25988)
@@ -0,0 +1,19 @@
+package org.jboss.tools.modeshape.rest.ui.bot.tests;
+
+
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+/**
+ *
+ * @author psrna
+ *
+ */
+@SuiteClasses({
+ Publishing.class
+ })
+(a)RunWith(RequirementAwareSuite.class)
+public class ModeshapeAllTests {
+
+}
Property changes on: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/ModeshapeAllTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Properties.java
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Properties.java (rev 0)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Properties.java 2010-10-22 07:20:27 UTC (rev 25988)
@@ -0,0 +1,22 @@
+package org.jboss.tools.modeshape.rest.ui.bot.tests;
+
+/**
+ *
+ * @author psrna
+ *
+ */
+public class Properties {
+
+ public static final String PROJECT_NAME = "testproject";
+ public static final String FILE_NAME = "testfile";
+ public static final String FILE_CONTENT = "testcontent";
+
+ public static final String URL = "http://localhost:8080/modeshape-rest";
+ public static final String WEBDAV_URL = "http://localhost:8080/modeshape-webdav";
+
+ public static final String REPOSITORY = "repository";
+ public static final String WORKSPACE = "default";
+
+ public static final String USER = "admin";
+ public static final String PASSWORD = "admin";
+}
Property changes on: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Properties.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Publishing.java
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Publishing.java (rev 0)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Publishing.java 2010-10-22 07:20:27 UTC (rev 25988)
@@ -0,0 +1,251 @@
+package org.jboss.tools.modeshape.rest.ui.bot.tests;
+
+
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import org.eclipse.core.internal.preferences.Base64;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.SWTUtilExt;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem.NewObject.GeneralProject;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ *
+ * @author psrna
+ *
+ */
+@SWTBotTestRequires(server=(a)Server(type=ServerType.EAP,version="5.0"),perspective="Java EE")
+public class Publishing extends SWTTestExt{
+
+ private static final String CONNERR_MSG = "Unable to connect using the specified server properties." +
+ "The server properties could be invalid or the server may be offline.";
+
+
+ public static void createResource(){
+
+ SWTBot wiz = open.newObject(ActionItem.NewObject.GeneralProject.LABEL);
+ wiz.textWithLabel(GeneralProject.TEXT_PROJECT_NAME).setText(Properties.PROJECT_NAME);
+ open.finish(wiz);
+ assertTrue(projectExplorer.existsResource(Properties.PROJECT_NAME));
+
+ wiz = open.newObject(ActionItem.NewObject.GeneralFile.LABEL);
+ wiz.tree().select(Properties.PROJECT_NAME);
+ wiz.textWithLabel(ActionItem.NewObject.GeneralFile.TEXT_FILE_NAME).typeText(Properties.FILE_NAME);
+ open.finish(wiz);
+ assertTrue(projectExplorer.isFilePresent(Properties.PROJECT_NAME, Properties.FILE_NAME));
+
+ String projectLocation = SWTUtilExt.getPathToProject(Properties.PROJECT_NAME);
+ try {
+ FileWriter fstream = new FileWriter(projectLocation + "/" + Properties.FILE_NAME);
+ BufferedWriter out = new BufferedWriter(fstream);
+ out.write(Properties.FILE_CONTENT);
+ out.close();
+ } catch (IOException e) {
+ fail("Unable to write to file.");
+ log.error(e.getMessage());
+ }
+
+ }
+
+ @BeforeClass
+ public static void beforeClass(){
+ createResource();
+ }
+
+
+ @Test
+ public void createModeShapeServer(){
+
+ openModeshapeView();
+ SWTBotView view = bot.viewByTitle("ModeShape");
+ assertTrue("ModeShape View must be active", view.isActive());
+
+ view.toolbarButton("Create a new server").click();
+ SWTBotShell shell = bot.shell("New Server");
+ shell.activate();
+
+ shell.bot().textWithLabel("URL:").typeText(Properties.URL);
+ shell.bot().textWithLabel("User:").typeText(Properties.USER);
+ shell.bot().textWithLabel("Password:").typeText(Properties.PASSWORD);
+
+ shell.bot().button("Test").click();
+ shell = bot.shell("Test Server Connection");
+ shell.activate();
+
+ String msg = shell.bot().label(1).getText();
+ assertTrue(CONNERR_MSG, msg.equals("Successfully connected using the specified server properties."));
+
+ open.finish(bot.activeShell().bot(), IDELabel.Button.OK);
+ shell = bot.shell("New Server");
+ shell.activate();
+
+ open.finish(shell.bot());
+
+ assertTrue("Created server not visible in ModeShape view.", view.bot().tree().getTreeItem(Properties.URL).isVisible());
+ }
+
+ private void openModeshapeView(){
+
+ bot.menu(IDELabel.Menu.WINDOW)
+ .menu(IDELabel.Menu.SHOW_VIEW)
+ .menu(IDELabel.Menu.OTHER).click();
+
+ SWTBotShell shell = bot.shell("Show View");
+ shell.activate();
+ shell.bot().tree().expandNode("ModeShape", false).select("ModeShape");
+
+ open.finish(bot.activeShell().bot(), IDELabel.Button.OK);
+ }
+
+
+ @Test
+ public void publishFile(){
+
+ SWTBotView view = bot.viewByTitle("Project Explorer");
+ SWTBot viewBot = view.bot();
+ SWTBotTreeItem node = eclipse.selectTreeLocation(viewBot, Properties.PROJECT_NAME, Properties.FILE_NAME);
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(projectExplorer.tree(),node);
+ ContextMenuHelper.clickContextMenu(projectExplorer.tree(), "ModeShape", "Publish");
+
+ SWTBotShell shell = bot.shell("Publish");
+ shell.activate();
+
+ SWTBotCombo serverCombo = shell.bot().comboBoxWithLabel("Server:");
+ SWTBotCombo repoCombo = shell.bot().comboBoxWithLabel("Repository:");
+ SWTBotCombo workspaceCombo = shell.bot().comboBoxWithLabel("Workspace:");
+
+ assertTrue("URL mismatch.", serverCombo.getText().equals(Properties.URL));
+ assertTrue("Repository mismatch.", repoCombo.getText().equals(Properties.REPOSITORY));
+ assertTrue("Workspace mismatch.", workspaceCombo.getText().equals(Properties.WORKSPACE));
+
+ open.finish(shell.bot());
+
+ assertTrue("HTTP Response code must be 200 after publishing.", HttpURLConnection.HTTP_OK == testPublishedFile());
+ }
+
+
+ @Test
+ public void publishedLocations(){
+
+ SWTBotView view = bot.viewByTitle("Project Explorer");
+ SWTBot viewBot = view.bot();
+ SWTBotTreeItem node = eclipse.selectTreeLocation(viewBot, Properties.PROJECT_NAME, Properties.FILE_NAME);
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(projectExplorer.tree(),node);
+ ContextMenuHelper.clickContextMenu(projectExplorer.tree(), "ModeShape", "Show Published Locations");
+
+ SWTBotShell shell = bot.shell("Published Locations");
+ shell.activate();
+
+ SWTBotTable table = shell.bot().table();
+ assertTrue("Url mismatch.", table.cell(0, 0).equals(Properties.URL));
+ assertTrue("User mismatch.", table.cell(0, 1).equals(Properties.USER));
+ assertTrue("Repository mismatch.", table.cell(0, 2).equals(Properties.REPOSITORY));
+ assertTrue("Workspace mismatch.", table.cell(0, 3).equals(Properties.WORKSPACE));
+
+ String expectedPublishedUrl = Properties.URL + "/" +
+ Properties.REPOSITORY + "/" +
+ Properties.WORKSPACE + "/items/" +
+ Properties.PROJECT_NAME + "/" +
+ Properties.FILE_NAME;
+
+ assertTrue("Published Url mismatch.", table.cell(0, 4).equals(expectedPublishedUrl));
+
+ open.finish(shell.bot(), IDELabel.Button.OK);
+
+ }
+
+
+
+ @Test
+ public void unpublishFile(){
+
+ SWTBotView view = bot.viewByTitle("Project Explorer");
+ SWTBot viewBot = view.bot();
+ SWTBotTreeItem node = eclipse.selectTreeLocation(viewBot, Properties.PROJECT_NAME, Properties.FILE_NAME);
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(projectExplorer.tree(),node);
+ ContextMenuHelper.clickContextMenu(projectExplorer.tree(), "ModeShape", "Unpublish");
+
+ SWTBotShell shell = bot.shell("Unpublish");
+ shell.activate();
+
+ SWTBotCombo serverCombo = shell.bot().comboBoxWithLabel("Server:");
+ SWTBotCombo repoCombo = shell.bot().comboBoxWithLabel("Repository:");
+ SWTBotCombo workspaceCombo = shell.bot().comboBoxWithLabel("Workspace:");
+
+ assertTrue("URL mismatch.", serverCombo.getText().equals(Properties.URL));
+ assertTrue("Repository mismatch.", repoCombo.getText().equals(Properties.REPOSITORY));
+ assertTrue("Workspace mismatch.", workspaceCombo.getText().equals(Properties.WORKSPACE));
+
+ open.finish(shell.bot());
+
+ assertTrue("HTTP Response code must be 404 after unpublishing.", HttpURLConnection.HTTP_NOT_FOUND == testPublishedFile());
+
+ }
+
+
+ /**
+ *
+ * @return response code
+ */
+ private int testPublishedFile(){
+
+ try {
+
+ URL url = new URL(Properties.WEBDAV_URL + "/" + Properties.PROJECT_NAME + "/" + Properties.FILE_NAME);
+ HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+
+ conn.setRequestMethod("GET");
+ conn.setAllowUserInteraction(false);
+ conn.setUseCaches(false);
+ conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
+
+ String authorization = Properties.USER + ":" + Properties.PASSWORD;
+ String encodedAuthorization= new String(Base64.encode(authorization.getBytes()));
+ conn.setRequestProperty("Authorization", "Basic " + encodedAuthorization);
+
+ conn.connect();
+
+ if(conn.getResponseCode() == HttpURLConnection.HTTP_OK){
+ //if HTTP_OK, test content
+ BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
+ StringBuilder sb = new StringBuilder();
+ String line = null;
+
+ while ((line = rd.readLine()) != null){
+ sb.append(line);
+ }
+ assertTrue("File content mismatch.", sb.toString().equals(Properties.FILE_CONTENT));
+ }
+
+ //return response code
+ return conn.getResponseCode();
+
+ } catch (IOException e) {
+ fail("Unable to test the published file.");
+ log.error(e.getMessage());
+ }
+ return -1;
+ }
+
+}
Property changes on: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/src/org/jboss/tools/modeshape/rest/ui/bot/tests/Publishing.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 2 months
JBoss Tools SVN: r25987 - trunk/modeshape/tests.
by jbosstools-commits@lists.jboss.org
Author: psrna
Date: 2010-10-22 03:17:31 -0400 (Fri, 22 Oct 2010)
New Revision: 25987
Added:
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.ui.bot.test/
Log:
* SWTBot tests for Modeshape Eclipse plug-in
14 years, 2 months
JBoss Tools SVN: r25986 - in trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext: matcher and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-10-22 01:37:17 -0400 (Fri, 22 Oct 2010)
New Revision: 25986
Added:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/matcher/
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/matcher/WithItem.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/widgets/SWTBotMultiPageEditor.java
Log:
SWTBotMultiPageEditor and required matcher added
Added: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/matcher/WithItem.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/matcher/WithItem.java (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/matcher/WithItem.java 2010-10-22 05:37:17 UTC (rev 25986)
@@ -0,0 +1,59 @@
+package org.jboss.tools.ui.bot.ext.matcher;
+
+import java.lang.reflect.InvocationTargetException;
+import java.util.ArrayList;
+
+import org.eclipse.swt.widgets.Item;
+import org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher;
+import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
+import org.hamcrest.Description;
+import org.hamcrest.Matcher;
+
+public class WithItem<T extends Item> extends AbstractMatcher<T> {
+ protected final Matcher<?> itemMatcher;
+ protected final ArrayList<T> matches;
+
+ /**
+ * Matches widgets which contains <code>item(s)</code>, as returned by <code>getItems</code> method, that match
+ * given matcher...i.e CTabFolder with Item with text "xyz"
+ * Note: Code taken from unreleased SWTBot, after release will be deprecated and removed
+ *
+ * @param itemMatcher the item matcher
+ */
+ public WithItem(Matcher<?> itemMatcher) {
+ this.itemMatcher = itemMatcher;
+ this.matches = new ArrayList<T>();
+ }
+
+ public void describeTo(Description description) {
+ description.appendText("with item");
+ this.itemMatcher.describeTo(description);
+ }
+
+ protected boolean doMatch(Object obj) {
+ matches.clear();
+ try {
+ for (T item : getItems(obj)) {
+ if (itemMatcher.matches(item))
+ matches.add(item);
+ }
+ } catch (Exception e) {
+ // do nothing
+ }
+ return !matches.isEmpty();
+ }
+
+ @SuppressWarnings("unchecked")
+ private T[] getItems(Object obj) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
+ return (T[]) SWTUtils.invokeMethod(obj, "getItems");
+ }
+
+ public ArrayList<T> getAllMatches() {
+ return matches;
+ }
+
+ public T get(int index) {
+ return matches.get(index);
+ }
+
+}
Property changes on: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/matcher/WithItem.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/widgets/SWTBotMultiPageEditor.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/widgets/SWTBotMultiPageEditor.java (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/widgets/SWTBotMultiPageEditor.java 2010-10-22 05:37:17 UTC (rev 25986)
@@ -0,0 +1,145 @@
+package org.jboss.tools.ui.bot.ext.widgets;
+
+import static org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncExec;
+import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.allOf;
+import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.widgetOfType;
+import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withMnemonic;
+import static org.hamcrest.Matchers.equalTo;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.swt.custom.CTabFolder;
+import org.eclipse.swt.custom.CTabItem;
+import org.eclipse.swt.widgets.Widget;
+import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
+import org.eclipse.swtbot.swt.finder.results.IntResult;
+import org.eclipse.swtbot.swt.finder.results.Result;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem;
+import org.eclipse.ui.IEditorReference;
+import org.hamcrest.Matcher;
+import org.jboss.tools.ui.bot.ext.matcher.WithItem;
+
+/**
+ * SWTBotMultiPageEditor taken from SWTBot. Will be deprecated after
+ * it's released in SWTBot
+ * @author ketan
+ *
+ */
+public class SWTBotMultiPageEditor extends SWTBotEditor {
+ /**
+ * The tabFolder widget.
+ */
+ protected final CTabFolder tabFolder;
+
+ /**
+ * Constructs an instance of the given object.
+ *
+ * @param editorReference the editor reference.
+ * @param bot the instance of {@link SWTWorkbenchBot} which will be used to drive operations on behalf of this object.
+ * @throws WidgetNotFoundException if the widget is <code>null</code> or widget has been disposed.
+ */
+ public SWTBotMultiPageEditor(IEditorReference editorReference, SWTWorkbenchBot bot) {
+ super(editorReference, bot);
+ tabFolder = (CTabFolder) findWidget(widgetOfType(CTabFolder.class));
+ }
+
+ /**
+ * Find the CTabItem whose text matches the given matcher.
+ *
+ * @param titleMatcher the text matcher
+ * @return a {@link SWTBotCTabItem} with the specified tab name.
+ */
+ private SWTBotCTabItem findPage(Matcher<? extends Widget> titleMatcher) {
+ WithItem<CTabItem> itemMatcher = new WithItem<CTabItem>(allOf(widgetOfType(CTabItem.class), titleMatcher));
+ if (itemMatcher.matches(tabFolder))
+ return new SWTBotCTabItem(itemMatcher.get(0));
+ throw new WidgetNotFoundException("Could not find page with title " + titleMatcher);
+ }
+
+ /**
+ * Returns the number of pages in this multi-page editor.
+ *
+ * @return the number of pages
+ */
+ public int getPageCount() {
+ return syncExec(new IntResult() {
+ public Integer run() {
+ return tabFolder.getItemCount();
+ }
+ });
+ }
+
+ /**
+ * Sets the currently active page.
+ *
+ * @param pageText the text label for the page to be activated
+ * @return the {@link CTabItem} that was activated.
+ */
+ public SWTBotCTabItem activatePage(String pageText) {
+ return activatePage(withMnemonic(pageText));
+ }
+
+ /**
+ * Sets the currently active page.
+ *
+ * @param titleMatcher the title matcher for the page to be activated.
+ * @return the {@link CTabItem} that was activated.
+ */
+ public SWTBotCTabItem activatePage(Matcher<? extends Widget> titleMatcher) {
+ return findPage(titleMatcher).show().activate();
+ }
+
+ /**
+ * Returns the title of the currently active page or <code>null</code> if there is no active page
+ *
+ * @return the title of the currently active page or <code>null</code> if there is no active page
+ */
+ public String getActivePage() {
+ CTabItem tab = tabFolder.getSelection();
+ if (tab != null) {
+ return new SWTBotCTabItem(tab).getText();
+ }
+ return null;
+ }
+
+ /**
+ * Returns a list of title of all the pages in this multi-page editor.
+ *
+ * @return List of title of all pages; empty list if no pages.
+ */
+ public List<String> getPages() {
+ List<String> pages = null;
+ if (getPageCount() > 0) {
+ pages = UIThreadRunnable.syncExec(new Result<List<String>>() {
+ public List<String> run() {
+ ArrayList<String> titles = new ArrayList<String>();
+ for (CTabItem item : tabFolder.getItems()) {
+ titles.add(item.getText());
+ }
+ return titles;
+ }
+ });
+ }
+ return pages == null ? new ArrayList<String>() : pages;
+ }
+
+ /**
+ * @param pageText the page title to test
+ * @return <code>true</code> if the currently active page has given title, <code>false</code> otherwise.
+ */
+ public boolean isActivePage(String pageText) {
+ return isActivePage(equalTo(pageText));
+ }
+
+ /**
+ * @param titleMatcher the title matcher for the active page
+ * @return <code>true</code> if the currently active page title matches, <code>false</code> otherwise.
+ */
+ public boolean isActivePage(Matcher<String> titleMatcher) {
+ return titleMatcher.matches(getActivePage());
+ }
+}
Property changes on: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/widgets/SWTBotMultiPageEditor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 2 months
JBoss Tools SVN: r25985 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-10-21 22:28:55 -0400 (Thu, 21 Oct 2010)
New Revision: 25985
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
trunk/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml
Log:
updated with new issues
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2010-10-22 00:10:56 UTC (rev 25984)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2010-10-22 02:28:55 UTC (rev 25985)
@@ -25,31 +25,56 @@
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7193">
- </ulink> New optional parameters <parameter>ruleMultithreadEvaluation</parameter> and <parameter>ruleMaxThreads</parameter> have been added to the <classname>BussinessRulesProcessor</classname> class. <parameter>ruleMultithreadEvaluation</parameter> enables or disables <classname>KnowledgeBase</classname> partitioning. <parameter>ruleMaxThreads</parameter> defines the numer of threads to use when <classname>KnowledgeBase</classname> partitioning is enabled. The default values for these parameters is null, disabling them by default.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7193">JBIDE-7193</ulink>: New optional parameters <parameter>ruleMultithreadEvaluation</parameter> and <parameter>ruleMaxThreads</parameter> have been added to the <classname>BussinessRulesProcessor</classname> class. <parameter>ruleMultithreadEvaluation</parameter> enables or disables <classname>KnowledgeBase</classname> partitioning. <parameter>ruleMaxThreads</parameter> defines the numer of threads to use when <classname>KnowledgeBase</classname> partitioning is enabled. The default values for these parameters is null, disabling them by default.
</para>
</listitem>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7235">
- </ulink> The ESB validator has been extended to cover the <classname>BussinessRulesProcessor</classname> class. This ensures that only one <methodname>ruleSet</methodname> is specified by the <classname>BussinessRulesProcessor</classname>, inhibiting conflicts.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7235">JBIDE-7235</ulink>: The ESB validator has been extended to cover the <classname>BussinessRulesProcessor</classname> class. This ensures that only one <methodname>ruleSet</methodname> is specified by the <classname>BussinessRulesProcessor</classname>, inhibiting conflicts.
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara>
-<!-- <formalpara>
- <title>jBPM</title>
+ </formalpara>
+ <formalpara>
+ <title>Google Web Toolkit</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-"> </ulink>
- </para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7092">JBIDE-7092</ulink>: Support has been added for the Google Web Toolkit (GWT) Designer. To use this functionality do the following:
+ </para>
+ <orderedlist>
+ <listitem>
+ <para>
+ Install the GWT Designer from <ulink url="http://dl.google.com/eclipse/inst/d2gwt/latest ">http://dl.google.com/eclipse/inst/d2gwt/latest</ulink>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Create a dynamic web project and active the GWT facet
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Build the included GWT examples
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Right-click on <filename>Gwt_jboss.java</filename> and choose <menuchoice><guimenuitem>Open with</guimenuitem><guimenuitem>WindowBuilder Editor</guimenuitem></menuchoice> from the menu
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Switch the editor to the <guilabel>Designer</guilabel> tab
+ </para>
+ </listitem>
+ </orderedlist>
</listitem>
</itemizedlist>
</para>
- </formalpara> -->
+ </formalpara>
<!-- <formalpara>
<title>Hibernate</title>
<para>
@@ -63,17 +88,29 @@
</para>
</formalpara> -->
<!-- <formalpara>
- <title>JavaServer Faces (JSF)</title>
+ <title>jBPM</title>
<para>
<itemizedlist>
<listitem>
<para>
-
- </para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-"> </ulink>
+ </para>
</listitem>
</itemizedlist>
</para>
- </formalpara> -->
+ </formalpara> -->
+ <formalpara>
+ <title>JavaServer Faces (JSF)</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7147">JBIDE-7147</ulink>: The validators create a marker for each problem found when conducting validation. An issue would arise where system performance would be drammatically decreased when an excesive amount of problems were discovered and subsequently marked. To ensure a system does not receive a performance hit, the <guimenuitem>Validator</guimenuitem> preferences screen now includes the ability to set the maximum number of problems reported per file. If there are more issues in a file than the maximum number to be reported, once the reported issues are corrected the others will be reported in subsequent validation attempts.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
<!-- <formalpara>
<title>Portlet</title>
<para>
@@ -134,7 +171,27 @@
</itemizedlist>
</para>
</formalpara> -->
+
+<!-- Only for JBT Release Notes -->
<!-- <formalpara>
+ <title>Usage</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7144">JBIDE-7144</ulink>: A preference page is provided that details all settings currently being reported.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7142">JBIDE-7142</ulink>: Originally usage reporting only reported an operating system version if it was either Macintosh or Windows, missing Linux. Support for reporting Linux operating system versions was added through completion of this issue.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara> -->
+
+<!-- <formalpara>
<title>Visual Page Editor</title>
<para>
<itemizedlist>
@@ -146,18 +203,18 @@
</itemizedlist>
</para>
</formalpara> -->
-<!-- <formalpara id="Fixed_Issues-Web_Tools_Platform">
+ <formalpara id="Fixed_Issues-Web_Tools_Platform">
<title>Web Tools Platform</title>
<para>
<itemizedlist>
<listitem>
<para>
-
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7106">JBIDE-7106</ulink>: Annotations have been added for JAX-RS (Java API for RESTful Web Services). This addition has been accomplished by modifying the <guilabel>Annotation Properties</guilabel> view.
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara> -->
+ </formalpara>
<!-- <formalpara>
<title>XHTML Editor</title>
<para>
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml 2010-10-22 00:10:56 UTC (rev 25984)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml 2010-10-22 02:28:55 UTC (rev 25985)
@@ -40,6 +40,16 @@
JBoss Drools
</para>
</listitem>
+ <listitem>
+ <para>
+ ModeShape
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Teiid
+ </para>
+ </listitem>
</itemizedlist>
<para>
JBoss Developer Studio includes both certified visual tooling and a runtime platform (that Red Hat supports for 3 years (Limited) and 5 years respectively), ensuring developers of a stable, upgradable, deployable and supportable platform.
14 years, 2 months
JBoss Tools SVN: r25984 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-10-21 20:10:56 -0400 (Thu, 21 Oct 2010)
New Revision: 25984
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
trunk/documentation/guides/JBDS_Release_Notes/en-US/Release_Notes.xml
trunk/documentation/guides/JBDS_Release_Notes/en-US/master.xml
Log:
started JBDS 4.0 RN
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2010-10-21 17:02:55 UTC (rev 25983)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2010-10-22 00:10:56 UTC (rev 25984)
@@ -4,7 +4,7 @@
<title>Release Notes</title>
<subtitle>Information about the changes made for this release of the JBoss Developer Studio.</subtitle>
<productname>JBoss Developer Studio</productname>
- <productnumber>3.0.1</productnumber>
+ <productnumber>4.0.0</productnumber>
<edition>0</edition>
<pubsnumber>0</pubsnumber>
<abstract>
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2010-10-21 17:02:55 UTC (rev 25983)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2010-10-22 00:10:56 UTC (rev 25984)
@@ -19,18 +19,25 @@
</itemizedlist>
</para>
</formalpara> -->
-<!-- <formalpara>
+ <formalpara>
<title>ESB</title>
<para>
<itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-"> </ulink>
- </para>
- </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7193">
+ </ulink> New optional parameters <parameter>ruleMultithreadEvaluation</parameter> and <parameter>ruleMaxThreads</parameter> have been added to the <classname>BussinessRulesProcessor</classname> class. <parameter>ruleMultithreadEvaluation</parameter> enables or disables <classname>KnowledgeBase</classname> partitioning. <parameter>ruleMaxThreads</parameter> defines the numer of threads to use when <classname>KnowledgeBase</classname> partitioning is enabled. The default values for these parameters is null, disabling them by default.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-7235">
+ </ulink> The ESB validator has been extended to cover the <classname>BussinessRulesProcessor</classname> class. This ensures that only one <methodname>ruleSet</methodname> is specified by the <classname>BussinessRulesProcessor</classname>, inhibiting conflicts.
+ </para>
+ </listitem>
</itemizedlist>
</para>
- </formalpara> -->
+ </formalpara>
<!-- <formalpara>
<title>jBPM</title>
<para>
@@ -43,47 +50,42 @@
</itemizedlist>
</para>
</formalpara> -->
- <formalpara>
+<!-- <formalpara>
<title>Hibernate</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-6075">JBIDE-6075</ulink>: In the Hibernate reverse engineering editor it was impossible to add a parameter as the button to do so was missing. This update corrects the user interface to include the <guibutton>Add parameter</guibutton> button under the <guilabel>Id Generator details</guilabel> <guilabel>Class</guilabel> section.
+
</para>
</listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5960">JBIDE-5960</ulink>: A new <guibutton>Details ...</guibutton> button has been added to the <guilabel>Hibernate Settings</guilabel> section within the project properties. This added button displays the configuration wizard for the selected console (this wizard is also still available through the <guilabel>Console Configuration</guilabel> view). With the addition of this new button, a consoles configuration wizard is now more easily accessable to the user.
- </para>
- </listitem>
</itemizedlist>
</para>
- </formalpara>
- <formalpara>
+ </formalpara> -->
+<!-- <formalpara>
<title>JavaServer Faces (JSF)</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5941">JBIDE-5941</ulink>: A new JSF2 feature has been added that allows a user to type <code>#{cc.attrs.|</code> and have an attribute list returned.
+
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara>
- <formalpara>
+ </formalpara> -->
+<!-- <formalpara>
<title>Portlet</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1214">JBDS-1214</ulink>: The JBoss Enterprise Portal Platform 5.0 was not compatible with the JBoss Developer Studio when a user would generate specific JBoss Portal XML files. To allow for the JBoss Enterprise Portal Platform to work with the JBoss Developer Studio the option to remove JBoss Portal XML file creation when the user chooses JBoss Enterprise Portal Platform 5.0. If a user attempts to deploy a JBoss Portal 2 project to the JBoss Enterprise Portal Platform 5.0, the user has to remove or rename the <filename>jboss-app.xml</filename> file in order to ensure compatibility.
+
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
<!-- <formalpara>
<title>RichFaces</title>
<para>
@@ -144,18 +146,18 @@
</itemizedlist>
</para>
</formalpara> -->
- <formalpara id="Fixed_Issues-Web_Tools_Platform">
+<!-- <formalpara id="Fixed_Issues-Web_Tools_Platform">
<title>Web Tools Platform</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1155">JBDS-1155</ulink>: A regression existed in the Eclipse 3.5.2 Web Tools Platform (WTP) 3.1.2. The bug would break EAR deployments that used classpath variables by deploying dependent artifacts to <filename><root_ear>/lib/lib/lib</filename> instead of <filename><root_ear>/lib</filename>. The issue has been corrected with these updated packages so that the regression no longer exists and EAR deployments function correctly.
+
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
<!-- <formalpara>
<title>XHTML Editor</title>
<para>
@@ -180,66 +182,16 @@
</itemizedlist>
</para>
</formalpara> -->
- <formalpara>
+<!-- <formalpara>
<title>General Issues</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1228">JBDS-1228</ulink>: The JBoss Developer Studio installation wizard would display incorrect step numbering, seeming to jump sporadically. This occurred because steps the installer takes that are invisible to the user were still included in the displayed step numbering on each screen. In this release the step numbering has been corrected to count only the steps the user participates in.
+
</para>
</listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1220">JBDS-1220</ulink>: Within the JBoss Developer Studio, the browse button that allowed a user to select the location of the JBoss Application Server would not default to the location where the JBoss Enterprise Application Platform was installed. The consequence of this was that a user would have to search for the installed location of the JBoss Enterprise Application Platform. Though installation of the JBoss Enterprise Application Platform is optional, if it is installed it can be assumed that this will be the Application Server a user will wish to use. In order to improve the user experience, when the JBoss Enterprise Application Platform is installed, the server location browse button will default to that directory.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1215">JBDS-1215</ulink>: The installer was unable to locate the Seam runtimes within the JBoss Enterprise Application Platform 4.3. This occurred because the Seam runtime locations bundled within the JBoss Enterprise Application Platform 4.3 had recently changed from <filename>jboss-eap-4.3/seam</filename> and <filename>jboss-eap-4.3/seamfp</filename> to being <filename>jboss-eap-4.3/seam1</filename> and <filename>jboss-eap-4.3/seam2</filename>. This version of the JBoss Developer Studio includes an updated installer that contains the new Seam runtime locations. The installer is now able to find the Seam runtimes for the latest versions of the JBoss Enterprise Application Platform 4.3.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1187">JBDS-1187</ulink>: An empty URL tag (<url>) caused the <guimenuitem>Classic Update</guimenuitem> option under <menuchoice><guimenuitem>Preferences</guimenuitem><guimenuitem>General</guimenuitem><guimenuitem>Capabilities</guimenuitem></menuchoice> to error upon installation of a plug-in. To fix this issue the unused URL element has been removed. The <guimenuitem>Classic Update</guimenuitem> option is now usable and installs plug-ins correctly.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1181">JBDS-1181</ulink>: When creating a <guilabel>New Process Project</guilabel> the <guilabel>Configure JBoss jBPM Runtime</guilabel> screen included a link to <guilabel>Download the JBoss jBPM package if you have none available yet.</guilabel> that would direct users to a location that did not exist. For the previous release a redirect was created after this issue was found that directed a user to the sourceforge location of the files. This version of the JBoss Developer Studio sees the removal of the link.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1168">JBDS-1168</ulink>: The JBoss Developer Studio Installer was missleading in terms of system requirements. The consequence of this was that some users were unsure if the JBoss Developer Studio supported Java 6 even though it was required for the JBoss Enterprise Application Platform 5 and which JDK distributions were supported. The text in Step 4 of installation has been updated to inform the user that the JBoss Developer Studio works with both Java 5 and 6 (though Java 6 is required for JBoss Enterprise Application Platform 5), has been tested with the OpenJDK, SunJDK and IBM JDK distributions and the misspelt <emphasis>gij Java</emphasis> has been corrected to <emphasis>gcj Java</emphasis>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="https://jira.jboss.org/jira/browse/JBDS-1222">JBDS-1222</ulink>: A bug existed in the JBoss Developer Studio that caused stylesheets to not render correctly in the JBoss Enterprise Application Platform 5 and a <exceptionname>org.ajax4jsf.resource.ResourceNotFoundException: Static resource not found for path <resource name></exceptionname> exception when using the JBoss Enterprise Portal Platform 5 to load a JSF page through a Portlet. These errors were caused by the code to load the style sheet being: <code><a:loadStyle src="resource:///stylesheet/theme.xcss"/></code> instead of <code><a:loadStyle src="/stylesheet/theme.xcss"/></code>. This issue has now been corrected for this release.
- </para>
- </listitem>
- <!-- Reopened <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1147">JBDS-1147</ulink>: An incorrect link to the Guvnor Rules repository was included in the JBoss Developer Studio. This bug caused the repository to become unreachable. This has been fixed by correcting the link to be <ulink url="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav</ulink>. The JBoss Developer Studio is now able to connect to the Guvnor Rules repository.
- </para>
- </listitem> -->
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1091">JBDS-1091</ulink>: Two bugs were found. A problem was found in the <filename>org.jboss.tools.runtime_1.1.0</filename> plug-in and the visibility of the <property>Instance</property> field was changed from public to private. These bugs respectively caused the JBoss Developer Studio <guilabel>Server View</guilabel> to not display all available servers on occasion after using the installer and jBPM runtimes to not be initialized correctly. The <filename>org.jboss.tools.runtime_1.1.0</filename> plug-in has now been updated to force a refresh of the <guilabel>Server View</guilabel> post installation, which can be verified by a refresh message appearing in the log file and the <filename>org.jboss.tools.jbpm.common</filename> plug-in has been updated to set <code>public static final PreferencesManager INSTANCE = new PreferencesManager();</code>. By correcting the <filename>org.jboss.tools.runtime_1.1.0</filename> plug-!
in, all installed servers now appear in the <guilabel>Server View</guilabel> directly after installation of the JBoss Developer Studio through the installer. Fixing the <filename>org.jboss.tools.jbpm.common</filename> plug-in now allows for jBPM runtimes to be initialized correctly. Both issues are fixed with this update.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1088">JBDS-1088</ulink>: When installing the JBoss Developer Studio, if a previous installation was detected a dialog box would ask if you wished to overwrite the existing directory. If a user continued with installation they would then have a mixture of the old and new product versions. To better assist users a new warning is displayed in this situation, which indicates that you cannot upgrade by installing a new version over an old version. This new dialog box ensures that a user is informed of what will happen.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1047">JBDS-1047</ulink>: When installing the JBoss Developer Studio a user would not be warned if they were installing it as the root user on a Linux distribution. The consequence of this was that if a user uninstalled the software certain files would be left behind (such as menu items). In order to ensure a user is aware they are installing the JBoss Developer Studio as root, a warning is displayed informing them. The JBoss Developer Studio does not stop you from installing the software as the root user, rather it ensures this is what the user has intended to do.
- </para>
- </listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
</section>
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Release_Notes.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Release_Notes.xml 2010-10-21 17:02:55 UTC (rev 25983)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Release_Notes.xml 2010-10-22 00:10:56 UTC (rev 25984)
@@ -5,7 +5,7 @@
<xi:include href="Overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
<!-- <xi:include href="New_Features.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> -->
<xi:include href="Component_Versions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Updating_to_the_new_Web_Tools_Platform_packages.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<!-- <xi:include href="Updating_to_the_new_Web_Tools_Platform_packages.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> -->
<xi:include href="Fixed_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
<!-- <xi:include href="Known_Issues.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>
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/master.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/master.xml 2010-10-21 17:02:55 UTC (rev 25983)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/master.xml 2010-10-22 00:10:56 UTC (rev 25984)
@@ -25,7 +25,7 @@
<holder>JBoss by Red Hat</holder>
</copyright>
<releaseinfo>
- Version: 3.0.1.GA
+ Version: 3.2.0.GA
</releaseinfo>
<!--<abstract>
<title/>
14 years, 2 months
JBoss Tools SVN: r25983 - trunk/build/target-platform.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-10-21 13:02:55 -0400 (Thu, 21 Oct 2010)
New Revision: 25983
Modified:
trunk/build/target-platform/build.xml
Log:
purge previous eclipse install to avoid conflicts w/ Eclipse feature versions
Modified: trunk/build/target-platform/build.xml
===================================================================
--- trunk/build/target-platform/build.xml 2010-10-21 16:48:58 UTC (rev 25982)
+++ trunk/build/target-platform/build.xml 2010-10-21 17:02:55 UTC (rev 25983)
@@ -103,6 +103,10 @@
<get src="${eclipse.URL}/${eclipse.file}" dest="${WORKINGDIR}/${eclipse.file}" />
</then>
</if>
+
+ <!-- purge previous eclipse install to avoid conflicts w/ Eclipse feature versions -->
+ <delete dir="${WORKINGDIR}/eclipse" includeemptydirs="true" quiet="true" />
+
<untar compression="gzip" dest="${WORKINGDIR}" src="${WORKINGDIR}/${eclipse.file}" overwrite="true" />
<!-- add 70M delta pack, eg. http://download.eclipse.org/eclipse/downloads/drops/M20101006-0936/downlo... -->
14 years, 2 months