Author: bbrodt
Date: 2010-10-13 05:41:39 -0400 (Wed, 13 Oct 2010)
New Revision: 25777
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/EditPropertyAliasDialog.java
Log:
https://jira.jboss.org/browse/JBIDE-7107
remove dependency on Java 6 String#isEmpty()
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/EditPropertyAliasDialog.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/EditPropertyAliasDialog.java 2010-10-13
08:20:52 UTC (rev 25776)
+++
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/EditPropertyAliasDialog.java 2010-10-13
09:41:39 UTC (rev 25777)
@@ -544,20 +544,20 @@
alias.setPropertyName(property);
if (typeElementOrMessage == BID_USE_TYPE) {
alias.setType(xsdTypeDefinition);
- if (xsdTypeQuery!=null && (xsdTypeQuery.getValue()==null ||
xsdTypeQuery.getValue().isEmpty()) )
+ if (xsdTypeQuery!=null && (xsdTypeQuery.getValue()==null ||
xsdTypeQuery.getValue().trim().equals("")) )
xsdTypeQuery = null;
alias.setQuery(xsdTypeQuery);
}
else if (typeElementOrMessage == BID_USE_ELEMENT) {
alias.setXSDElement(xsdElementDeclaration);
- if (xsdElementQuery!=null && (xsdElementQuery.getValue()==null ||
xsdElementQuery.getValue().isEmpty()) )
+ if (xsdElementQuery!=null && (xsdElementQuery.getValue()==null ||
xsdElementQuery.getValue().trim().equals("")) )
xsdElementQuery = null;
alias.setQuery(xsdElementQuery);
}
else {
alias.setMessageType(message);
alias.setPart(messagePart);
- if (messageQuery!=null && (messageQuery.getValue()==null ||
messageQuery.getValue().isEmpty()) )
+ if (messageQuery!=null && (messageQuery.getValue()==null ||
messageQuery.getValue().trim().equals("")) )
messageQuery = null;
alias.setQuery(messageQuery);
}