| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 2 | 1 | 0.988 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 1128 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java |
| 2 | 2 | 1463 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java |
| ||||
/*
private void saveCurrentFrame(IMemento memento) {
FrameAction action = fActionSet.getUpAction();
FrameList frameList= action.getFrameList();
if (frameList.getCurrentIndex() > 0) {
TreeFrame currentFrame = (TreeFrame) frameList.getCurrentFrame();
// don't persist the working set model as the current frame
if (currentFrame.getInput() instanceof WorkingSetModel)
return;
IMemento frameMemento = memento.createChild(TAG_CURRENT_FRAME);
currentFrame.saveState(frameMemento);
}
}
*/
private void saveLinkingEnabled(IMemento memento) {
memento.putInteger(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, fLinkingEnabled ? 1: 0);
}
|
| ||||
private void saveLinkingEnabled(IMemento memento) {
memento.putInteger(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, fLinkingEnabled ? 1: 0);
}
|
| |||
/*
private void saveCurrentFrame(IMemento memento) {
FrameAction action = fActionSet.getUpAction();
FrameList frameList= action.getFrameList();
if (frameList.getCurrentIndex() > 0) {
TreeFrame currentFrame = (TreeFrame) frameList.getCurrentFrame();
// don't persist the working set model as the current frame
if (currentFrame.getInput() instanceof WorkingSetModel)
return;
IMemento frameMemento = memento.createChild(TAG_CURRENT_FRAME);
currentFrame.saveState(frameMemento);
}
}
*/
private void saveLinkingEnabled(IMemento memento) {
memento.putInteger(PreferenceConstants. [[#variable975b7640]], fLinkingEnabled ? 1: 0);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#975b7640]] | LINK_TYPEHIERARCHY_TO_EDITOR |
| 1 | 2 | [[#975b7640]] | LINK_PACKAGES_TO_EDITOR |