mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
remove debug output
This commit is contained in:
@@ -37,7 +37,6 @@ import com.intellij.openapi.extensions.LoadingOrder
|
||||
import com.intellij.openapi.fileEditor.FileEditorManager
|
||||
import com.intellij.openapi.progress.ProgressManager
|
||||
import com.intellij.psi.PsiFile
|
||||
import com.intellij.codeInsight.lookup.impl.LookupActionHandler
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
@@ -554,15 +553,7 @@ public interface Test {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() {
|
||||
LookupActionHandler.DEBUG = false
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
public void testLeftRightMovements() {
|
||||
LookupActionHandler.DEBUG = true
|
||||
|
||||
myFixture.configureByText("a.java", """
|
||||
class Foo {
|
||||
void foo(String iterable) {
|
||||
@@ -591,17 +582,6 @@ public interface Test {
|
||||
|
||||
for (i in 0.."iter".size()) {
|
||||
edt { myFixture.performEditorAction(IdeActions.ACTION_EDITOR_MOVE_CARET_RIGHT) }
|
||||
println myFixture.editor.caretModel.offset
|
||||
println myFixture.editor.document.text[myFixture.editor.caretModel.offset]
|
||||
}
|
||||
if (lookup) {
|
||||
println lookup.items
|
||||
println myFixture.editor.document.text
|
||||
println myFixture.editor.caretModel.offset
|
||||
println myFixture.editor.settings.virtualSpace
|
||||
println project
|
||||
println LookupManager.getInstance(project)
|
||||
println LookupManager.getInstance(project).getActiveLookup()
|
||||
}
|
||||
assert !lookup
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@ import com.intellij.ui.ListScrollingUtil;
|
||||
* @author yole
|
||||
*/
|
||||
public abstract class LookupActionHandler extends EditorActionHandler {
|
||||
public static boolean DEBUG = false;
|
||||
protected final EditorActionHandler myOriginalHandler;
|
||||
private final boolean myRequireFocusedLookup;
|
||||
|
||||
@@ -204,21 +203,12 @@ public abstract class LookupActionHandler extends EditorActionHandler {
|
||||
|
||||
char c = seq.charAt(offset);
|
||||
CharFilter.Result lookupAction = TypedHandler.getLookupAction(c, lookup);
|
||||
if (DEBUG) {
|
||||
System.out.println("LookupActionHandler$RightHandler.executeInLookup");
|
||||
System.out.println("c = '" + c + "'");
|
||||
System.out.println("lookupAction = " + lookupAction);
|
||||
}
|
||||
|
||||
if (lookupAction != CharFilter.Result.ADD_TO_PREFIX || Character.isWhitespace(c)) {
|
||||
myOriginalHandler.execute(editor, context);
|
||||
return;
|
||||
}
|
||||
|
||||
if (DEBUG) {
|
||||
System.out.println("LookupActionHandler$RightHandler.executeInLookup2");
|
||||
}
|
||||
|
||||
lookup.performGuardedChange(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
@@ -850,11 +850,6 @@ public class LookupImpl extends LightweightHint implements LookupEx, Disposable
|
||||
|
||||
final CaretListener caretListener = new CaretListener() {
|
||||
public void caretPositionChanged(CaretEvent e) {
|
||||
if (LookupActionHandler.DEBUG) {
|
||||
System.out.println("LookupImpl.caretPositionChanged");
|
||||
System.out.println("myChangeGuard = " + myChangeGuard);
|
||||
System.out.println("myDisposed = " + myDisposed);
|
||||
}
|
||||
if (!myChangeGuard) {
|
||||
hide();
|
||||
}
|
||||
@@ -1186,11 +1181,6 @@ public class LookupImpl extends LightweightHint implements LookupEx, Disposable
|
||||
LOG.error("Disposing under a change guard");
|
||||
}
|
||||
|
||||
if (LookupActionHandler.DEBUG) {
|
||||
System.out.println("LookupImpl.doHide");
|
||||
System.out.println("fireCanceled = " + fireCanceled);
|
||||
}
|
||||
|
||||
if (myDisposed) {
|
||||
LOG.error(disposeTrace);
|
||||
}
|
||||
|
||||
@@ -188,10 +188,6 @@ public class LookupManagerImpl extends LookupManager {
|
||||
}
|
||||
|
||||
private void lookupClosed() {
|
||||
if (LookupActionHandler.DEBUG) {
|
||||
System.out.println("LookupManagerImpl.lookupClosed");
|
||||
}
|
||||
|
||||
alarm.cancelAllRequests();
|
||||
if (daemonCodeAnalyzer != null) {
|
||||
daemonCodeAnalyzer.setUpdateByTimerEnabled(previousUpdate);
|
||||
@@ -206,12 +202,6 @@ public class LookupManagerImpl extends LookupManager {
|
||||
myPropertyChangeSupport.firePropertyChange(PROP_ACTIVE_LOOKUP, lookup, null);
|
||||
|
||||
Disposer.dispose(connector);
|
||||
if (LookupActionHandler.DEBUG) {
|
||||
System.out.println("LookupManagerImpl.lookupClosed2");
|
||||
System.out.println("myActiveLookup = " + myActiveLookup);
|
||||
System.out.println("this = " + LookupManagerImpl.this);
|
||||
System.out.println("project = " + myProject);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user