Example #1
0
 @Nullable
 private static Rectangle getEditorWindowRectangle(@NotNull EditorWindow window) {
   final EditorWithProviderComposite editor = window.getSelectedEditor();
   if (editor != null) {
     final Point point = editor.getComponent().getLocationOnScreen();
     final Dimension dimension = editor.getComponent().getSize();
     return new Rectangle(point, dimension);
   }
   return null;
 }