/**
   * Returns the specific part of the action made on the entity.
   *
   * @return the specific part of the action made on the entity
   */
  protected ActionEditEntitySpecific getSpecificAction() {

    String sprite = spriteField.getSelectedId();
    if (!withSpriteField.isSelected()) {
      sprite = "_none";
    }

    String behavior = "map";
    if (messageField.isEnabled()) {
      behavior = "dialog#" + messageField.getText();
    } else if (itemField.isEnabled()) {
      behavior = "item#" + itemField.getSelectedId();
    }

    return new ActionEditEntitySpecific(entity, sprite, behavior);
  }
 /** Returns the new id entered by the user. */
 public String getTilePatternId() {
   return patternIdField.getText();
 }