CloneSet602


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17230.958method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117332
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java
217541
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java
Next
Last
Clone Instance
1
Line Count
17
Source Line
332
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java

/**
 * Creates an output stream for the platform resource path and returns it.
 * <p>
 * This implementation does one of two things, depending on the runtime environment.
 * If there is an Eclipse workspace, it delegates to 
 * {@link WorkbenchHelper#createPlatformResourceOutputStream WorkbenchHelper.createPlatformResourceOutputStream},
 * which gives the expected Eclipse behaviour.
 * Otherwise, the {@link EcorePlugin#resolvePlatformResourcePath resolved} URI 
 * is delegated to {@link #createOutputStream(URI, Map) createOutputStream}
 * for recursive processing.
 * @return an open output stream.
 * @exception IOException if there is a problem obtaining an open output stream or a valid interpretation of the path.
 * @see EcorePlugin#resolvePlatformResourcePath(String)
 */
protected OutputStream createPlatformResourceOutputStream(String platformResourcePath) throws IOException {
  // ECLIPSE-DEPEND-BEGIN
  if (workspaceRoot != null) {
    return WorkbenchHelper.createPlatformResourceOutputStream(platformResourcePath);
  }
  else
      // ECLIPSE-DEPEND-END
      {
    URI resolvedLocation = EcorePlugin.resolvePlatformResourcePath(platformResourcePath);
    if (resolvedLocation != null) {
      return createOutputStream(resolvedLocation);
    }
    throw new IOException("The path \'" + platformResourcePath + "\' is unmapped");
  }
}


First
Previous
Clone Instance
2
Line Count
17
Source Line
541
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java

/**
 * Creates an input stream for the platform resource path and returns it.
 * <p>
 * This implementation does one of two things, depending on the runtime environment.
 * If there is an Eclipse workspace, it delegates to 
 * {@link WorkbenchHelper#createPlatformResourceInputStream WorkbenchHelper.createPlatformResourceInputStream},
 * which gives the expected Eclipse behaviour.
 * Otherwise, the {@link EcorePlugin#resolvePlatformResourcePath resolved} URI 
 * is delegated to {@link #createInputStream(URI, Map) createInputStream}
 * for recursive processing.
 * @return an open input stream.
 * @exception IOException if there is a problem obtaining an open input stream or a valid interpretation of the path.
 * @see EcorePlugin#resolvePlatformResourcePath(String)
 */
protected InputStream createPlatformResourceInputStream(String platformResourcePath) throws IOException {
  // ECLIPSE-DEPEND-BEGIN
  if (workspaceRoot != null) {
    return WorkbenchHelper.createPlatformResourceInputStream(platformResourcePath);
  }
  else
      // ECLIPSE-DEPEND-END
      {
    URI resolvedLocation = EcorePlugin.resolvePlatformResourcePath(platformResourcePath);
    if (resolvedLocation != null) {
      return createInputStream(resolvedLocation);
    }
    throw new IOException("The path \'" + platformResourcePath + "\' is unmapped");
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
   * Creates an input stream for the platform resource path and returns it.
   * <p>
   * This implementation does one of two things, depending on the runtime environment.
   * If there is an Eclipse workspace, it delegates to 
   * {@link WorkbenchHelper#createPlatformResourceInputStream WorkbenchHelper.createPlatformResourceInputStream},
   * which gives the expected Eclipse behaviour.
   * Otherwise, the {@link EcorePlugin#resolvePlatformResourcePath resolved} URI 
   * is delegated to {@link #createInputStream(URI, Map) createInputStream}
   * for recursive processing.
   * @return an open input stream.
   * @exception IOException if there is a problem obtaining an open input stream or a valid interpretation of the path.
   * @see EcorePlugin#resolvePlatformResourcePath(String)
   */
/**
   * Creates an output stream for the platform resource path and returns it.
   * <p>
   * This implementation does one of two things, depending on the runtime environment.
   * If there is an Eclipse workspace, it delegates to 
   * {@link WorkbenchHelper#createPlatformResourceOutputStream WorkbenchHelper.createPlatformResourceOutputStream},
   * which gives the expected Eclipse behaviour.
   * Otherwise, the {@link EcorePlugin#resolvePlatformResourcePath resolved} URI 
   * is delegated to {@link #createOutputStream(URI, Map) createOutputStream}
   * for recursive processing.
   * @return an open output stream.
   * @exception IOException if there is a problem obtaining an open output stream or a valid interpretation of the path.
   * @see EcorePlugin#resolvePlatformResourcePath(String)
   */
protected [[#variable1736f9e0]]  [[#variable1736f940]](String platformResourcePath) throws IOException {
  // ECLIPSE-DEPEND-BEGIN
  if (workspaceRoot != null) {
    return WorkbenchHelper. [[#variable1736f940]](platformResourcePath);
  }
  else
      // ECLIPSE-DEPEND-END
      {
    URI resolvedLocation = EcorePlugin.resolvePlatformResourcePath(platformResourcePath);
    if (resolvedLocation != null) {
      return [[#variable1736f8a0]](resolvedLocation);
    }
    throw new IOException("The path \'" + platformResourcePath + "\' is unmapped");
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1736f9e0]]
OutputStream 
12[[#1736f9e0]]
InputStream 
21[[#1736f940]]
createPlatformResourceOutputStream 
22[[#1736f940]]
createPlatformResourceInputStream 
31[[#1736f8a0]]
createOutputStream 
32[[#1736f8a0]]
createInputStream