public static void performSelection(InputTool tool, RadComponent component) {
    if ((ClientSystemInfo.isMac() ? tool.myInputEvent.isMetaDown() : tool.myInputEvent.isControlDown())) {
      if (tool.myArea.isSelected(component)) {
        tool.myArea.deselect(component);
      }
      else {
        tool.myArea.appendSelection(component);
      }
    }
    else if (tool.myInputEvent.isShiftDown()) {
      tool.myArea.appendSelection(component);
    }
    else {
      tool.myArea.select(component);
    }
  }
public static void performSelection(InputTool tool, RadComponent component)