CloneSet108


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28220.980method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12883
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/NextMessageAction.java
22784
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/PreviousMessageAction.java
Next
Last
Clone Instance
1
Line Count
28
Source Line
83
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/NextMessageAction.java

/**
 * 
 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
 */
public void actionPerformed(ActionEvent evt) {
  IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator()).getTableSelection();
  ITableController table = ((TableViewOwner) getFrameMediator()).getTableController();
  if (table == null)
    return;
  if (r == null)
    return;
  IMessageNode[] nodes = table.getSelectedNodes();
  if (nodes.length == 0)
    return;
  MessageNode node = (MessageNode) nodes[0];
  MessageNode nextNode = (MessageNode) node.getNextNode();
  if (nextNode == null)
    return;
  // necessary for the message-frame only
  r.setUids(new Object[] {
                           nextNode.getUid()
                         } );
  ((MailFrameMediator) getFrameMediator()).setTableSelection(r);
  CommandProcessor.getInstance().addOp(new ViewMessageCommand(getFrameMediator(), r));
  // select message in message list
  table.setSelected(new Object[] {
                                   nextNode.getUid()
                                 } );
}


First
Previous
Clone Instance
2
Line Count
27
Source Line
84
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/PreviousMessageAction.java

/**
 * 
 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
 */
public void actionPerformed(ActionEvent evt) {
  IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator()).getTableSelection();
  ITableController table = ((TableViewOwner) getFrameMediator()).getTableController();
  if (table == null)
    return;
  if (r == null)
    return;
  IMessageNode[] nodes = table.getSelectedNodes();
  if (nodes.length == 0)
    return;
  MessageNode node = (MessageNode) nodes[0];
  MessageNode previousNode = (MessageNode) node.getPreviousNode();
  if (previousNode == null)
    return;
  //               necessary for the message-frame only
  r.setUids(new Object[] {
                           previousNode.getUid()
                         } );
  ((MailFrameMediator) getFrameMediator()).setTableSelection(r);
  CommandProcessor.getInstance().addOp(new ViewMessageCommand(getFrameMediator(), r));
  //               select message in message list
  table.setSelected(new Object[] {
                                   previousNode.getUid()
                                 } );
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * 
         * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
         */
public void actionPerformed(ActionEvent evt) {
  IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator()).getTableSelection();
  ITableController table = ((TableViewOwner) getFrameMediator()).getTableController();
  if (table == null)
    return;
  if (r == null)
    return;
  IMessageNode[] nodes = table.getSelectedNodes();
  if (nodes.length == 0)
    return;
  MessageNode node = (MessageNode) nodes[0];
  MessageNode  [[#variablef3ae660]]= (MessageNode) node. [[#variablef3ae5c0]]();
  if ( [[#variablef3ae660]]== null)
    return;
  // necessary for the message-frame only
  //               necessary for the message-frame only
  r.setUids(new Object[] {
                            [[#variablef3ae660]].getUid()
                         } );
  ((MailFrameMediator) getFrameMediator()).setTableSelection(r);
  CommandProcessor.getInstance().addOp(new ViewMessageCommand(getFrameMediator(), r));
  // select message in message list
  //               select message in message list
  table.setSelected(new Object[] {
                                    [[#variablef3ae660]].getUid()
                                 } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#f3ae660]]
nextNode 
12[[#f3ae660]]
previousNode 
21[[#f3ae5c0]]
getNextNode 
22[[#f3ae5c0]]
getPreviousNode