diff options
author | Florian Noyrit | 2013-07-16 17:20:16 +0000 |
---|---|---|
committer | Florian Noyrit | 2013-07-16 17:20:16 +0000 |
commit | 160da104e3bda0ca38a92b1b61c7304aa57fc4d7 (patch) | |
tree | b283eb5cdb90bf898c5c9c5bc263b1bd88eddfe8 /plugins/uml | |
parent | 31655a17db9732c8e25b7c95ea43d7449094da76 (diff) | |
download | org.eclipse.papyrus-160da104e3bda0ca38a92b1b61c7304aa57fc4d7.tar.gz org.eclipse.papyrus-160da104e3bda0ca38a92b1b61c7304aa57fc4d7.tar.xz org.eclipse.papyrus-160da104e3bda0ca38a92b1b61c7304aa57fc4d7.zip |
Update to be compliant with Java 1.5
Diffstat (limited to 'plugins/uml')
-rw-r--r-- | plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java | 18 |
1 files changed, 9 insertions, 9 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 9292a5cb988..71b73a18e19 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 @@ -180,7 +180,7 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla private Button btnSearchAllStringAttributes;
private Button btnSearchInName;
- +
private Combo queryKind;
private Combo searchKind;
@@ -1032,7 +1032,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 {
@@ -1058,7 +1058,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);
@@ -1118,11 +1118,11 @@ 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;
}
- +
Collection<IResource> scope = ScopeCollector.getInstance().computeSearchScope(container);
Collection<ScopeEntry> scopeEntries = createScopeEntries(scope);
@@ -1158,8 +1158,8 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla }
NewSearchUI.runQueryInForeground(container.getRunnableContext(), query);
- - +
+
Display.getCurrent().syncExec(new Runnable() {
public void run() {
@@ -1175,7 +1175,7 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla }
}
});
- +
NewSearchUI.runQueryInForeground(container.getRunnableContext(), query);
return true;
@@ -1187,7 +1187,7 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla MessageDialog.openWarning(Display.getCurrent().getActiveShell(), Messages.PapyrusSearchPage_42, Messages.PapyrusSearchPage_43);
return false;
}
- +
}
|