From f869288ceb066429856ecdbccb117ddf11e0dc6a Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 26 Oct 2015 18:10:44 +0100 Subject: [PATCH] restore AlwaysFocusLookup for the sake of kotlin (EA-75245 - CNFE: PluginClassLoader.loadClass) --- .../completion/AlwaysFocusLookup.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 platform/lang-api/src/com/intellij/codeInsight/completion/AlwaysFocusLookup.java diff --git a/platform/lang-api/src/com/intellij/codeInsight/completion/AlwaysFocusLookup.java b/platform/lang-api/src/com/intellij/codeInsight/completion/AlwaysFocusLookup.java new file mode 100644 index 000000000000..c3633d607d64 --- /dev/null +++ b/platform/lang-api/src/com/intellij/codeInsight/completion/AlwaysFocusLookup.java @@ -0,0 +1,30 @@ +/* + * Copyright 2000-2010 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.intellij.codeInsight.completion; + +import com.intellij.util.ThreeState; +import org.jetbrains.annotations.NotNull; + +/** + * @author peter + */ +public class AlwaysFocusLookup extends CompletionConfidence { + @NotNull + @Override + public ThreeState shouldFocusLookup(@NotNull CompletionParameters parameters) { + return ThreeState.YES; + } +}