the old-style autopopup to be triggered inside identifier

This commit is contained in:
peter
2011-03-03 17:27:36 +01:00
parent e2453f6e68
commit ba1e36ad20
2 changed files with 3 additions and 1 deletions
@@ -125,7 +125,7 @@ class JavaAutoPopupTest extends CompletionAutoPopupTestCase {
}
public void testNoAutopopupInTheMiddleOfIdentifier() {
public void _testNoAutopopupInTheMiddleOfIdentifier() {
myFixture.configureByText("a.java", """
class Foo {
String foo(String iterable) {
@@ -91,6 +91,7 @@ public class CompletionAutoPopupHandler extends TypedHandlerDelegate {
}
/*
if (!CompletionProgressIndicator.showHintAutopopup()) {
final CharSequence text = editor.getDocument().getCharsSequence();
final int offset = editor.getSelectionModel().hasSelection() ? editor.getSelectionModel().getSelectionEnd() : editor.getCaretModel().getOffset();
@@ -98,6 +99,7 @@ public class CompletionAutoPopupHandler extends TypedHandlerDelegate {
return Result.CONTINUE;
}
}
*/
final boolean isMainEditor = FileEditorManager.getInstance(project).getSelectedTextEditor() == editor;