mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 316454: Open Element to cancel query when typing additional letters.
This commit is contained in:
parent
d77d775b21
commit
9f1f076635
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.ui; singleton:=true
|
Bundle-SymbolicName: org.eclipse.cdt.ui; singleton:=true
|
||||||
Bundle-Version: 5.2.0.qualifier
|
Bundle-Version: 5.2.100.qualifier
|
||||||
Bundle-Activator: org.eclipse.cdt.ui.CUIPlugin
|
Bundle-Activator: org.eclipse.cdt.ui.CUIPlugin
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -372,7 +372,7 @@ public class ElementSelectionDialog extends TypeSelectionDialog {
|
||||||
final boolean equivalentPrefix= isEquivalentPrefix(currentPrefix, newPrefix);
|
final boolean equivalentPrefix= isEquivalentPrefix(currentPrefix, newPrefix);
|
||||||
boolean emptyQuery= newPrefix.length == 0 && !fAllowEmptyPrefix || filterText.length() == 0 && !fAllowEmptyString;
|
boolean emptyQuery= newPrefix.length == 0 && !fAllowEmptyPrefix || filterText.length() == 0 && !fAllowEmptyString;
|
||||||
final int jobState = fUpdateJob.getState();
|
final int jobState = fUpdateJob.getState();
|
||||||
boolean needQuery= !equivalentPrefix || (currentPrefix.length > newPrefix.length && currentPrefix.length < 5 && jobState == Job.RUNNING);
|
boolean needQuery= !equivalentPrefix || (currentPrefix.length < newPrefix.length && currentPrefix.length < 5 && jobState == Job.RUNNING);
|
||||||
if (emptyQuery) {
|
if (emptyQuery) {
|
||||||
newPrefix= null;
|
newPrefix= null;
|
||||||
needQuery= needQuery || currentPrefix != null;
|
needQuery= needQuery || currentPrefix != null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue