CloneSet224


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21230.963type_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12121
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/util/AddressbookResourceLoader.java
22121
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/util/MailResourceLoader.java
Next
Last
Clone Instance
1
Line Count
21
Source Line
21
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/util/AddressbookResourceLoader.java

public class AddressbookResourceLoader extends GlobalResourceLoader {
  protected static final String ADDRESSBOOK_RESOURCE_PATH = "org.columba.addressbook.i18n";

   /**
* No need to create instances of this class.
*/
  private AddressbookResourceLoader() {
  }

  //This is used when package name and file name are different.
  //Example: getString("dialog", "composer", "statusbar_label");
  public static String getString(String sPath, String sName, String sID) {
    return GlobalResourceLoader.getString(generateBundlePath(ADDRESSBOOK_RESOURCE_PATH, sPath), sName, sID);
  }

  //This one is used when the package name and the file name are the same.
  //Example: getString("action", "menu_folder_newfolder");
  public static String getString(String sName, String sID) {
    return GlobalResourceLoader.getString(generateBundlePath(ADDRESSBOOK_RESOURCE_PATH, sName), sName, sID);
  }
}




First
Previous
Clone Instance
2
Line Count
21
Source Line
21
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/util/MailResourceLoader.java

public class MailResourceLoader extends GlobalResourceLoader {
  protected static final String MAIL_RESOURCE_PATH = "org.columba.mail.i18n";

   /**
* No need for creating instances of this class.
*/
  private MailResourceLoader() {
  }

  //This is used when package name and file name are different.
  //Example: getString("dialog", "composer", "statusbar_label");
  public static String getString(String sPath, String sName, String sID) {
    return GlobalResourceLoader.getString(generateBundlePath(MAIL_RESOURCE_PATH, sPath), sName, sID);
  }

  //This one is used when the package name and the file name are the same.
  //Example: getString("action", "menu_folder_newfolder");
  public static String getString(String sName, String sID) {
    return GlobalResourceLoader.getString(generateBundlePath(MAIL_RESOURCE_PATH, sName), sName, sID);
  }
}




Clone AbstractionParameter Count: 3Parameter Bindings

public class [[#variable113e0a00]]extends GlobalResourceLoader {
  protected static final String  [[#variable113e0980]]= [[#variable113e0900]];

  /**
   * No need for creating instances of this class.
   */
  /**
   * No need to create instances of this class.
   */
  private [[#variable113e0a00]]() {
  }

  //This is used when package name and file name are different.
  //Example: getString("dialog", "composer", "statusbar_label");
  public static String getString(String sPath, String sName, String sID) {
    return GlobalResourceLoader.getString(generateBundlePath( [[#variable113e0980]], sPath), sName, sID);
  }

  //This one is used when the package name and the file name are the same.
  //Example: getString("action", "menu_folder_newfolder");
  public static String getString(String sName, String sID) {
    return GlobalResourceLoader.getString(generateBundlePath( [[#variable113e0980]], sName), sName, sID);
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#113e0a00]]
AddressbookResourceLoader 
12[[#113e0a00]]
MailResourceLoader 
21[[#113e0980]]
ADDRESSBOOK_RESOURCE_PATH 
22[[#113e0980]]
MAIL_RESOURCE_PATH 
31[[#113e0900]]
"org.columba.addressbook.i18n" 
32[[#113e0900]]
"org.columba.mail.i18n"