getCurrentCanvas().getWindows().add(window);
getCurrentCanvas().getWindows().setActive(window);
}
} else if (onlyMethods) {
try {
CodeBlockGenerator generator = new CodeBlockGenerator();
generator.generateCodeblock(getCurrentCanvas());
} catch (InstantiationException ex) {
Logger.getLogger(Studio.class.getName()).
log(Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
Logger.getLogger(Studio.class.getName()).