Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Noyrit2013-07-30 12:00:45 +0000
committerFlorian Noyrit2013-07-30 12:00:45 +0000
commit3c47163fa97146d67ecd05cd6d07cb023467ac11 (patch)
tree699cdc86cf0f8d0529c8ec650b1df6124cb69a58 /plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org
parent63fe20bea7fe6c6c5062b1264c5c42e32f51fd3e (diff)
downloadorg.eclipse.papyrus-3c47163fa97146d67ecd05cd6d07cb023467ac11.tar.gz
org.eclipse.papyrus-3c47163fa97146d67ecd05cd6d07cb023467ac11.tar.xz
org.eclipse.papyrus-3c47163fa97146d67ecd05cd6d07cb023467ac11.zip
Pb with 1.5 compilation of String.isEmpty()
Diffstat (limited to 'plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java
index a8a1b2b84e3..b63f785f543 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java
@@ -992,7 +992,7 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla
Collection<ScopeEntry> scopeEntries = createScopeEntries(scope);
ISearchQuery query;
if(searchKind.getSelectionIndex() == SIMPLE_SEARCH) {
- if(searchQueryText.getText().isEmpty()) {
+ if(searchQueryText.getText().length() == 0) {
MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.PapyrusSearchPage_29, Messages.PapyrusSearchPage_30);
return false;
} else {
@@ -1019,7 +1019,7 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla
MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.PapyrusSearchPage_31, Messages.PapyrusSearchPage_32);
return false;
} else {
- if(searchQueryText.getText().isEmpty()) {
+ if(searchQueryText.getText().length() == 0) {
for(Object participantChecked : participantTypesTreeViewer.getCheckedElements()) {
if(participantChecked instanceof ParticipantTypeAttribute) {
MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.PapyrusSearchPage_33, Messages.PapyrusSearchPage_34);
@@ -1079,7 +1079,7 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla
public boolean performReplace() {
if(queryKind.getSelectionIndex() == TEXT_QUERY_KIND) {
if(validateRegex()) {
- if(searchQueryText.getText().isEmpty()) {
+ if(searchQueryText.getText().length() == 0) {
MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.PapyrusSearchPage_36, Messages.PapyrusSearchPage_37);
return false;
}

Back to the top