private boolean setSizeStrings(int width, int height) throws Exception {
MethodInvocation invocation =
m_window.getMethodInvocation("setSize(java.lang.String,java.lang.String)");
if (invocation != null) {
AstEditor editor = m_window.getEditor();
editor.replaceExpression(
(Expression) invocation.arguments().get(0),
"\"" + Integer.toString(width) + "px\"");
editor.replaceExpression(
(Expression) invocation.arguments().get(1),
"\"" + Integer.toString(height) + "px\"");