Manually Resizing Eclipse IDE Window

When I fired up RadRails this morning for a coding-in-bed session, MBP screen was filled with middle portion of RadRails IDE window. Last time I used RadRails, it was on the big screen downstairs so Eclipse (which RadRails is based on) recreated the IDE window using the last saved window size and position, blissfully ignoring the fact that MBP screen is much smaller. Since both the draggable window title area and the window resize box at the lower right was not visible, I couldn't resize the window. Duh. I suspect this problem is common for Eclipse, Eclipse-based IDEs, and likely even RCP applications.

Anyway, here is the workaround:

  1. cd {workspace}/.metadata/.plugins/org.eclipse.ui.workbench/
  2. open workbench.xml file
  3. change height, width, x, and y values on the 4th line to reasonable values
  4. save and close file.
  5. launch Eclipse/RadRails

That's it.