CloneSet85


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
37301.000nested_class_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
137237
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/AttachmentView.java
237341
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AttachmentsViewer.java
337570
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java
Next
Last
Clone Instance
1
Line Count
37
Source Line
237
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/AttachmentView.java

/**
 * Imageloader using a content-type and subtype to determine the image name.
 * <p>
 * Automatically falls back to the default icon.
 * 
 * @author fdietz
 */
class AttachmentImageIconLoader {
  /**
   * Utility constructor.
   */
  private AttachmentImageIconLoader() {
  }

  /**
   * Returns the image icon for the content type.
   * 
   * @param contentType
   *            content type
   * @param contentSubtype
   *            content sub type
   * @return an Image Icon for the content type.
   */
  public ImageIcon getImageIcon(String contentType, String contentSubtype) {
    StringBuffer buf = new StringBuffer();
    buf.append("gnome-");
    buf.append(contentType);
    buf.append("-");
    buf.append(contentSubtype);
    buf.append(".png");
    ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString());
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-" + contentType + ".png");
    }
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-text.png");
    }
    return icon;
  }
}


Next
Previous
Clone Instance
2
Line Count
37
Source Line
341
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AttachmentsViewer.java

/**
 * Imageloader using a content-type and subtype to determine the image name.
 * <p>
 * Automatically falls back to the default icon.
 * 
 * @author fdietz
 */
class AttachmentImageIconLoader {
  /**
   * Utility constructor.
   */
  private AttachmentImageIconLoader() {
  }

  /**
   * Returns the image icon for the content type.
   * 
   * @param contentType
   *            content type
   * @param contentSubtype
   *            content sub type
   * @return an Image Icon for the content type.
   */
  public ImageIcon getImageIcon(String contentType, String contentSubtype) {
    StringBuffer buf = new StringBuffer();
    buf.append("gnome-");
    buf.append(contentType);
    buf.append("-");
    buf.append(contentSubtype);
    buf.append(".png");
    ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString());
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-" + contentType + ".png");
    }
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-text.png");
    }
    return icon;
  }
}


First
Previous
Clone Instance
3
Line Count
37
Source Line
570
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java

/**
 * Imageloader using a content-type and subtype to determine the image name.
 * <p>
 * Automatically falls back to the default icon.
 */
class AttachmentImageIconLoader {
  /**
   * Utility constructor.
   */
  private AttachmentImageIconLoader() {
  }

  /**
   * Returns the image icon for the content type.
   * 
   * @param contentType
   *            content type
   * @param contentSubtype
   *            content sub type
   * @return an Image Icon for the content type.
   */
  public ImageIcon getImageIcon(String contentType, String contentSubtype) {
    StringBuffer buf = new StringBuffer();
    buf.append("gnome-");
    buf.append(contentType);
    buf.append("-");
    buf.append(contentSubtype);
    buf.append(".png");
    ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString());
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-" + contentType + ".png");
    }
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-text.png");
    }
    return icon;
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Imageloader using a content-type and subtype to determine the image name.
         * <p>
         * Automatically falls back to the default icon.
         * 
         * @author fdietz
         */
/**
         * Imageloader using a content-type and subtype to determine the image name.
         * <p>
         * Automatically falls back to the default icon.
         */
class AttachmentImageIconLoader {
  /**
                   * Utility constructor.
                   */
  private AttachmentImageIconLoader() {
  }

  /**
                   * Returns the image icon for the content type.
                   * 
                   * @param contentType
                   *            content type
                   * @param contentSubtype
                   *            content sub type
                   * @return an Image Icon for the content type.
                   */
  public ImageIcon getImageIcon(String contentType, String contentSubtype) {
    StringBuffer buf = new StringBuffer();
    buf.append("gnome-");
    buf.append(contentType);
    buf.append("-");
    buf.append(contentSubtype);
    buf.append(".png");
    ImageIcon icon = ImageLoader.getMimetypeIcon(buf.toString());
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-" + contentType + ".png");
    }
    if (icon == null) {
      icon = ImageLoader.getMimetypeIcon("gnome-text.png");
    }
    return icon;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None