CloneSet50


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
81230.987class_body_declarations[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18154
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/list/AddressbookDNDListView.java
28148
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/contact/list/ContactDNDListView.java
Next
Last
Clone Instance
1
Line Count
81
Source Line
54
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/list/AddressbookDNDListView.java

/**
 * enables this component to be a dropTarget
 */
DropTarget dropTarget = null;

/**
 * enables this component to be a Drag Source
 */
DragSource dragSource = null;

boolean acceptDrop = true;

private IBasicModelPartial[] selection1;

private IBasicModelPartial[] selection2;

int index = -1;

private boolean dndAction = false;

// Where, in the drag image, the mouse was clicked
public AddressbookDNDListView() {
  super();
  addListSelectionListener(this );
  dropTarget = new DropTarget(this, this );
  dragSource = DragSource.getDefaultDragSource();
  if (acceptDrop == true) {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this );
  }
  else {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY, this );
  }
}

public AddressbookDNDListView(AddressbookListModel model) {
  super(model);
  addListSelectionListener(this );
  dropTarget = new DropTarget(this, this );
  dragSource = new DragSource();
  if (acceptDrop == true) {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this );
  }
  else {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY, this );
  }
}

public void setAcceptDrop(boolean b) {
  acceptDrop = b;
}

/**
 * is invoked when you are dragging over the DropSite
 * 
 */
public void dragEnter(DropTargetDragEvent event) {
  // debug messages for diagnostics
  if (acceptDrop == true) {
    event.acceptDrag(DnDConstants.ACTION_COPY_OR_MOVE);
  }
  else {
    event.acceptDrag(DnDConstants.ACTION_COPY);
  }
}

/**
 * is invoked when you are exit the DropSite without dropping
 * 
 */
public void dragExit(DropTargetEvent event) {
}

/**
 * is invoked when a drag operation is going on
 * 
 */
public void dragOver(DropTargetDragEvent event) {
}


First
Previous
Clone Instance
2
Line Count
81
Source Line
48
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/contact/list/ContactDNDListView.java

/**
 * enables this component to be a dropTarget
 */
DropTarget dropTarget = null;

/**
 * enables this component to be a Drag Source
 */
DragSource dragSource = null;

boolean acceptDrop = true;

private IHeaderItem[] selection1;

private IHeaderItem[] selection2;

int index = -1;

private boolean dndAction = false;

// Where, in the drag image, the mouse was clicked
public ContactDNDListView() {
  super();
  addListSelectionListener(this );
  dropTarget = new DropTarget(this, this );
  dragSource = DragSource.getDefaultDragSource();
  if (acceptDrop == true) {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this );
  }
  else {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY, this );
  }
}

public ContactDNDListView(ContactListModel model) {
  super(model);
  addListSelectionListener(this );
  dropTarget = new DropTarget(this, this );
  dragSource = new DragSource();
  if (acceptDrop == true) {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this );
  }
  else {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY, this );
  }
}

public void setAcceptDrop(boolean b) {
  acceptDrop = b;
}

/**
 * is invoked when you are dragging over the DropSite
 * 
 */
public void dragEnter(DropTargetDragEvent event) {
  // debug messages for diagnostics
  if (acceptDrop == true) {
    event.acceptDrag(DnDConstants.ACTION_COPY_OR_MOVE);
  }
  else {
    event.acceptDrag(DnDConstants.ACTION_COPY);
  }
}

/**
 * is invoked when you are exit the DropSite without dropping
 * 
 */
public void dragExit(DropTargetEvent event) {
}

/**
 * is invoked when a drag operation is going on
 * 
 */
public void dragOver(DropTargetDragEvent event) {
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * enables this component to be a dropTarget
         */
DropTarget dropTarget = null;

/**
         * enables this component to be a Drag Source
         */
DragSource dragSource = null;

boolean acceptDrop = true;

private [[#variablef351560]][] selection1;

private [[#variablef351560]][] selection2;

int index = -1;

private boolean dndAction = false;

// Where, in the drag image, the mouse was clicked
public [[#variablef3514e0]]() {
  super();
  addListSelectionListener(this );
  dropTarget = new DropTarget(this, this );
  dragSource = DragSource.getDefaultDragSource();
  if (acceptDrop == true) {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this );
  }
  else {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY, this );
  }
}

public [[#variablef3514e0]]( [[#variablef351480]] model) {
  super(model);
  addListSelectionListener(this );
  dropTarget = new DropTarget(this, this );
  dragSource = new DragSource();
  if (acceptDrop == true) {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this );
  }
  else {
    dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY, this );
  }
}

public void setAcceptDrop(boolean b) {
  acceptDrop = b;
}

/**
         * is invoked when you are dragging over the DropSite
         * 
         */
public void dragEnter(DropTargetDragEvent event) {
  // debug messages for diagnostics
  if (acceptDrop == true) {
    event.acceptDrag(DnDConstants.ACTION_COPY_OR_MOVE);
  }
  else {
    event.acceptDrag(DnDConstants.ACTION_COPY);
  }
}

/**
         * is invoked when you are exit the DropSite without dropping
         * 
         */
public void dragExit(DropTargetEvent event) {
}

/**
         * is invoked when a drag operation is going on
         * 
         */
public void dragOver(DropTargetDragEvent event) {
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#f351560]]
IBasicModelPartial 
12[[#f351560]]
IHeaderItem 
21[[#f3514e0]]
AddressbookDNDListView 
22[[#f3514e0]]
ContactDNDListView 
31[[#f351480]]
AddressbookListModel 
32[[#f351480]]
ContactListModel