OC-4023: Enter on placeholder invokes smart completion.

This commit is contained in:
Maxim Shafirov
2012-06-14 14:57:25 +04:00
parent c17133b71e
commit dc60fefd9d
3 changed files with 3 additions and 3 deletions
@@ -38,7 +38,7 @@ public abstract class NextPrevParameterAction extends CodeInsightAction {
}
@Override
protected CodeInsightActionHandler getHandler() {
public CodeInsightActionHandler getHandler() {
return new Handler();
}
@@ -623,7 +623,7 @@ public class CodeCompletionHandlerBase implements CodeInsightActionHandler {
return invokedExplicitly && CodeInsightSettings.getInstance().AUTOCOMPLETE_COMMON_PREFIX;
}
protected static void lookupItemSelected(final CompletionProgressIndicator indicator, @NotNull final LookupElement item, final char completionChar,
protected void lookupItemSelected(final CompletionProgressIndicator indicator, @NotNull final LookupElement item, final char completionChar,
final List<LookupElement> items) {
if (indicator.isAutopopupCompletion()) {
FeatureUsageTracker.getInstance().triggerFeatureUsed(CodeCompletionFeatures.EDITING_COMPLETION_BASIC);
@@ -108,7 +108,7 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement
setMergeCommand();
CodeCompletionHandlerBase.lookupItemSelected(CompletionProgressIndicator.this, item, event.getCompletionChar(), myLookup.getItems());
myHandler.lookupItemSelected(CompletionProgressIndicator.this, item, event.getCompletionChar(), myLookup.getItems());
}