JBoss Tools SVN: r25232 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/7153 and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-09-27 10:14:32 -0400 (Mon, 27 Sep 2010)
New Revision: 25232
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/7153/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/7153/getElementBounds.html
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java
Log:
JBIDE-7153 https://jira.jboss.org/browse/JBIDE-7153 :
Odd drop targets during DnD in VPE
- fixed
- JUnits created
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/7153/getElementBounds.html
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/7153/getElementBounds.html (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/7153/getElementBounds.html 2010-09-27 14:14:32 UTC (rev 25232)
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head id="head-1">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Insert title here</title>
+<style type="text/css">
+.classA, .classB {
+ padding: 7px;
+ border-width: 11px;
+ border-style: solid;
+ margin: 13px;
+}
+.classA {
+ background-color: pink;
+ border-color: lightblue;
+ width: 3000px;
+ height: 2000px;
+}
+.classB {
+ background-color: yellow;
+ border-color: orange;
+ width: 150px;
+ height: 100px;
+}
+</style>
+</head>
+<body>
+ <div id="outerDiv" class="classA">
+ <span id="span1">Test Text</span>
+ <div id="innerDiv" class="classB">
+ Text
+ </div>
+ </div>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java 2010-09-27 14:14:32 UTC (rev 25232)
@@ -0,0 +1,94 @@
+/*******************************************************************************
+ * 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.jsf.vpe.jsf.test.jbide;
+
+import java.text.MessageFormat;
+
+import org.eclipse.swt.graphics.Rectangle;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.xulrunner.util.XulRunnerVpeUtils;
+import org.mozilla.interfaces.nsIDOMElement;
+
+/**
+ * Tests for {@link XulRunnerVpeUtils} class.
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ * @see <a href="https://jira.jboss.org/browse/JBIDE-7153">JBIDE-7153</a>
+ */
+public class XulRunnerVpeUtilsTest extends VpeTest {
+ private static final String THE_Y_POSITION_IS_WRONG = "The y position of {0} is wrong"; //$NON-NLS-1$
+ private static final String THE_X_POSITION_IS_WRONG = "The x position of {0} is wrong"; //$NON-NLS-1$
+ private static final String THE_HEIGHT_IS_WRONG = "The height of {0} is wrong"; //$NON-NLS-1$
+ private static final String THE_WIDTH_IS_WRONG = "The width of {0} is wrong"; //$NON-NLS-1$
+ private static final String SPAN1_ID = "span1"; //$NON-NLS-1$
+ private static final String INNER_DIV_ID = "innerDiv"; //$NON-NLS-1$
+ private static final String OUTER_DIV_ID = "outerDiv"; //$NON-NLS-1$
+ private static final int DIV_MARGIN = 13;
+ private static final int DIV_PADDING = 7;
+ private static final int DIV_BORDER_WIDTH = 11;
+ private static final int OUTER_DIV_HEIGHT = 2000;
+ private static final int OUTER_DIV_WIDTH = 3000;
+ private static final String TEST_FILE_PATH
+ = "JBIDE/7153/getElementBounds.html"; //$NON-NLS-1$
+ private VpeController vpeController;
+
+ public XulRunnerVpeUtilsTest(String name) {
+ super(name);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ vpeController = openInVpe(JsfAllTests.IMPORT_PROJECT_NAME,
+ TEST_FILE_PATH);
+ }
+
+ ////////////////////////////////////////////////////////////////////////////
+ // JUNIT TESTING METHODS
+ public void testGetElementBounds() {
+ Rectangle outerDivSize = XulRunnerVpeUtils.getElementBounds(
+ getElementById(OUTER_DIV_ID));
+ assertEquals(MessageFormat.format(THE_WIDTH_IS_WRONG, OUTER_DIV_ID),
+ OUTER_DIV_WIDTH + DIV_BORDER_WIDTH * 2 + DIV_PADDING * 2,
+ outerDivSize.width);
+ assertEquals(MessageFormat.format(THE_HEIGHT_IS_WRONG, OUTER_DIV_ID),
+ OUTER_DIV_HEIGHT + DIV_BORDER_WIDTH * 2 + DIV_PADDING * 2,
+ outerDivSize.height);
+
+ Rectangle innerDivSize = XulRunnerVpeUtils.getElementBounds(
+ getElementById(INNER_DIV_ID));
+ assertEquals(MessageFormat.format(THE_WIDTH_IS_WRONG, INNER_DIV_ID),
+ 150 + DIV_BORDER_WIDTH * 2 + DIV_PADDING * 2,
+ innerDivSize.width);
+ assertEquals(MessageFormat.format(THE_HEIGHT_IS_WRONG, INNER_DIV_ID),
+ 100 + DIV_BORDER_WIDTH * 2 + DIV_PADDING * 2,
+ innerDivSize.height);
+
+ Rectangle span1Size = XulRunnerVpeUtils.getElementBounds(
+ getElementById(SPAN1_ID));
+ assertTrue(MessageFormat.format(THE_X_POSITION_IS_WRONG, SPAN1_ID),
+ span1Size.x >= DIV_PADDING + DIV_BORDER_WIDTH + DIV_MARGIN);
+ assertTrue(MessageFormat.format(THE_Y_POSITION_IS_WRONG, SPAN1_ID),
+ span1Size.y >= DIV_PADDING + DIV_BORDER_WIDTH + DIV_MARGIN);
+ assertTrue(MessageFormat.format(THE_HEIGHT_IS_WRONG, SPAN1_ID),
+ span1Size.height > 0);
+ assertTrue(MessageFormat.format(THE_WIDTH_IS_WRONG, SPAN1_ID),
+ span1Size.width > 0);
+
+ }
+
+ public nsIDOMElement getElementById(String id) {
+ return vpeController.getXulRunnerEditor()
+ .getDOMDocument().getElementById(id);
+ }
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java 2010-09-27 14:04:18 UTC (rev 25231)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java 2010-09-27 14:14:32 UTC (rev 25232)
@@ -13,10 +13,13 @@
import static org.jboss.tools.vpe.xulrunner.util.XPCOM.queryInterface;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.jboss.tools.vpe.xulrunner.BrowserPlugin;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerConstants;
import org.mozilla.interfaces.nsIDOMCSSStyleDeclaration;
+import org.mozilla.interfaces.nsIDOMClientRect;
+import org.mozilla.interfaces.nsIDOMClientRectList;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMElementCSSInlineStyle;
@@ -139,67 +142,73 @@
return element;
}
- private static int findPosX(nsIDOMNSHTMLElement boxObject) {
- int curleft = 0;
+
+ private static Point getDocumentPos(nsIDOMNSHTMLElement boxElement) {
+ int x = 0;
+ int y = 0;
+ nsIDOMNSHTMLElement curBoxElement = boxElement;
+ while (curBoxElement != null) {
+ x += curBoxElement.getOffsetLeft();
+ y += curBoxElement.getOffsetTop();
+ curBoxElement = getOffsetParent(curBoxElement);
+ }
- if (boxObject.getOffsetParent() != null) {
- while (true) {
- curleft += boxObject.getOffsetLeft();
- if ( boxObject.getOffsetParent() == null)
- return curleft;
- boxObject = queryInterface(boxObject.getOffsetParent(), nsIDOMNSHTMLElement.class);
- }
- } else {
- curleft += boxObject.getOffsetLeft();
- }
- return curleft;
+ return new Point(x, y);
}
- private static int findPosY(nsIDOMNSHTMLElement boxObject) {
- int curleft = 0;
-
- if (boxObject.getOffsetParent() != null) {
- while (true) {
- curleft += boxObject.getOffsetTop();
- if ( boxObject.getOffsetParent() == null)
- return curleft;
- boxObject = queryInterface(boxObject.getOffsetParent(), nsIDOMNSHTMLElement.class);
- }
+ private static nsIDOMNSHTMLElement getOffsetParent(
+ nsIDOMNSHTMLElement boxElement) {
+ nsIDOMElement offsetParent = boxElement.getOffsetParent();
+ if (offsetParent != null) {
+ return queryInterface(offsetParent, nsIDOMNSHTMLElement.class);
} else {
- curleft += boxObject.getOffsetTop();
+ return null;
}
- return curleft;
}
+
+ private static Point getClientSize(nsIDOMNSElement element) {
+ int width = 0;
+ int height = 0;
+ nsIDOMClientRectList clientRects = element.getClientRects();
+ if (clientRects.getLength() > 0) {
+ nsIDOMClientRect firstRect = clientRects.item(0);
+ width = (int) firstRect.getWidth();
+ height = (int) firstRect.getHeight();
+ }
+
+ return new Point(width, height);
+ }
/**
* @param domElement
* @return Rectangle
*/
- static public Rectangle getElementBounds(nsIDOMNode domNode) {
+ static public Rectangle getElementBounds(nsIDOMNode node) {
try {
- nsIDOMNSElement htmlElement = queryInterface(domNode, nsIDOMNSElement.class);
- nsIDOMNSHTMLElement domNSHTMLElement = queryInterface(domNode, nsIDOMNSHTMLElement.class);
- Rectangle rectangle = new Rectangle(findPosX(domNSHTMLElement),
- findPosY(domNSHTMLElement),
- htmlElement.getClientWidth(),
- htmlElement.getClientHeight());
+ nsIDOMNSElement element = queryInterface(node, nsIDOMNSElement.class);
+ nsIDOMNSHTMLElement htmlElement = queryInterface(node, nsIDOMNSHTMLElement.class);
+ Point documentPos = getDocumentPos(htmlElement);
+ Point clientSize = getClientSize(element);
+ Rectangle rectangle = new Rectangle(documentPos.x, documentPos.y,
+ clientSize.x, clientSize.y);
if (BrowserPlugin.PRINT_ELEMENT_BOUNDS) {
System.out.println("getElementBounds(IDOMNode) returns "
+ rectangle);
System.out
.println("nsIDOMNSHTMLElement getOffsetLeft,getOffsetTop,getOffsetWidth,getOffsetHeight"
- + new Rectangle(domNSHTMLElement.getOffsetLeft(),
- domNSHTMLElement.getOffsetTop(), domNSHTMLElement
- .getOffsetWidth(), domNSHTMLElement
+ + new Rectangle(htmlElement.getOffsetLeft(),
+ htmlElement.getOffsetTop(), htmlElement
+ .getOffsetWidth(), htmlElement
.getOffsetHeight()));
System.out
.println("nsIDOMNSElement getClientLeft,getClientTop,getClientWidth,getClientHeight"
- + new Rectangle(htmlElement.getClientLeft(),
- htmlElement.getClientTop(), htmlElement
- .getClientWidth(), htmlElement
+ + new Rectangle(element.getClientLeft(),
+ element.getClientTop(), element
+ .getClientWidth(), element
.getClientHeight()));
}
+
return rectangle;
} catch (XPCOMException xpcomException) {
15 years, 6 months
JBoss Tools SVN: r25231 - trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-09-27 10:04:18 -0400 (Mon, 27 Sep 2010)
New Revision: 25231
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/ELValidator.java
Log:
JBIDE-7067
https://jira.jboss.org/browse/JBIDE-7067
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/ELValidator.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/ELValidator.java 2010-09-27 13:59:52 UTC (rev 25230)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/ELValidator.java 2010-09-27 14:04:18 UTC (rev 25231)
@@ -229,6 +229,9 @@
currentProject = project;
currentSources = EclipseResourceUtil.getJavaSourceRoots(project);
}
+ if(!enabled) {
+ return false;
+ }
// Validate all files from java source folders.
for (int i = 0; currentSources!=null && i < currentSources.length; i++) {
if(currentSources[i].getLocation().isPrefixOf(file.getLocation())) {
15 years, 6 months
JBoss Tools SVN: r25230 - trunk/vpe/plugins/org.jboss.tools.vpe.docbook/templates.
by jbosstools-commits@lists.jboss.org
Author: dvinnichek
Date: 2010-09-27 09:59:52 -0400 (Mon, 27 Sep 2010)
New Revision: 25230
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.docbook/templates/vpe-templates-docbook.xml
Log:
remove rendering of <colspec> in JBoss Tools Docbook Editor (https://jira.jboss.org/browse/JBIDE-7177)
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.docbook/templates/vpe-templates-docbook.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.docbook/templates/vpe-templates-docbook.xml 2010-09-27 13:49:49 UTC (rev 25229)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.docbook/templates/vpe-templates-docbook.xml 2010-09-27 13:59:52 UTC (rev 25230)
@@ -590,9 +590,7 @@
</vpe:template>
</vpe:tag>
<vpe:tag name="colspec" case-sensitive="yes" docbook="yes">
- <vpe:template children="no" modify="yes">
- <vpe:any />
- </vpe:template>
+ <vpe:template children="no" modify="yes"/>
</vpe:tag>
<vpe:tag name="application" case-sensitive="yes" docbook="yes">
<vpe:template children="no" modify="yes">
15 years, 6 months
JBoss Tools SVN: r25229 - in trunk/documentation/whatsnew/jst: images and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-09-27 09:49:49 -0400 (Mon, 27 Sep 2010)
New Revision: 25229
Added:
trunk/documentation/whatsnew/jst/images/3.2.0.Beta1/
trunk/documentation/whatsnew/jst/images/3.2.0.Beta1/facetNames.gif
trunk/documentation/whatsnew/jst/images/3.2.0.Beta1/preferences.png
trunk/documentation/whatsnew/jst/jst-news-3.2.0.Beta1.html
Log:
JBIDE-7134 N&N for JST/JSF components for 3.2.0.Beta1
https://jira.jboss.org/browse/JBIDE-7134
Added: trunk/documentation/whatsnew/jst/images/3.2.0.Beta1/facetNames.gif
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.2.0.Beta1/facetNames.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/images/3.2.0.Beta1/preferences.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.2.0.Beta1/preferences.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/jst-news-3.2.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.2.0.Beta1.html (rev 0)
+++ trunk/documentation/whatsnew/jst/jst-news-3.2.0.Beta1.html 2010-09-27 13:49:49 UTC (rev 25229)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>JST/JSF 3.2.0.Beta1 What's New</title>
+</head>
+<body>
+<h1>JST/JSF 3.2.0.Beta1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main
+ Index</a> <a href="../vpe/vpe-news-3.2.0.Beta1.html">VPE Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+<tr>
+ <td colspan="2">
+ <hr />
+ <h3>Code completion</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>MyFaces 2.0 components</b></p>
+ </td>
+ <td valign="top">
+ <p>MyFaces 2.0 doesn't contain facelets tag libraries for JSH HTML & Core components.
+ myfaces-metadata.xml is used istead.<br/>
+ myfaces-metadata.xml is now supported and code completion for JSF components bundled with MyFaces 2.0 is available.</p>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-7086">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Facet names for <f:facet name=""></b></p>
+ </td>
+ <td valign="top">
+ <p>Content completion for faset@name attribute based on parent JSF tag metadata is available.</p>
+ <img src="images/3.2.0.Beta1/facetNames.gif"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-3875">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Code completion for getters/setters</b></p>
+ </td>
+ <td valign="top">
+ <p>There are new options in Preferences to disable/enable code completion for getteres and setters in EL.</p>
+ <img src="images/3.2.0.Beta1/preferences.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6259">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+</table>
+
+</body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/documentation/whatsnew/jst/jst-news-3.2.0.Beta1.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 6 months
JBoss Tools SVN: r25228 - trunk/gwt/plugins/org.jboss.tools.gwt.core.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-09-27 09:48:43 -0400 (Mon, 27 Sep 2010)
New Revision: 25228
Modified:
trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml
Log:
JBIDE-7080 GWT facet doesn't work correctly with Web Module 2.4
Modified: trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml 2010-09-27 13:13:07 UTC (rev 25227)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml 2010-09-27 13:48:43 UTC (rev 25228)
@@ -19,7 +19,7 @@
<and>
<requires
facet="jst.web"
- version="[2.4">
+ version="[2.5">
</requires>
<requires
facet="jst.java"
@@ -35,7 +35,7 @@
<and>
<requires
facet="jst.web"
- version="[2.4">
+ version="[2.5">
</requires>
<requires
facet="jst.java"
15 years, 6 months
JBoss Tools SVN: r25227 - trunk/modeshape/tests/org.jboss.tools.modeshape.rest.test/src/org/jboss/tools/modeshape/rest.
by jbosstools-commits@lists.jboss.org
Author: elvisisking
Date: 2010-09-27 09:13:07 -0400 (Mon, 27 Sep 2010)
New Revision: 25227
Modified:
trunk/modeshape/tests/org.jboss.tools.modeshape.rest.test/src/org/jboss/tools/modeshape/rest/MockRestClient.java
Log:
JBDS-1337 compilation errors in modeshape in JBDS 4.0.0.Beta1 and Beta2 (trunk): Removed the @Override tags from the MockRestClient class.
Modified: trunk/modeshape/tests/org.jboss.tools.modeshape.rest.test/src/org/jboss/tools/modeshape/rest/MockRestClient.java
===================================================================
--- trunk/modeshape/tests/org.jboss.tools.modeshape.rest.test/src/org/jboss/tools/modeshape/rest/MockRestClient.java 2010-09-27 13:02:15 UTC (rev 25226)
+++ trunk/modeshape/tests/org.jboss.tools.modeshape.rest.test/src/org/jboss/tools/modeshape/rest/MockRestClient.java 2010-09-27 13:13:07 UTC (rev 25227)
@@ -74,7 +74,6 @@
* @see org.modeshape.web.jcr.rest.client.IRestClient#publish(org.modeshape.web.jcr.rest.client.domain.Workspace,
* java.lang.String, java.io.File)
*/
- @Override
public Status publish( Workspace workspace,
String path,
File file ) {
15 years, 6 months
JBoss Tools SVN: r25226 - trunk/common/plugins/org.jboss.tools.common.model.ui.capabilities.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-09-27 09:02:15 -0400 (Mon, 27 Sep 2010)
New Revision: 25226
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui.capabilities/build.properties
Log:
JBIDE-7190
https://jira.jboss.org/browse/JBIDE-7190
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui.capabilities/build.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui.capabilities/build.properties 2010-09-27 12:04:36 UTC (rev 25225)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui.capabilities/build.properties 2010-09-27 13:02:15 UTC (rev 25226)
@@ -2,4 +2,5 @@
output.. = bin/
bin.includes = META-INF/,\
.,\
- plugin.xml
+ plugin.xml,\
+ plugin.properties
15 years, 6 months
JBoss Tools SVN: r25225 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-09-27 08:04:36 -0400 (Mon, 27 Sep 2010)
New Revision: 25225
Added:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/ThreadSafeCopyFactory.java
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarFolderImpl.java
Log:
JBIDE-7148
https://jira.jboss.org/browse/JBIDE-7148
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2010-09-27 11:01:11 UTC (rev 25224)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2010-09-27 12:04:36 UTC (rev 25225)
@@ -12,7 +12,6 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
-import org.eclipse.swt.widgets.Display;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -24,7 +23,6 @@
import org.jboss.tools.common.model.filesystems.impl.AbstractXMLFileImpl;
import org.jboss.tools.common.model.loaders.*;
import org.jboss.tools.common.model.markers.ConstraintChecker;
-import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.impl.*;
import org.jboss.tools.common.model.util.*;
@@ -35,9 +33,21 @@
public class AbstractExtendedXMLFileImpl extends AbstractXMLFileImpl {
private static final long serialVersionUID = 7942041044569562286L;
ConstraintChecker constraintChecker = new ConstraintChecker(this);
+
+ ThreadSafeCopyFactory threadSafeCopyFactory = null;
public AbstractExtendedXMLFileImpl() {}
+ /**
+ * Returns ready to be loaded copy of this object if and only if this object is being loaded by another thread.
+ * Otherwise, returns null.
+ *
+ * @return
+ */
+ XModelObject getThreadSafeCopy() {
+ return threadSafeCopyFactory == null ? null : threadSafeCopyFactory.getThreadSafeCopy();
+ }
+
public boolean hasChildren() {
return true;
}
@@ -52,6 +62,11 @@
if(loadAttributeSeparately(name)) return super.get(name);
loadChildren();
+ XModelObject copy = getThreadSafeCopy();
+ if(copy != null) {
+ return copy.get(name);
+ }
+
}
return super.get(name);
}
@@ -74,7 +89,8 @@
*/
private boolean loadAttributeSeparately(String xmlname) {
BodySource source = getBodySource();
- if(source == null) return true;
+ if(source == null) return threadSafeCopyFactory == null;
+
if(!shouldLoadAttributeSeparately(xmlname)) return false;
if(xmlname == null || xmlname.length() == 0) return false;
String oldvalue = super.get(xmlname);
@@ -95,20 +111,34 @@
public boolean isObjectEditable() {
return super.isObjectEditable() && (!XModelObjectConstants.YES.equals(get("_hasErrors_"))); //$NON-NLS-1$
}
+
+ public XModelObject[] getChildren() {
+ XModelObject copy = getThreadSafeCopy();
+ return (copy != null) ? copy.getChildren() : super.getChildren();
+ }
protected void loadChildren() {
+ getThreadSafeCopy();
+
BodySource source = getBodySource();
if (source == null) return;
+
+ threadSafeCopyFactory = new ThreadSafeCopyFactory(this);
+
super.setBodySource(null);
XObjectLoader loader = XModelObjectLoaderUtil.getObjectLoader(this);
String body = source.get();
XModelObjectLoaderUtil.setTempBody(this, body);
loader.load(this);
+
+ threadSafeCopyFactory.destroy();
+ threadSafeCopyFactory = null;
+
if(!isIncorrect() && !isOverlapped()) {
runCheckerOnLoad();
}
}
- WorkspaceJob checkerOnLoad = new WorkspaceJob("Checking on load...") {
+ WorkspaceJob checkerOnLoad = new WorkspaceJob("Checking on load...") { //$NON-NLS-1$
@Override
public IStatus runInWorkspace(IProgressMonitor monitor)
@@ -166,7 +196,7 @@
String entity = getModel().getEntityRecognizer().getEntityName(new EntityRecognizerContext(toFileName(this), getAttributeValue(XModelObjectConstants.ATTR_NAME_EXTENSION), body));
if(entity == null || !entity.equals(getModelEntity().getName())) {
String[] errors = (body.length() == 0) ? null : XMLUtil.getXMLErrors(new java.io.StringReader(body), false);
- if(errors == null || errors.length == 0) errors = new String[]{"Doctype has been changed. Please save file for the change to take effect in object model. :0:0"};
+ if(errors == null || errors.length == 0) errors = new String[]{"Doctype has been changed. Please save file for the change to take effect in object model. :0:0"}; //$NON-NLS-1$
setErrors(body, errors);
XModelImpl m = (XModelImpl)getModel();
m.fireStructureChanged(this);
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java 2010-09-27 11:01:11 UTC (rev 25224)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java 2010-09-27 12:04:36 UTC (rev 25225)
@@ -47,6 +47,7 @@
import org.jboss.tools.common.model.filesystems.XFileObject;
import org.jboss.tools.common.model.impl.RegularObjectImpl;
import org.jboss.tools.common.model.impl.XModelImpl;
+import org.jboss.tools.common.model.impl.XModelObjectImpl;
import org.jboss.tools.common.model.loaders.AuxiliaryLoader;
import org.jboss.tools.common.model.loaders.EntityRecognizerContext;
import org.jboss.tools.common.model.loaders.Reloadable;
@@ -220,7 +221,7 @@
}
addChild(c);
} else {
- createFileObject(f);
+ createFileObject(f, true);
}
peer.register(f);
}
@@ -245,18 +246,22 @@
return p;
}
- private void createFileObject(File f) {
- createFileObject(f, getEntityProperties(f));
+ private XModelObject createFileObject(File f, boolean add) {
+ return createFileObject(f, getEntityProperties(f), add);
}
- private void createFileObject(File f, Properties p) {
+ private XModelObject createFileObject(File f, Properties p) {
+ return createFileObject(f, p, true);
+ }
+
+ private XModelObject createFileObject(File f, Properties p, boolean add) {
BodySource bs = getBodySource(f);
String body = p.getProperty(XModelObjectConstants.ATTR_NAME_BODY);
String entity = p.getProperty(XMetaDataConstants.ENTITY);
XModelObject c = getModel().createModelObject(entity, p);
if(c == null) {
ModelPlugin.getPluginLog().logInfo("Cannot create file for entity " + entity); //$NON-NLS-1$
- return;
+ return null;
}
if(isLateloadFile2(c)) {
((FileAnyImpl)c).setBodySource(bs);
@@ -277,9 +282,25 @@
if(linked.filesByFileName.containsValue(f)) {
c.setObject("file", f); //$NON-NLS-1$
}
- addChild(c);
+ if(add) {
+ addChild(c);
+ } else {
+ ((XModelObjectImpl)c).setParent_0(this);
+ }
+
+ return c;
}
+ public XModelObject createValidChildCopy(XModelObject child) {
+ File pf = getFile();
+ String s = FileAnyImpl.toFileName(child);
+ File f = new File(pf, s);
+ if(f.exists()) {
+ return createFileObject(f, false);
+ }
+ return null;
+ }
+
int updateLock = 0;
Set<String> unsynchronized = null;
public boolean update() {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java 2010-09-27 11:01:11 UTC (rev 25224)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java 2010-09-27 12:04:36 UTC (rev 25225)
@@ -60,11 +60,11 @@
return location;
}
- public boolean isLoaded() {
+ public synchronized boolean isLoaded() {
return (exists || loading);
}
- public void validate() {
+ public synchronized void validate() {
if (isLoaded()) return;
loading = true;
templocation = null;
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarFolderImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarFolderImpl.java 2010-09-27 11:01:11 UTC (rev 25224)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarFolderImpl.java 2010-09-27 12:04:36 UTC (rev 25225)
@@ -75,7 +75,7 @@
XModelObject c = getModel().createModelObject("JarFolder", p); //$NON-NLS-1$
addChild(c);
} else {
- createFileObject(jar, path, cs[i]);
+ createFileObject(jar, path, cs[i], true);
}
}
fire = true;
@@ -83,7 +83,7 @@
loaded = true;
}
- private void createFileObject(JarAccess jar, String path, String name) {
+ private XModelObject createFileObject(JarAccess jar, String path, String name, boolean add) {
String cpath = (path.length() == 0) ? name : path + XModelObjectConstants.SEPARATOR + name;
Properties p = new Properties();
FolderImpl.parseFileName(p, name);
@@ -110,9 +110,25 @@
loader.load(c);
}
}
- addChild(c);
+ if(add) {
+ addChild(c);
+ } else {
+ ((XModelObjectImpl)c).setParent_0(this);
+ }
+ return c;
}
+ public XModelObject createValidChildCopy(XModelObject child) {
+ JarAccess jar = getJarSystem().getJarAccess();
+ if(!jar.isLoaded()) return null;
+ jar.lockJar();
+ String path = getAbsolutePath();
+ String item = FileAnyImpl.toFileName(child);
+ XModelObject copy = createFileObject(jar, path, item, false);
+ jar.unlockJar();
+ return copy;
+ }
+
protected boolean fire = false;
protected void fireStructureChanged(int kind, Object info) {
Added: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/ThreadSafeCopyFactory.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/ThreadSafeCopyFactory.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/ThreadSafeCopyFactory.java 2010-09-27 12:04:36 UTC (rev 25225)
@@ -0,0 +1,92 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.model.filesystems.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.jboss.tools.common.model.XModelObject;
+
+/**
+ * This factory provides a new ready to be loaded copy of delegated model object in case when
+ * the delegated model object is being loaded by another thread, and there is a danger of deadlock
+ * in waiting for completion of its loading. If the delegate is loaded, factory returns null.
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class ThreadSafeCopyFactory {
+ XModelObject object;
+
+ Thread loadingThread = Thread.currentThread();
+ Map<Thread, XModelObject> concurrentlyLoaded = null;
+
+ public ThreadSafeCopyFactory(XModelObject object) {
+ this.object = object;
+ }
+
+ /**
+ * Returns ready to be loaded copy of model object if and only if
+ * this object is being loaded by another thread.
+ * Otherwise, returns null.
+ *
+ * @return
+ */
+ XModelObject getThreadSafeCopy() {
+ if(loadingThread == null) {
+ concurrentlyLoaded = null;
+ return null;
+ }
+ if(Thread.currentThread() == loadingThread) {
+ return null;
+ }
+
+ Map<Thread, XModelObject> map = concurrentlyLoaded;
+ XModelObject copy = null;
+ if(map != null) {
+ copy = map.get(Thread.currentThread());
+ if(copy != null) return copy;
+ }
+ if(object.getParent() instanceof JarFolderImpl) {
+ copy = ((JarFolderImpl)object.getParent()).createValidChildCopy(object);
+ } else if(object.getParent() instanceof FolderImpl) {
+ copy = ((FolderImpl)object.getParent()).createValidChildCopy(object);
+ }
+ if(copy != null) {
+// System.out.println("Created copy of " + copy.getPath() + " for thread " + Thread.currentThread() + ". Main object is being loaded by thread " + loadingThread);
+ //Let us wait a bit for this object, maybe there is no lock.
+ for (int i = 0; i < 50; i++) {
+ Thread t = loadingThread;
+ if (t != null) try {
+ t.join(100);
+ } catch (InterruptedException e) {
+ //ignore
+ }
+ if(loadingThread == null) {
+// System.out.println("Drop copy of " + FileAnyImpl.toFileName(copy) + " for thread " + Thread.currentThread() + ". Main object is loaded while it was built in " + (i * 100) + " ms.");
+ return null;
+ }
+ }
+ if(map == null) {
+ map = new HashMap<Thread, XModelObject>();
+ concurrentlyLoaded = map;
+ }
+ map.put(Thread.currentThread(), (AbstractExtendedXMLFileImpl)copy);
+ }
+ return copy;
+ }
+
+ public void destroy() {
+ loadingThread = null;
+ concurrentlyLoaded = null;
+ }
+
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/ThreadSafeCopyFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 6 months
JBoss Tools SVN: r25224 - trunk/documentation/whatsnew/hibernate.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2010-09-27 07:01:11 -0400 (Mon, 27 Sep 2010)
New Revision: 25224
Modified:
trunk/documentation/whatsnew/hibernate/hibernate-news-3.4.0.Beta1.html
Log:
JBIDE-7130
QueryExporter changed to Query Exporter in text.
Modified: trunk/documentation/whatsnew/hibernate/hibernate-news-3.4.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/hibernate/hibernate-news-3.4.0.Beta1.html 2010-09-27 11:00:57 UTC (rev 25223)
+++ trunk/documentation/whatsnew/hibernate/hibernate-news-3.4.0.Beta1.html 2010-09-27 11:01:11 UTC (rev 25224)
@@ -80,11 +80,11 @@
</tr>
<tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>QueryExporter was added</b></td>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Query Exporter was added</b></td>
<td valign="top">
- <p>Possibility to execute QueryExporter task from Hibernate Tools Core</p>
+ <p>Possibility to execute Query Exporter from Hibernate Tools Core</p>
<p><img src="images/queryexporter-in-gui.jpg"/></p>
- <p>QueryExporter task in generated Ant code</p>
+ <p>Query Exporter in generated Ant code</p>
<p><img src="images/queryexporter-result-of-ant-script-generation.jpg"/></p>
<p><small><a href="https://jira.jboss.org/browse/JBIDE-6703">Related jira</a></p>
</td>
15 years, 6 months
JBoss Tools SVN: r25223 - in trunk/documentation/whatsnew/seam: images and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-09-27 07:00:57 -0400 (Mon, 27 Sep 2010)
New Revision: 25223
Added:
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/AddAnnotatedDestroyMethod.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/AddAnnotatedRemoveMethod.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DeleteDestroyAnnotation.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DeleteRemoveAnnotation.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DuplicateComponent.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/EntityComponentHasWrongScope.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/NonComponentWithCreateMethod.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/StatefulComponentHasWrongScope.png
trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/pagesXmlValidation.gif
trunk/documentation/whatsnew/seam/seam-news-3.2.0.Beta1.html
Log:
JBIDE-7135 N&N for Seam 3.2.0.Beta1
https://jira.jboss.org/browse/JBIDE-7135
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/AddAnnotatedDestroyMethod.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/AddAnnotatedDestroyMethod.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/AddAnnotatedRemoveMethod.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/AddAnnotatedRemoveMethod.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DeleteDestroyAnnotation.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DeleteDestroyAnnotation.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DeleteRemoveAnnotation.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DeleteRemoveAnnotation.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DuplicateComponent.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/DuplicateComponent.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/EntityComponentHasWrongScope.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/EntityComponentHasWrongScope.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/NonComponentWithCreateMethod.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/NonComponentWithCreateMethod.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/StatefulComponentHasWrongScope.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/StatefulComponentHasWrongScope.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/pagesXmlValidation.gif
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/3.2.0.Beta1/pagesXmlValidation.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/seam-news-3.2.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/seam/seam-news-3.2.0.Beta1.html (rev 0)
+++ trunk/documentation/whatsnew/seam/seam-news-3.2.0.Beta1.html 2010-09-27 11:00:57 UTC (rev 25223)
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>Seam tools 3.2.0.Beta1 What's New</title>
+</head>
+<body>
+<h1>Seam tools 3.2.0.Beta1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../bpel/bpel-news-1.1.0.Beta1.html">BPEL Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+<tr>
+ <td colspan="2">
+ <hr />
+ <h3>Quick Fixes</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Duplicate component name</b></p>
+ </td>
+ <td valign="top">
+ <p>Two quick fixes are available now for duplicate component names:<br/>
+ 1. Rename the duplicate component name<br/>
+ 2. Delete @Name annotation</p>
+ <img src="images/3.2.0.Beta1/DuplicateComponent.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6869">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Stateful component w/o @Remove/@Destroy method.</b></p>
+ </td>
+ <td valign="top">
+ <p>@Remove/@Destroy methods can be added via Quick Fix menu</p>
+ <img src="images/3.2.0.Beta1/AddAnnotatedDestroyMethod.png"/><br/><br/>
+ <img src="images/3.2.0.Beta1/AddAnnotatedRemoveMethod.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6870">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Stateful/Entity component with wrong scope</b></p>
+ </td>
+ <td valign="top">
+ <p>Quick Fix for wrong scope type of a Statful/Entity component is now available.</p>
+ <img src="images/3.2.0.Beta1/StatefulComponentHasWrongScope.png"/><br/><br/>
+ <img src="images/3.2.0.Beta1/EntityComponentHasWrongScope.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6871">Related Jira 1</a>,
+ <a
+ href="https://jira.jboss.org/browse/JBIDE-6873">Related Jira2</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Duplicate component methods</b></p>
+ </td>
+ <td valign="top">
+ <p>Quick Fixes for duplicate @Remove, @Destroy, @Create and @Unwrap methods are available.</p>
+ <img src="images/3.2.0.Beta1/DeleteRemoveAnnotation.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6874">Related Jira 1</a>,
+ <a
+ href="https://jira.jboss.org/browse/JBIDE-6875">Related Jira 2</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Unsupported @Destroy method</b></p>
+ </td>
+ <td valign="top">
+ <p>Only JavaBeans and stateful session beans support @Destroy methods.
+ So a Quick Fix for components that don't support @Destroy method is now avalible.</p>
+ <img src="images/3.2.0.Beta1/DeleteDestroyAnnotation.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6876">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Unsupported @Create/@Unwrap/@Observer method</b></p>
+ </td>
+ <td valign="top">
+ <p>Only component class can have @Create/@Unwrap/@Observer method.
+ The following Quick Fixes for such classes with unsupported methods are now avalible:<br/>
+ 1. Add @Name annotation to the class<br/>
+ 2. Delete @Create/@Unwrap/@Observer annotation</p>
+ <img src="images/3.2.0.Beta1/NonComponentWithCreateMethod.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6877">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>Validation</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>view-id validation in pages.xml</b></p>
+ </td>
+ <td valign="top">
+ <p>"view-id" attributes in pages.xml will now be validated.</p>
+ <img src="images/3.2.0.Beta1/pagesXmlValidation.gif"/>
+ <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-6360">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/documentation/whatsnew/seam/seam-news-3.2.0.Beta1.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 6 months