if (brushLayer.isEmpty()) {
MessageDialog.openInformation(getSite().getShell(),
Resources.getString("dialog.selection.empty"),
Resources.getString("dialog.selection.empty"));
} else {
setBrush(new CustomBrush(brushLayer));
cursorHighlight.setOffset(tile.x - (int) bounds.width / 2,
tile.y - (int) bounds.height / 2);
}
} else if (mouseButton == 1 && layer instanceof ObjectGroup) {
// TODO: Fix this to use pixels in the first place