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