CloneSet3495


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12340.968class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121587
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightings.java
2131607
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightings.java
3121629
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightings.java
Clone Instance
1
Line Count
12
Source Line
1587
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightings.java

        /**
         * A named preference that controls the given semantic highlighting's color.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the color preference key
         */
        public static String getColorPreferenceKey(SemanticHighlighting semanticHighlighting) {
                return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_COLOR_SUFFIX;
        }

        /**
         * A named preference that controls if the given semantic highlighting has the text attribute bold.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the bold preference key
         */
        public static String getBoldPreferenceKey(SemanticHighlighting semanticHighlighting) {
                return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_BOLD_SUFFIX;
        }


Clone Instance
2
Line Count
13
Source Line
1607
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightings.java

        /**
         * A named preference that controls if the given semantic highlighting has the text attribute italic.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the italic preference key
         */
        public static String getItalicPreferenceKey(SemanticHighlighting semanticHighlighting) {
                return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ITALIC_SUFFIX;
        }

        /**
         * A named preference that controls if the given semantic highlighting has the text attribute strikethrough.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the strikethrough preference key
         * @since 3.1
         */
        public static String getStrikethroughPreferenceKey(SemanticHighlighting semanticHighlighting) {
                return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX;
        }


Clone Instance
3
Line Count
12
Source Line
1629
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightings.java

        /**
         * A named preference that controls if the given semantic highlighting has the text attribute underline.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the underline preference key
         * @since 3.1
         */
        public static String getUnderlinePreferenceKey(SemanticHighlighting semanticHighlighting) {
                return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_UNDERLINE_SUFFIX;
        }

        /**
         * A named preference that controls if the given semantic highlighting is enabled.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the enabled preference key
         */
        public static String getEnabledPreferenceKey(SemanticHighlighting semanticHighlighting) {
                return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED_SUFFIX;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
         * A named preference that controls the given semantic highlighting's color.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the color preference key
         */
/**
         * A named preference that controls if the given semantic highlighting has the text attribute italic.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the italic preference key
         */
/**
         * A named preference that controls if the given semantic highlighting has the text attribute underline.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the underline preference key
         * @since 3.1
         */
public static String  [[#variable4f10fcc0]](SemanticHighlighting semanticHighlighting) {
  return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants. [[#variable5464b640]];
}

/**
         * A named preference that controls if the given semantic highlighting has the text attribute bold.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the bold preference key
         */
/**
         * A named preference that controls if the given semantic highlighting has the text attribute strikethrough.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the strikethrough preference key
         * @since 3.1
         */
/**
         * A named preference that controls if the given semantic highlighting is enabled.
         *
         * @param semanticHighlighting the semantic highlighting
         * @return the enabled preference key
         */
public static String  [[#variable4f10fd60]](SemanticHighlighting semanticHighlighting) {
  return PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + semanticHighlighting.getPreferenceKey() + PreferenceConstants. [[#variable4f10e820]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4f10fcc0]]
getColorPreferenceKey 
12[[#4f10fcc0]]
getItalicPreferenceKey 
13[[#4f10fcc0]]
getUnderlinePreferenceKey 
21[[#5464b640]]
EDITOR_SEMANTIC_HIGHLIGHTING_COLOR_SUFFIX 
22[[#5464b640]]
EDITOR_SEMANTIC_HIGHLIGHTING_ITALIC_SUFFIX 
23[[#5464b640]]
EDITOR_SEMANTIC_HIGHLIGHTING_UNDERLINE_SUFFIX 
31[[#4f10fd60]]
getBoldPreferenceKey 
32[[#4f10fd60]]
getStrikethroughPreferenceKey 
33[[#4f10fd60]]
getEnabledPreferenceKey 
41[[#4f10e820]]
EDITOR_SEMANTIC_HIGHLIGHTING_BOLD_SUFFIX 
42[[#4f10e820]]
EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX 
43[[#4f10e820]]
EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED_SUFFIX