(); JPanel panelMain = new JPanel(layout); panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); panelMain.add(createInputPanel(), cc.xy(1,1)); panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3)); panelMain.add(createOptionPanel(),cc.xy(1,3)); getContentPane().add(panelMain,BorderLayout.SOUTH); getContentPane().add( new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH, "findreplace", "header_title"), GlobalResourceLoader .getString(RESOURCE_PATH, "findreplace", "header_description"), ImageLoader.getIcon(IconKeys.SEARCH)), BorderLayout.NORTH); } private JPanel createInputPanel(){ FormLayout layout = new FormLayout("left:pref, 6dlu, left:pref", "pref, 3dlu, pref"); CellConstraints cc = new CellConstraints(); JPanel inputPanel = new JPanel(layout); inputPanel.add(findLabel,cc.xy(1,1)); findLabel.setLabelFor(findTextField); inputPanel.add(findTextField,cc.xy(3,1))
(); JPanel panelMain = new JPanel(layout); panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); panelMain.add(createInputPanel(),cc.xy(1,1)); panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3)); panelMain.add(createOptionPanel(),cc.xy(1,3)); getContentPane().add(panelMain,BorderLayout.SOUTH); getContentPane().add( new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH, "find", "header_title"), GlobalResourceLoader .getString(RESOURCE_PATH, "find", "header_description"), ImageLoader.getIcon(IconKeys.SEARCH)), BorderLayout.NORTH); } private JPanel createInputPanel(){ FormLayout layout = new FormLayout("left:pref, 6dlu, pref", "pref"); CellConstraints cc = new CellConstraints(); JPanel inputPanel = new JPanel(layout); inputPanel.add(findLabel,cc.xy(1,1)); findLabel.setLabelFor(findTextField); inputPanel.add(findTextField,cc.xy(3,1))
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindReplaceDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindDialog.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
();
1
();
2
		
2
		
3
		JPanel panelMain = new JPanel(layout);
3
		JPanel panelMain = new JPanel(layout);
4
		panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12));
4
		panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12));
5
		
5
		
6
		panelMain.add(createInputPanel(), cc.xy(1,1));
6
		panelMain.add(createInputPanel(),cc.xy(1,1));
7
		panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3));
7
		panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3));
8
		panelMain.add(createOptionPanel(),cc.xy(1,3));
8
		panelMain.add(createOptionPanel(),cc.xy(1,3));
9
		
9
		
10
		getContentPane().add(panelMain,BorderLayout.SOUTH);
10
		getContentPane().add(panelMain,BorderLayout.SOUTH);
11
		getContentPane().add(
11
		getContentPane().add(
12
				new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH,
12
				new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH,
13
						"findreplace", "header_title"), GlobalResourceLoader
13
						"find", "header_title"), GlobalResourceLoader
14
						.getString(RESOURCE_PATH, "findreplace", "header_description"),
14
						.getString(RESOURCE_PATH, "find", "header_description"),
15
						ImageLoader.getIcon(IconKeys.SEARCH)),
15
						ImageLoader.getIcon(IconKeys.SEARCH)),
16
				BorderLayout.NORTH);
16
				BorderLayout.NORTH);
17
	}
17
	}
18
	
18
	private JPanel createInputPanel(){
19
	private JPanel createInputPanel(){
19
		FormLayout layout = new FormLayout("left:pref, 6dlu, left:pref",
20
		FormLayout layout = new FormLayout("left:pref, 6dlu, pref",
20
				"pref, 3dlu, pref");
21
				"pref");
21
		CellConstraints cc = new CellConstraints();
22
		CellConstraints cc = new CellConstraints();
22
		JPanel inputPanel = new JPanel(layout);
23
		JPanel inputPanel = new JPanel(layout);
23
		
24
		
24
		inputPanel.add(findLabel,cc.xy(1,1));
25
		inputPanel.add(findLabel,cc.xy(1,1));
25
		findLabel.setLabelFor(findTextField);
26
		findLabel.setLabelFor(findTextField);
26
		inputPanel.add(findTextField,cc.xy(3,1))
27
		inputPanel.add(findTextField,cc.xy(3,1))
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0