CloneSet205


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27210.990method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1271110
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java
2271094
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLEditor.java
Next
Last
Clone Instance
1
Line Count
27
Source Line
1110
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java

/**
 * Returns a diagnostic describing the errors and warnings listed in the resource
 * and the specified exception (if any).
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) {
  if ( !resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) {
    BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.ecore.editor", 0, getString("_UI_CreateModelError_message", resource.getURI()), new Object[] {
                                                                                                                                                                                            exception == null ? (Object) resource: exception
                                                                                                                                                                                          } );
    basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));
    return basicDiagnostic;
  }
  else
    if (exception != null) {
      return new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.ecore.editor", 0, getString("_UI_CreateModelError_message", resource.getURI()), new Object[] {
                                                                                                                                                                   exception
                                                                                                                                                                 } );
    }
    else {
      return Diagnostic.OK_INSTANCE;
    }
}


First
Previous
Clone Instance
2
Line Count
27
Source Line
1094
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLEditor.java

/**
 * Returns a diagnostic describing the errors and warnings listed in the resource
 * and the specified exception (if any).
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) {
  if ( !resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) {
    BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.mapping.ecore2xml.edit", //$NON-NLS-1$
                                                           0, getString("_UI_CreateModelError_message", resource.getURI()), //$NON-NLS-1$
                                                           new Object[] {
                                                                          exception == null ? (Object) resource: exception
                                                                        } );
    basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));
    return basicDiagnostic;
  }
  else
    if (exception != null) {
      return new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.mapping.ecore2xml.edit", //$NON-NLS-1$
                                  0, getString("_UI_CreateModelError_message", resource.getURI()), //$NON-NLS-1$
                                  new Object[] {
                                                 exception
                                               } );
    }
    else {
      return Diagnostic.OK_INSTANCE;
    }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
   * Returns a diagnostic describing the errors and warnings listed in the resource
   * and the specified exception (if any).
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) {
  if ( !resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) {
    BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR,  [[#variable1716b8e0]], //$NON-NLS-1$
                                                           0, getString("_UI_CreateModelError_message", resource.getURI()), //$NON-NLS-1$
                                                           new Object[] {
                                                                          exception == null ? (Object) resource: exception
                                                                        } );
    basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));
    return basicDiagnostic;
  }
  else
    if (exception != null) {
      return new BasicDiagnostic(Diagnostic.ERROR,  [[#variable1716b8e0]], //$NON-NLS-1$
                                  0, getString("_UI_CreateModelError_message", resource.getURI()), //$NON-NLS-1$
                                  new Object[] {
                                                 exception
                                               } );
    }
    else {
      return Diagnostic.OK_INSTANCE;
    }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1716b8e0]]
"org.eclipse.emf.ecore.editor" 
12[[#1716b8e0]]
"org.eclipse.emf.mapping.ecore2xml.edit"