CloneSet485


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113131
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/action/AddContactCardAction.java
21358
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/action/DefaultTreeAction.java
Next
Last
Clone Instance
1
Line Count
13
Source Line
131
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/action/AddContactCardAction.java

/**
 * Enable or disable action on tree selection changes.
 * <p>
 * Actions should overwrite this method if they need more fine-grained
 * control.
 * 
 */
public void valueChanged(TreeSelectionEvent e) {
  TreePath path = e.getNewLeadSelectionPath();
  // remember last selected folder treenode
  if (path != null) {
    treeNode = (AddressbookTreeNode) path.getLastPathComponent();
  }
  // enable, if more than zero treenodes selected
  if ((path != null) && (treeNode instanceof AddressbookFolder)) {
    setEnabled(true);
  }
  else {
    setEnabled(false);
  }
}


First
Previous
Clone Instance
2
Line Count
13
Source Line
58
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/action/DefaultTreeAction.java

/**
 * Enable or disable action on tree selection changes.
 * <p>
 * Actions should overwrite this method if they need more fine-grained
 * control.
 *  
 */
public void valueChanged(TreeSelectionEvent e) {
  TreePath path = e.getNewLeadSelectionPath();
  // remember last selected folder treenode
  if (path != null) {
    treeNode = (AddressbookTreeNode) path.getLastPathComponent();
  }
  // enable, if more than zero treenodes selected
  if ((path != null) && (treeNode instanceof AddressbookFolder)) {
    setEnabled(true);
  }
  else {
    setEnabled(false);
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Enable or disable action on tree selection changes.
         * <p>
         * Actions should overwrite this method if they need more fine-grained
         * control.
         * 
         */
/**
         * Enable or disable action on tree selection changes.
         * <p>
         * Actions should overwrite this method if they need more fine-grained
         * control.
         *  
         */
public void valueChanged(TreeSelectionEvent e) {
  TreePath path = e.getNewLeadSelectionPath();
  // remember last selected folder treenode
  if (path != null) {
    treeNode = (AddressbookTreeNode) path.getLastPathComponent();
  }
  // enable, if more than zero treenodes selected
  if ((path != null) && (treeNode instanceof AddressbookFolder)) {
    setEnabled(true);
  }
  else {
    setEnabled(false);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None