CloneSet769


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24240.988class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12461
plugins/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/internal/core/manipulation/JavaManipulationPlugin.java
224252
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java
Clone Instance
1
Line Count
24
Source Line
61
Source File
plugins/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/internal/core/manipulation/JavaManipulationPlugin.java

        public static String getPluginId() {
                return JavaManipulation.ID_PLUGIN;
        }

        public static void log(IStatus status) {
                getDefault().getLog().log(status);
        }

        public static void logErrorMessage(String message) {
                log(new Status(IStatus.ERROR, getPluginId(), IStatusConstants.INTERNAL_ERROR, message, null));
        }

        public static void logErrorStatus(String message, IStatus status) {
                if (status == null) {
                        logErrorMessage(message);
                        return;
                }
                MultiStatus multi = new MultiStatus(getPluginId(), IStatusConstants.INTERNAL_ERROR, message, null);
                multi.add(status);
                log(multi);
        }

        public static void log(Throwable e) {
                log(new Status(IStatus.ERROR, getPluginId(), IStatusConstants.INTERNAL_ERROR, JavaManipulationMessages.JavaManipulationMessages_internalError, e));
        }


Clone Instance
2
Line Count
24
Source Line
252
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java

        public static String getPluginId() {
                return JavaUI.ID_PLUGIN;
        }

        public static void log(IStatus status) {
                getDefault().getLog().log(status);
        }

        public static void logErrorMessage(String message) {
                log(new Status(IStatus.ERROR, getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, message, null));
        }

        public static void logErrorStatus(String message, IStatus status) {
                if (status == null) {
                        logErrorMessage(message);
                        return;
                }
                MultiStatus multi = new MultiStatus(getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, message, null);
                multi.add(status);
                log(multi);
        }

        public static void log(Throwable e) {
                log(new Status(IStatus.ERROR, getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, JavaUIMessages.JavaPlugin_internal_error, e));
        }


Clone AbstractionParameter Count: 4Parameter Bindings

public static String getPluginId() {
  return [[#variableb30bdb20]].ID_PLUGIN;
}

public static void log(IStatus status) {
  getDefault().getLog().log(status);
}

public static void logErrorMessage(String message) {
  log(new Status(IStatus.ERROR, getPluginId(),  [[#variable53257200]].INTERNAL_ERROR, message, null));
}

public static void logErrorStatus(String message, IStatus status) {
  if (status == null) {
    logErrorMessage(message);
    return;
  }
  MultiStatus multi = new MultiStatus(getPluginId(),  [[#variable53257200]].INTERNAL_ERROR, message, null);
  multi.add(status);
  log(multi);
}

public static void log(Throwable e) {
  log(new Status(IStatus.ERROR, getPluginId(),  [[#variable53257200]].INTERNAL_ERROR,  [[#variableb30bdfc0]]. [[#variablec2d133e0]], e));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b30bdb20]]
JavaManipulation 
12[[#b30bdb20]]
JavaUI 
21[[#53257200]]
IStatusConstants 
22[[#53257200]]
IJavaStatusConstants 
31[[#b30bdfc0]]
JavaManipulationMessages 
32[[#b30bdfc0]]
JavaUIMessages 
41[[#c2d133e0]]
JavaManipulationMessages_internalError 
42[[#c2d133e0]]
JavaPlugin_internal_error