Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
39 | 2 | 5 | 0.983 | class_body_declarations[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 39 | 35 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeStylePreferencePage.java |
2 | 39 | 37 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ImportOrganizePreferencePage.java |
| ||||
public CodeStylePreferencePage() { setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore()); //setDescription(PreferencesMessages.getString("CodeStylePreferencePage.description")); //$NON-NLS-1$ // only used when page is shown programatically setTitle(PreferencesMessages.CodeStylePreferencePage_title); } /* * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite) */ public void createControl(Composite parent) { IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); fConfigurationBlock = new NameConventionConfigurationBlock(getNewStatusChangedListener(), getProject(), container); super.createControl(parent); PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.CODE_MANIPULATION_PREFERENCE_PAGE); } protected Control createPreferenceContent(Composite composite) { return fConfigurationBlock.createContents(composite); } protected boolean hasProjectSpecificOptions(IProject project) { return fConfigurationBlock.hasProjectSpecificOptions(project); } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID() */ protected String getPreferencePageID() { return PREF_ID; } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID() */ protected String getPropertyPageID() { return PROP_ID; } |
| ||||
public ImportOrganizePreferencePage() { setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore()); //setDescription(PreferencesMessages.ImportOrganizePreferencePage_description); // only used when page is shown programatically setTitle(PreferencesMessages.ImportOrganizePreferencePage_title); } /* * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite) */ public void createControl(Composite parent) { IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); fConfigurationBlock = new ImportOrganizeConfigurationBlock(getNewStatusChangedListener(), getProject(), container); super.createControl(parent); PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IJavaHelpContextIds.ORGANIZE_IMPORTS_PREFERENCE_PAGE); } protected Control createPreferenceContent(Composite composite) { return fConfigurationBlock.createContents(composite); } protected boolean hasProjectSpecificOptions(IProject project) { return fConfigurationBlock.hasProjectSpecificOptions(project); } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID() */ protected String getPreferencePageID() { return PREF_ID; } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID() */ protected String getPropertyPageID() { return PROP_ID; } |
| |||
public [[#variable58bb5ba0]]() { setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore()); //setDescription(PreferencesMessages.getString("CodeStylePreferencePage.description")); //$NON-NLS-1$ //setDescription(PreferencesMessages.ImportOrganizePreferencePage_description); // only used when page is shown programatically setTitle(PreferencesMessages. [[#variable58bb5b00]]); } /* * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite) */ public void createControl(Composite parent) { IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer(); fConfigurationBlock = new [[#variable58bb5aa0]](getNewStatusChangedListener(), getProject(), container); super.createControl(parent); PlatformUI.getWorkbench().getHelpSystem().setHelp( [[#variable58bb5a40]], IJavaHelpContextIds. [[#variable58bb59e0]]); } protected Control createPreferenceContent(Composite composite) { return fConfigurationBlock.createContents(composite); } protected boolean hasProjectSpecificOptions(IProject project) { return fConfigurationBlock.hasProjectSpecificOptions(project); } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID() */ protected String getPreferencePageID() { return PREF_ID; } /* (non-Javadoc) * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID() */ protected String getPropertyPageID() { return PROP_ID; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58bb5ba0]] | CodeStylePreferencePage |
1 | 2 | [[#58bb5ba0]] | ImportOrganizePreferencePage |
2 | 1 | [[#58bb5b00]] | CodeStylePreferencePage_title |
2 | 2 | [[#58bb5b00]] | ImportOrganizePreferencePage_title |
3 | 1 | [[#58bb5aa0]] | NameConventionConfigurationBlock |
3 | 2 | [[#58bb5aa0]] | ImportOrganizeConfigurationBlock |
4 | 1 | [[#58bb5a40]] | getControl() |
4 | 2 | [[#58bb5a40]] | parent |
5 | 1 | [[#58bb59e0]] | CODE_MANIPULATION_PREFERENCE_PAGE |
5 | 2 | [[#58bb59e0]] | ORGANIZE_IMPORTS_PREFERENCE_PAGE |