} catch (IllegalAccessException ex) {
Logger.getLogger(Studio.class.getName()).
log(Level.SEVERE, null, ex);
}
} else if (getCurrentCanvas().getClipBoard().isEmpty()) {
MessageBox mBox = getCurrentCanvas().getMessageBox();
mBox.addUniqueMessage("Can't group components:",
"Please select at least one component!", null,
MessageType.ERROR);
} else if (onlyWindows) {
getCurrentCanvas().getWindowGroupController().
createGroupFromSelectedWindows();
} else {
MessageBox mBox = getCurrentCanvas().getMessageBox();
mBox.addUniqueMessage("Can't group components:",
"Only components of same type can be grouped!"
+ "<ul>"
+ " <li>Select windows to define a window group "
+ "(code windows and non VRL windows are not supported)."
+ "</li>"