CloneSet997


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10510.983class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1101407
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java
29217
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesView.java
31076
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java
41066
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/TypesView.java
51096
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/propertiesfileeditor/PropertiesFileEditor.java
Clone Instance
1
Line Count
10
Source Line
1407
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java

        /* (non-Javadoc)
         * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
         */
        public Object getAdapter(Class required) {
                if (required == IShowInTargetList.class ) {
                        return new IShowInTargetList() {
                                public String[] getShowInTargetIds() {
                                        return new String[] {
                                                              JavaUI.ID_PACKAGES, IPageLayout.ID_RES_NAV
                                                            };
                                }
                               };
                }
                return super.getAdapter(required);
        }


Clone Instance
2
Line Count
9
Source Line
217
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesView.java

        /**
         * Answer the property defined by key.
         */
        public Object getAdapter(Class key) {
                if (key == IShowInTargetList.class ) {
                        return new IShowInTargetList() {
                                public String[] getShowInTargetIds() {
                                        return new String[] {
                                                              JavaUI.ID_PACKAGES, IPageLayout.ID_RES_NAV
                                                            };
                                }
                               };
                }
                return super.getAdapter(key);
        }


Clone Instance
3
Line Count
10
Source Line
76
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java

        /**
         * Answer the property defined by key.
         */
        public Object getAdapter(Class key) {
                if (key == IShowInTargetList.class ) {
                        return new IShowInTargetList() {
                                public String[] getShowInTargetIds() {
                                        return new String[] {
                                                              JavaUI.ID_PACKAGES, IPageLayout.ID_RES_NAV
                                                            };
                                }
                               };
                }
                return super.getAdapter(key);
        }


Clone Instance
4
Line Count
10
Source Line
66
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/TypesView.java

        /**
         * Answer the property defined by key.
         */
        public Object getAdapter(Class key) {
                if (key == IShowInTargetList.class ) {
                        return new IShowInTargetList() {
                                public String[] getShowInTargetIds() {
                                        return new String[] {
                                                              JavaUI.ID_PACKAGES, IPageLayout.ID_RES_NAV
                                                            };
                                }
                               };
                }
                return super.getAdapter(key);
        }


Clone Instance
5
Line Count
10
Source Line
96
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/propertiesfileeditor/PropertiesFileEditor.java

        /*
         * @see org.eclipse.ui.editors.text.TextEditor#getAdapter(java.lang.Class)
         */
        public Object getAdapter(Class adapter) {
                if (adapter == IShowInTargetList.class ) {
                        return new IShowInTargetList() {
                                public String[] getShowInTargetIds() {
                                        return new String[] {
                                                              JavaUI.ID_PACKAGES, IPageLayout.ID_RES_NAV
                                                            };
                                }
                               };
                }
                return super.getAdapter(adapter);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Answer the property defined by key.
         */
/*
         * @see org.eclipse.ui.editors.text.TextEditor#getAdapter(java.lang.Class)
         */
/* (non-Javadoc)
         * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
         */
public Object getAdapter(Class  [[#variablebaebcb40]]) {
  if ( [[#variablebaebcb40]]== IShowInTargetList.class ) {
    return new IShowInTargetList() {
             public String[] getShowInTargetIds() {
               return new String[] {
                                     JavaUI.ID_PACKAGES,
                                     IPageLayout.ID_RES_NAV
                                   };
             }
           };
  }
  return super.getAdapter( [[#variablebaebcb40]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#baebcb40]]
key 
12[[#baebcb40]]
adapter 
13[[#baebcb40]]
required 
14[[#baebcb40]]
key 
15[[#baebcb40]]
key