mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "helper method isEditorActivity"
This reverts commit ee119bd812.
This commit is contained in:
@@ -344,10 +344,6 @@ public class AbstractTreeBuilder implements Disposable {
|
||||
}
|
||||
}
|
||||
|
||||
protected ProgressIndicator getProgressIndicator() {
|
||||
return getUi().getProgressIndicator();
|
||||
}
|
||||
|
||||
protected void updateAfterLoadedInBackground(Runnable runnable) {
|
||||
if (myUi.isPassthroughMode()) {
|
||||
runnable.run();
|
||||
|
||||
@@ -1784,10 +1784,6 @@ public class AbstractTreeUi {
|
||||
return result;
|
||||
}
|
||||
|
||||
public ProgressIndicator getProgressIndicator() {
|
||||
return myProgress;
|
||||
}
|
||||
|
||||
static class ElementNode extends DefaultMutableTreeNode {
|
||||
|
||||
Set<Object> myElements = new HashSet<Object>();
|
||||
|
||||
@@ -17,9 +17,6 @@ package com.intellij.openapi.application;
|
||||
|
||||
import com.intellij.util.messages.Topic;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.InputEvent;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.MouseEvent;
|
||||
|
||||
@@ -44,22 +41,4 @@ public interface UserActivity {
|
||||
}
|
||||
}
|
||||
|
||||
class Util {
|
||||
|
||||
public static boolean isEditorActivity(InputEvent e) {
|
||||
Component c = null;
|
||||
if (e instanceof KeyEvent) {
|
||||
c = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
|
||||
} else if (e instanceof MouseEvent) {
|
||||
c = SwingUtilities.getDeepestComponentAt(e.getComponent(), ((MouseEvent)e).getX(), ((MouseEvent)e).getY());
|
||||
}
|
||||
|
||||
if (c instanceof JComponent) {
|
||||
return Boolean.TRUE.equals(((JComponent)c).getClientProperty("isEditor"));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,7 +44,6 @@ public class EditorComponentImpl extends JComponent implements Scrollable, DataP
|
||||
enableInputMethods(true);
|
||||
setFocusCycleRoot(true);
|
||||
setOpaque(true);
|
||||
putClientProperty("isEditor", Boolean.TRUE);
|
||||
}
|
||||
|
||||
public EditorImpl getEditor() {
|
||||
|
||||
Reference in New Issue
Block a user