| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 4 | 0.953 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 119 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceFactoryInputPage.java |
| 2 | 4 | 145 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceFactoryInputPage.java |
| ||||
fMethodName.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
fMethodNameStatus = getUseFactoryRefactoring().setNewMethodName(fMethodName.getText());
validateInput(true);
/*
boolean nameOk= status.isOK();
if (status.hasFatalError()) {
IntroduceFactoryInputPage.this.setPageComplete(false);
}
IntroduceFactoryInputPage.this.setPageComplete(!status.hasFatalError());
IntroduceFactoryInputPage.this.setErrorMessage(nameOk ?
"" : //$NON-NLS-1$
status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
*/
}
} );
|
| ||||
factoryTypeName.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
fDestinationStatus = getUseFactoryRefactoring().setFactoryClass(factoryTypeName.getText());
validateInput(false);
/*
boolean nameOk= status.isOK();
IntroduceFactoryInputPage.this.setPageComplete(nameOk);
IntroduceFactoryInputPage.this.setErrorMessage(nameOk ? "" : //$NON-NLS-1$
status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
*/
}
} );
|
| |||
[[#variable53e2af80]].addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
[[#variable53e2afe0]]= getUseFactoryRefactoring(). [[#variable53e2ade0]]( [[#variable53e2af80]].getText());
validateInput( [[#variable53e2b080]]);
/*
boolean nameOk= status.isOK();
if (status.hasFatalError()) {
IntroduceFactoryInputPage.this.setPageComplete(false);
}
IntroduceFactoryInputPage.this.setPageComplete(!status.hasFatalError());
IntroduceFactoryInputPage.this.setErrorMessage(nameOk ?
"" : //$NON-NLS-1$
status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
*/
/*
boolean nameOk= status.isOK();
IntroduceFactoryInputPage.this.setPageComplete(nameOk);
IntroduceFactoryInputPage.this.setErrorMessage(nameOk ? "" : //$NON-NLS-1$
status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
*/
}
} );
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#53e2af80]] | fMethodName |
| 1 | 2 | [[#53e2af80]] | factoryTypeName |
| 2 | 1 | [[#53e2afe0]] | fMethodNameStatus |
| 2 | 2 | [[#53e2afe0]] | fDestinationStatus |
| 3 | 1 | [[#53e2ade0]] | setNewMethodName |
| 3 | 2 | [[#53e2ade0]] | setFactoryClass |
| 4 | 1 | [[#53e2b080]] | true |
| 4 | 2 | [[#53e2b080]] | false |