private JCheckBox getEnableWallCollisionCheckBox() {
   if (enableWallCollisionCheckBox == null) {
     enableWallCollisionCheckBox = new JCheckBox("Wall Collisions");
     enableWallCollisionCheckBox.setMnemonic('l');
     enableWallCollisionCheckBox.setDisplayedMnemonicIndex(2);
   }
   return enableWallCollisionCheckBox;
 }
 private JCheckBox getEnableRobotCollisionCheckBox() {
   if (enableRobotCollisionCheckBox == null) {
     enableRobotCollisionCheckBox = new JCheckBox("Robot Collisions");
     enableRobotCollisionCheckBox.setMnemonic('t');
     enableRobotCollisionCheckBox.setDisplayedMnemonicIndex(4);
   }
   return enableRobotCollisionCheckBox;
 }
 private JCheckBox getEnableRobotDeathCheckBox() {
   if (enableRobotDeathCheckBox == null) {
     enableRobotDeathCheckBox = new JCheckBox("Robot Death Explosions");
     enableRobotDeathCheckBox.setMnemonic('x');
     enableRobotDeathCheckBox.setDisplayedMnemonicIndex(13);
   }
   return enableRobotDeathCheckBox;
 }
 private JCheckBox getEnableBulletHitCheckBox() {
   if (enableBulletHitCheckBox == null) {
     enableBulletHitCheckBox = new JCheckBox("Bullet Hit");
     enableBulletHitCheckBox.setMnemonic('H');
     enableBulletHitCheckBox.setDisplayedMnemonicIndex(7);
   }
   return enableBulletHitCheckBox;
 }
 private JCheckBox getOptionsRenderingBufferImagesCheckBox() {
   if (optionsRenderingBufferImagesCheckBox == null) {
     optionsRenderingBufferImagesCheckBox = new JCheckBox("Buffer images (uses memory)");
     optionsRenderingBufferImagesCheckBox.setMnemonic('i');
     optionsRenderingBufferImagesCheckBox.setDisplayedMnemonicIndex(7);
     optionsRenderingBufferImagesCheckBox.addActionListener(eventHandler);
   }
   return optionsRenderingBufferImagesCheckBox;
 }
 public JCheckBox getCaseSensitiveCheckBox() {
   if (caseSensitiveCheckBox == null) {
     caseSensitiveCheckBox = new JCheckBox();
     caseSensitiveCheckBox.setText("Case Sensitive");
     caseSensitiveCheckBox.setMnemonic('v');
     caseSensitiveCheckBox.setDisplayedMnemonicIndex(12);
     caseSensitiveCheckBox.addActionListener(this);
   }
   return caseSensitiveCheckBox;
 }
  @Override
  public void update(final AnActionEvent e) {
    super.update(e);
    Presentation presentation = e.getPresentation();
    Object property = presentation.getClientProperty(CUSTOM_COMPONENT_PROPERTY);
    if (property instanceof JCheckBox) {
      JCheckBox checkBox = (JCheckBox) property;

      checkBox.setText(presentation.getText());
      checkBox.setToolTipText(presentation.getDescription());
      checkBox.setMnemonic(presentation.getMnemonic());
      checkBox.setDisplayedMnemonicIndex(presentation.getDisplayedMnemonicIndex());
      checkBox.setSelected(Boolean.TRUE.equals(presentation.getClientProperty(SELECTED_PROPERTY)));

      checkBox.setEnabled(presentation.isEnabled());
      checkBox.setVisible(presentation.isVisible());
    }
  }