private IdeFocusManager getFocusManager() {
   if (myProject != null) {
     return IdeFocusManager.getInstance(myProject);
   } else if (myOwner != null) {
     return IdeFocusManager.findInstanceByComponent(myOwner);
   } else {
     return IdeFocusManager.findInstance();
   }
 }
Beispiel #2
0
 @Override
 public IdeFocusManager getFocusManager() {
   Project project = getProject();
   if (project != null && !project.isDisposed()) {
     return IdeFocusManager.getInstance(project);
   } else {
     return IdeFocusManager.findInstance();
   }
 }