JBoss Tools SVN: r23325 - trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2010-07-08 16:06:32 -0400 (Thu, 08 Jul 2010)
New Revision: 23325
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/TesterWSDLUtils.java
Log:
[JBIDE-6593] Fixes for funky schema imported by wsdl imported by wsdl pattern.
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/TesterWSDLUtils.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/TesterWSDLUtils.java 2010-07-08 17:22:56 UTC (rev 23324)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/TesterWSDLUtils.java 2010-07-08 20:06:32 UTC (rev 23325)
@@ -46,6 +46,7 @@
import javax.xml.namespace.QName;
//import org.jdom.Attribute;
+import org.jdom.Namespace;
import org.jdom.input.DOMBuilder;
import com.ibm.wsdl.Constants;
@@ -373,7 +374,7 @@
Schema schema = (Schema) types.getExtensibilityElements().get(0);
DOMBuilder domBuilder = new DOMBuilder();
org.jdom.Element jdomSchemaElement = domBuilder.build(schema.getElement());
-
+
List<?> list = jdomSchemaElement.getChildren();
if (list.size() > 0) {
org.jdom.Element checkForImport = (org.jdom.Element) list.get(0);
@@ -427,6 +428,20 @@
rootName = temp.getAttribute(NAME_ATTR).getValue();
if (rootName.equalsIgnoreCase(messageName)) {
+ if (temp.getParentElement().getAdditionalNamespaces() != null && temp.getParentElement().getAdditionalNamespaces().size() > 0) {
+ @SuppressWarnings("unchecked")
+ List<Namespace> addlNamespaces = temp.getParentElement().getAdditionalNamespaces();
+ for (int j = 0; j < addlNamespaces.size(); j++) {
+ Namespace addlNS = addlNamespaces.get(j);
+ if (addlNS.getPrefix().equalsIgnoreCase("tns")) { //$NON-NLS-1$
+ if (!addlNS.getURI().equalsIgnoreCase(namespace)) {
+ namespace = addlNS.getURI();
+ break;
+ }
+ }
+ }
+ }
+
StringBuffer buf = new StringBuffer();
buf.append('<');
if (partName != null) {
@@ -618,7 +633,7 @@
public static String createMessageForSchemaElement ( Definition wsdlDefinition, String partName, String messageName, String namespace ) {
Types types = wsdlDefinition.getTypes();
- if (types == null) {
+ if (types == null || wsdlDefinition.getImports().size() > 0) {
Map<?, ?> imports = wsdlDefinition.getImports();
Set<?> importKeys = imports.keySet();
for( Iterator<?> it2 = importKeys.iterator(); it2.hasNext(); ) {
@@ -627,9 +642,10 @@
Iterator<?> iter = importVector.iterator();
while (iter.hasNext()) {
Import importInstance = (Import) iter.next();
+// namespace = importInstance.getNamespaceURI();
if (importInstance.getDefinition().getTypes() != null) {
- types = importInstance.getDefinition().getTypes();
- String attempt = createMessageForSchemaElementFromTypes(wsdlDefinition, types, partName, messageName, namespace);
+ Types temptypes = importInstance.getDefinition().getTypes();
+ String attempt = createMessageForSchemaElementFromTypes(wsdlDefinition, temptypes, partName, messageName, namespace);
if (attempt != null)
return attempt;
} else if (importInstance.getDefinition().getImports() != null) {
@@ -639,6 +655,10 @@
}
}
}
+ // if we got this far, it wasn't found in the imports
+ String attempt = createMessageForSchemaElementFromTypes(wsdlDefinition, types, partName, messageName, namespace);
+ if (attempt != null)
+ return attempt;
} else {
String attempt = createMessageForSchemaElementFromTypes(wsdlDefinition, types, partName, messageName, namespace);
if (attempt != null)
15 years, 9 months
JBoss Tools SVN: r23324 - in trunk/documentation/whatsnew/cdi: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-07-08 13:22:56 -0400 (Thu, 08 Jul 2010)
New Revision: 23324
Added:
trunk/documentation/whatsnew/cdi/cdi-news-3.2.0.M1.html
trunk/documentation/whatsnew/cdi/images/CDIAnnotationWizards.png
trunk/documentation/whatsnew/cdi/images/DisposerOpenOn.png
trunk/documentation/whatsnew/cdi/images/NewQualifierWizard.png
trunk/documentation/whatsnew/cdi/images/ProducerOpenOn.png
Log:
New and noteworthy 3.2.0.M1
Added: trunk/documentation/whatsnew/cdi/cdi-news-3.2.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/cdi/cdi-news-3.2.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/cdi/cdi-news-3.2.0.M1.html 2010-07-08 17:22:56 UTC (rev 23324)
@@ -0,0 +1,151 @@
+<?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>CDI tools 3.2.0.M1 What's New</title>
+</head>
+<body>
+<h1>CDI tools 3.2.0.M1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../jst/jst-news-3.1.0.M4.html">JST/JSF Tools News ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+<tr>
+ <td colspan="2">
+ <hr />
+ <h3>New Wizards</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>New Quilifier Type Wizard</b></p>
+ </td>
+ <td valign="top">
+ <p>Qualifier Type Wizard creates qualifier annotation type.</p>
+ <img src="images/CDIAnnotationWizards.png"/><br><br>
+ <img src="images/NewQualifierWizard.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-6413">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>New Stereotype Wizard</b></p>
+ </td>
+ <td valign="top">
+ <p>Stereotype Wizard creates stereotype annotation type.</p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-6414">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>New Interceptor Binding Type Wizard</b></p>
+ </td>
+ <td valign="top">
+ <p>Interceptor Binding Type Wizard creates interceptor annotation type.</p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-6415">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>New Scope Type Wizard</b></p>
+ </td>
+ <td valign="top">
+ <p>Scope Type Wizard creates scope annotation type.</p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-6416">Related Jira</a></small></p>
+ </td>
+ </tr>
+<tr>
+ <td colspan="2">
+ <hr />
+ <h3>Hyperlinks (OpenOns)</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>OpenOn for Disposer/Producer methods</b></p>
+ </td>
+ <td valign="top">
+ <p>If user ctrl+click on Disposer (Producer) method, this OpenOn suggests opening the bound producer (disposer) method.</p>
+ <img src="images/ProducerOpenOn.png"/><br><br>
+ <img src="images/DisposerOpenOn.png"/>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-6251">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+<tr>
+ <td colspan="2">
+ <hr />
+ <h3>Project Validation</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Unsatisfied and ambiguous dependencies validation for CDI Injection points</b></p>
+ </td>
+ <td valign="top">
+ <p>CDI projects are validated now against the unsatisfied and ambiquos dependencies.</p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-6418">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+<tr>
+ <td colspan="2">
+ <hr />
+ <h3>Refactoring</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Rename action for CDI @Named beans</b></p>
+ </td>
+ <td valign="top">
+ <p>Rename action for CDI @Named beans also shows
+ all resources that has references renamed element in EL.</p>
+ <p>Rename action is available from context menu on a @Named annotation in Java Source editor.</p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-5927">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
Property changes on: trunk/documentation/whatsnew/cdi/cdi-news-3.2.0.M1.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/documentation/whatsnew/cdi/images/CDIAnnotationWizards.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/cdi/images/CDIAnnotationWizards.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/cdi/images/DisposerOpenOn.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/cdi/images/DisposerOpenOn.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/cdi/images/NewQualifierWizard.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/cdi/images/NewQualifierWizard.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/cdi/images/ProducerOpenOn.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/cdi/images/ProducerOpenOn.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 9 months
JBoss Tools SVN: r23323 - in trunk/documentation/whatsnew/vpe: images/3.2.0.M1 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-07-08 13:20:27 -0400 (Thu, 08 Jul 2010)
New Revision: 23323
Added:
trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-attribute.png
trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-component.png
trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-folder.png
Modified:
trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html
Log:
Description of new JSF 2 Quick Fixes has been added to 'What's New Visual Page Editor 3.2.0.M1'.
Added: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-attribute.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-attribute.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-component.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-component.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-folder.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/jsf2-create-folder.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html 2010-07-08 16:11:57 UTC (rev 23322)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html 2010-07-08 17:20:27 UTC (rev 23323)
@@ -22,12 +22,36 @@
</td>
</tr>
<tr>
+ <td valign="top" align="left"><b>Quick Fixes for JSF 2</b></td>
+ <td valign="top">
+ <ul><li>
+ Quick fix to create JSF 2 composite folder:
+ <p><img src="images/3.2.0.M1/jsf2-create-folder.png"
+ alt="Create JSF 2 Composite Folder" /></p>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-5922">Related Jira</a></small></p>
+ </li>
+ <li>
+ Quick fix to create JSF 2 composite component:
+ <p><img src="images/3.2.0.M1/jsf2-create-component.png"
+ alt="Create JSF 2 Composite Component" /></p>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-5930">Related Jira</a></small></p>
+ </li>
+ <li>
+ Quick fix to create attributes in JSF 2 composite component:
+ <p><img src="images/3.2.0.M1/jsf2-create-attribute.png"
+ alt="Create attribute in JSF 2 Composite Component" /></p>
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-5937">Related Jira</a></small></p>
+ </li></ul>
+ </td>
+ </tr>
+ <tr><td colspan="2"><hr/></td></tr>
+ <tr>
<td valign="top" align="left"><b>XHTML Templates</b></td>
<td valign="top">
Now templates for new XHTML pages may be edited in the conventional way.
<p><img src="images/3.2.0.M1/xhtml-templates.png"
- alt="VPE Drag&Drop" /></p>
+ alt="XHTML Templates Editor" /></p>
<p><small><a
href="https://jira.jboss.org/jira/browse/JBIDE-6131">Related Jira</a></small></p>
</td>
15 years, 9 months
JBoss Tools SVN: r23322 - trunk/bpel/releng.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-07-08 12:11:57 -0400 (Thu, 08 Jul 2010)
New Revision: 23322
Modified:
trunk/bpel/releng/build.properties
Log:
bump up to helios requirements
Modified: trunk/bpel/releng/build.properties
===================================================================
--- trunk/bpel/releng/build.properties 2010-07-08 15:49:58 UTC (rev 23321)
+++ trunk/bpel/releng/build.properties 2010-07-08 16:11:57 UTC (rev 23322)
@@ -22,12 +22,8 @@
# To make the build go faster, use locally cached zips instead of galileo site
repositoryURLs=\
http://download.jboss.org/jbosstools/updates/nightly/trunk/,\
-http://download.jboss.org/jbosstools/updates/galileo/,\
-http://repository.jboss.org/eclipse/galileo/repos/eclipse-Update-3.5.2-201002111343.zip,\
-http://repository.jboss.org/eclipse/galileo/repos/GEF-Update-3.5.2.zip,\
-http://repository.jboss.org/eclipse/galileo/repos/dtp-Updates-1.7.2-20100224.zip,\
-http://repository.jboss.org/eclipse/galileo/repos/emf-xsd-Update-2.5.0.zip
-#http://download.eclipse.org/releases/galileo/
+http://download.eclipse.org/releases/helios/,\
+http://download.eclipse.org/eclipse/updates/3.6.x
# required if building bpel.compare.ui: org.eclipse.gmf.runtime.diagram.ui+org.eclipse.emf.compare.match+org.eclipse.emf.compare.diff+org.eclipse.emf.compare.ui+\
IUsToInstall=org.eclipse.sdk.feature.group+org.eclipse.sdk.ide+org.eclipse.core.net+org.eclipse.equinox.common+org.eclipse.core.runtime+org.eclipse.debug.core+org.eclipse.rcp.feature.group+\
15 years, 9 months
JBoss Tools SVN: r23321 - in trunk/documentation/whatsnew/vpe: images/3.2.0.M1 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-07-08 11:49:58 -0400 (Thu, 08 Jul 2010)
New Revision: 23321
Added:
trunk/documentation/whatsnew/vpe/images/3.2.0.M1/xhtml-templates.png
Modified:
trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html
Log:
Description for XHTML templates editor has been added.
Added: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/xhtml-templates.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/xhtml-templates.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html 2010-07-08 14:55:00 UTC (rev 23320)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html 2010-07-08 15:49:58 UTC (rev 23321)
@@ -22,6 +22,17 @@
</td>
</tr>
<tr>
+ <td valign="top" align="left"><b>XHTML Templates</b></td>
+ <td valign="top">
+ Now templates for new XHTML pages may be edited in the conventional way.
+
+ <p><img src="images/3.2.0.M1/xhtml-templates.png"
+ alt="VPE Drag&Drop" /></p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-6131">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
<td colspan="2">
<hr />
<h3>Editor</h3>
15 years, 9 months
JBoss Tools SVN: r23320 - in trunk/documentation/whatsnew/vpe: images/3.2.0.M1 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-07-08 10:55:00 -0400 (Thu, 08 Jul 2010)
New Revision: 23320
Added:
trunk/documentation/whatsnew/vpe/images/3.2.0.M1/vpe-drag-and-drop.png
Modified:
trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html
Log:
Drag&Drop section has been added to "What's New Visual Page Editor 3.2.0.M1".
Added: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/vpe-drag-and-drop.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/vpe/images/3.2.0.M1/vpe-drag-and-drop.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html 2010-07-08 14:54:22 UTC (rev 23319)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.2.0.M1.html 2010-07-08 14:55:00 UTC (rev 23320)
@@ -29,6 +29,19 @@
</td>
</tr>
<tr>
+ <td valign="top" align="left"><b>Enhanced Drag&Drop Support</b></td>
+ <td valign="top">
+ Drag&Drop actions became more predicable and visual. Now the elements
+ being dragged as well as available drop targets for them are rendered
+ by Visual Editor.
+
+ <p><img src="images/3.2.0.M1/vpe-drag-and-drop.png"
+ alt="VPE Drag&Drop" /></p>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-5042">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
<td colspan="2">
<hr />
<h3>Templates</h3>
15 years, 9 months
JBoss Tools SVN: r23319 - in trunk/documentation/whatsnew/seam: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-07-08 10:54:22 -0400 (Thu, 08 Jul 2010)
New Revision: 23319
Added:
trunk/documentation/whatsnew/seam/images/SeamGenEntitiesWizard.PNG
trunk/documentation/whatsnew/seam/images/ear_project.jpg
trunk/documentation/whatsnew/seam/seam-news-3.2.0.M1.html
Log:
New and noteworthy M1
Added: trunk/documentation/whatsnew/seam/images/SeamGenEntitiesWizard.PNG
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/SeamGenEntitiesWizard.PNG
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/images/ear_project.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/seam/images/ear_project.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/seam/seam-news-3.2.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/seam/seam-news-3.2.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/seam/seam-news-3.2.0.M1.html 2010-07-08 14:54:22 UTC (rev 23319)
@@ -0,0 +1,63 @@
+<?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.M1 What's New</title>
+</head>
+<body>
+<h1>Seam tools 3.2.0.M1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../jst/jst-news-3.1.0.M4.html">JST/JSF Tools News ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+<tr>
+ <td colspan="2">
+ <hr />
+ <h3>Updated Wizards</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>In "Generate Seam Entities" wizard added fields to allow use an existing *.reveng.xml file</b></p>
+ </td>
+ <td valign="top">
+ <p>Now "Generate Seam Entities" provides opportunity to specify an existing *.reveng.xml file for using it to regenerate entities.</p>
+ <img src="images/SeamGenEntitiesWizard.PNG"/>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-5007">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>In "New Seam Project" wizard added fields to specify the project(s) name</b></p>
+ </td>
+ <td valign="top">
+ <p>Now "New Seam Project" wizard provides opportunity to specify names for WAR, EJB and EAR projects.</p>
+ <img src="images/ear_project.jpg"/>
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-2809">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
Property changes on: trunk/documentation/whatsnew/seam/seam-news-3.2.0.M1.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 9 months
JBoss Tools SVN: r23318 - trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-07-08 10:24:16 -0400 (Thu, 08 Jul 2010)
New Revision: 23318
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorBindingWizardPage.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewStereotypeWizardPage.java
Log:
https://jira.jboss.org/browse/JBIDE-6548
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java 2010-07-08 14:18:57 UTC (rev 23317)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java 2010-07-08 14:24:16 UTC (rev 23318)
@@ -10,18 +10,21 @@
******************************************************************************/
package org.jboss.tools.cdi.ui.wizard;
+import java.lang.reflect.InvocationTargetException;
import java.util.List;
+import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IBuffer;
+import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.ISourceRange;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.ui.wizards.NewAnnotationWizardPage;
-import org.eclipse.jdt.ui.wizards.NewTypeWizardPage.ImportsManager;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -30,7 +33,10 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.cdi.core.CDIConstants;
-import org.jboss.tools.cdi.core.ICDIAnnotation;
+import org.jboss.tools.cdi.core.CDICoreMessages;
+import org.jboss.tools.cdi.core.CDICoreNature;
+import org.jboss.tools.cdi.core.CDICorePlugin;
+import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.ui.CDIUIMessages;
import org.jboss.tools.common.ui.widget.editor.CheckBoxFieldEditor;
import org.jboss.tools.common.ui.widget.editor.CompositeEditor;
@@ -188,4 +194,34 @@
}
}
+ protected ICDIProject getCDIProject(IJavaProject jp) {
+ CDICoreNature n = getCDINatureWithProgress(jp.getProject());
+ return n == null ? null : n.getDelegate();
+ }
+
+ public static CDICoreNature getCDINatureWithProgress(final IProject project){
+ final CDICoreNature cdiNature = CDICorePlugin.getCDI(project, false);
+ if(cdiNature != null && !cdiNature.isStorageResolved()){
+ try{
+ PlatformUI.getWorkbench().getProgressService().run(false, false, new IRunnableWithProgress(){
+ public void run(IProgressMonitor monitor)
+ throws InvocationTargetException, InterruptedException {
+ monitor.beginTask(CDICoreMessages.CDI_UTIL_BUILD_CDI_MODEL, 10);
+ monitor.worked(3);
+ cdiNature.resolve();
+ monitor.worked(7);
+ }
+
+ });
+ }catch(InterruptedException ie){
+ CDICorePlugin.getDefault().logError(ie);
+ }catch(InvocationTargetException ite){
+ CDICorePlugin.getDefault().logError(ite);
+ }
+ }
+
+ return cdiNature;
+ }
+
+
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorBindingWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorBindingWizardPage.java 2010-07-08 14:18:57 UTC (rev 23317)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorBindingWizardPage.java 2010-07-08 14:24:16 UTC (rev 23318)
@@ -95,7 +95,7 @@
interceptorBindingsProvider.setProject(null);
if(root != null) {
IJavaProject jp = root.getJavaProject();
- ICDIProject cdi = CDICorePlugin.getCDIProject(jp.getProject(), true);
+ ICDIProject cdi = getCDIProject(jp);
if(cdi != null) {
interceptorBindingsProvider.setProject(cdi);
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewStereotypeWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewStereotypeWizardPage.java 2010-07-08 14:18:57 UTC (rev 23317)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewStereotypeWizardPage.java 2010-07-08 14:24:16 UTC (rev 23318)
@@ -186,7 +186,7 @@
void setScopes(IPackageFragmentRoot root) {
if(root != null) {
IJavaProject jp = root.getJavaProject();
- ICDIProject cdi = CDICorePlugin.getCDIProject(jp.getProject(), true);
+ ICDIProject cdi = getCDIProject(jp);
if(cdi != null) {
Set<String> scopes = cdi.getScopeNames();
String[] tags = scopes.toArray(new String[0]);
@@ -203,7 +203,7 @@
interceptorBindingsProvider.setProject(null);
if(root != null) {
IJavaProject jp = root.getJavaProject();
- ICDIProject cdi = CDICorePlugin.getCDIProject(jp.getProject(), true);
+ ICDIProject cdi = getCDIProject(jp);
if(cdi != null) {
interceptorBindingsProvider.setProject(cdi);
}
15 years, 9 months
JBoss Tools SVN: r23317 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-07-08 10:18:57 -0400 (Thu, 08 Jul 2010)
New Revision: 23317
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
Log:
https://jira.jboss.org/browse/JBIDE-6548
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-07-08 13:56:44 UTC (rev 23316)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-07-08 14:18:57 UTC (rev 23317)
@@ -12,6 +12,7 @@
import java.io.File;
import java.io.IOException;
+import java.util.HashMap;
import java.util.List;
import org.eclipse.core.resources.ICommand;
@@ -120,7 +121,7 @@
if(isStorageResolved) return;
isStorageResolved = true;
try {
- getProject().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+ getProject().build(IncrementalProjectBuilder.FULL_BUILD, CDICoreBuilder.BUILDER_ID, new HashMap(), new NullProgressMonitor());
} catch (CoreException e) {
CDICorePlugin.getDefault().logError(e);
}
15 years, 9 months
JBoss Tools SVN: r23316 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: dvinnichek
Date: 2010-07-08 09:56:44 -0400 (Thu, 08 Jul 2010)
New Revision: 23316
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCreatorUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTextPseudoContentCreator.java
Log:
fix templates for vpe editor according to JBIDE-6542
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java 2010-07-08 13:53:03 UTC (rev 23315)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java 2010-07-08 13:56:44 UTC (rev 23316)
@@ -343,9 +343,9 @@
* @param templateSection the template section
*/
private void initBreakHandler(Element templateSection) {
- if (breakerType == BREAKER_TYPE_NONE) {
- String typeValue = templateSection.getAttribute(ATTR_BREAKER_TYPE);
- if (typeValue != null) {
+ if (breakerType == BREAKER_TYPE_NONE) {
+ if (templateSection.hasAttribute(ATTR_BREAKER_TYPE)) {
+ String typeValue = templateSection.getAttribute(ATTR_BREAKER_TYPE);
if (ATTR_BREAKER_TYPE_IGNORE.equalsIgnoreCase(typeValue)) {
breakerType = BREAKER_TYPE_IGNORE;
} else if (ATTR_BREAKER_TYPE_SELECTITEM
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCreatorUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCreatorUtil.java 2010-07-08 13:53:03 UTC (rev 23315)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeCreatorUtil.java 2010-07-08 13:56:44 UTC (rev 23316)
@@ -49,8 +49,11 @@
}
public static String getFacetName(Node node) {
- if (node != null && node.getNodeType() == Node.ELEMENT_NODE) {
- return ((Element)node).getAttribute("name"); //$NON-NLS-1$
+ Element nodeElement = (Element)node;
+ String nameAttrName = "name"; //$NON-NLS-1$
+ if (node != null && node.getNodeType() == Node.ELEMENT_NODE &&
+ nodeElement.hasAttribute(nameAttrName)) {
+ return nodeElement.getAttribute(nameAttrName);
}
return null;
}
@@ -97,9 +100,14 @@
public static Document getIncludeDocument(Node includeNode, VpePageContext pageContext) {
if (isInclude(includeNode)) {
- String pageName = ((Element)includeNode).getAttribute("page"); //$NON-NLS-1$
- if (pageName == null) {
- pageName = ((Element)includeNode).getAttribute("file"); //$NON-NLS-1$
+ Element includeElement = (Element)includeNode;
+ String pageAttrName = "page"; //$NON-NLS-1$
+ String fileAttrName = "file"; //$NON-NLS-1$
+ String pageName = null;
+ if (includeElement.hasAttribute(pageAttrName)) {
+ pageName = includeElement.getAttribute(pageAttrName);
+ } else if (includeElement.hasAttribute(fileAttrName)) {
+ pageName = includeElement.getAttribute(fileAttrName);
}
if (pageName != null) {
IDOMModel wtpModel = getWtpModelForRead(pageName, pageContext);
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTextPseudoContentCreator.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTextPseudoContentCreator.java 2010-07-08 13:53:03 UTC (rev 23315)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTextPseudoContentCreator.java 2010-07-08 13:56:44 UTC (rev 23316)
@@ -42,15 +42,15 @@
String text = this.text;
if (text == null) {
if (sourceContainer.getNodeType() == Node.ELEMENT_NODE) {
+ Element sourceElement = (Element)sourceContainer;
String name = null;
- if (attrName != null) {
- name = ((Element)sourceContainer).getAttribute(attrName);
- if (name != null) {
- name = name.trim();
+ if (attrName != null) {
+ if (sourceElement.hasAttribute(attrName)) {
+ name = sourceElement.getAttribute(attrName).trim();
}
}
if (name == null || attrName.length() <= 0) {
- name = ((Element)sourceContainer).getNodeName();
+ name = sourceElement.getNodeName();
}
text = MessageFormat.format(VpeUIMessages.VpeTextPseudoContentCreator_InsertContentFor, name);
} else {
15 years, 9 months