private static class SQLJavaObjectOkJPanel extends OkJPanel { private static final long serialVersionUID = 1353928067985854545L; /* * GUI components - need to be here because they need to be * accessible from the event handlers to alter each other's state. */ // check box for whether to read contents during table load or not private JCheckBox _showSQLJavaObjectChk = new JCheckBox( // i18n[dataTypeJavaObject.readContentsWhenLoaded=Read contents when table is first loaded and display as string] s_stringMgr.getString("dataTypeJavaObject.readContentsWhenLoaded")); public SQLJavaObjectOkJPanel() { /* set up the controls */ // checkbox for read/not-read on table load _showSQLJavaObjectChk.setSelected(_readSQLJavaObject); /* * Create the panel and add the GUI items to it */ // i18n[dataTypeJavaObject.sqlJavaObjectType=SQL JavaObject (SQL type 2000)] setBorder(BorderFactory.createTitledBorder(s_stringMgr.getString("dataTypeJavaObject.sqlJavaObjectType"))); add(_showSQLJavaObjectChk); } // end of constructor for inner class /** * User has clicked OK in the surrounding JPanel, * so save the current state of all variables */ public void ok() { // get the values from the controls and set them in the static properties _readSQLJavaObject = _showSQLJavaObjectChk.isSelected(); DTProperties.put( thisClassName, "readSQLJavaObject", Boolean.valueOf(_readSQLJavaObject).toString())
private static class SQLOtherOkJPanel extends OkJPanel { private static final long serialVersionUID = 9034966488591013288L; /* * GUI components - need to be here because they need to be * accessible from the event handlers to alter each other's state. */ // check box for whether to read contents during table load or not private JCheckBox _showSQLOtherChk = new JCheckBox( // i18n[dataTypeOther.readContentsWhenLoaded=Read contents when table is first loaded and display as string] s_stringMgr.getString("dataTypeOther.readContentsWhenLoaded")); public SQLOtherOkJPanel() { /* set up the controls */ // checkbox for read/not-read on table load _showSQLOtherChk.setSelected(_readSQLOther); /* * Create the panel and add the GUI items to it */ // i18n[dataTypeOther.sqlOtherType=SQL Other (SQL type 1111)] setBorder(BorderFactory.createTitledBorder(s_stringMgr.getString("dataTypeOther.sqlOtherType"))); add(_showSQLOtherChk); } // end of constructor for inner class /** * User has clicked OK in the surrounding JPanel, * so save the current state of all variables */ public void ok() { // get the values from the controls and set them in the static properties _readSQLOther = _showSQLOtherChk.isSelected(); DTProperties.put( thisClassName, "readSQLOther", Boolean.valueOf(_readSQLOther).toString())
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeJavaObject.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeOther.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private static class SQLJavaObjectOkJPanel extends OkJPanel {
1
private static class SQLOtherOkJPanel extends OkJPanel {
2
	    private static final long serialVersionUID = 1353928067985854545L;
2
	     private static final long serialVersionUID = 
3
   
3
9034966488591013288L;
4
     /*
4
	     /*
5
		 * GUI components - need to be here because they need to be
5
	      * GUI components - need to be here because they need to be
6
		 * accessible from the event handlers to alter each other's state.
6
	      * accessible from the event handlers to alter each other's state.
7
		 */
7
	
8
		
8
      */
9
// check box for whether to read contents during table load or not
9
	     // check box for whether to read contents during table load or not
10
		private JCheckBox _showSQLJavaObjectChk = new JCheckBox(
10
	     private JCheckBox _showSQLOtherChk = new JCheckBox(
11
			// i18n[dataTypeJavaObject.readContentsWhenLoaded=Read contents when table is first loaded and display as string]
11
	             // i18n[dataTypeOther.readContentsWhenLoaded=Read contents when table is first loaded and display as string]
12
			s_stringMgr.getString("dataTypeJavaObject.readContentsWhenLoaded"));
12
	             s_stringMgr.getString("dataTypeOther.readContentsWhenLoaded"));
13
		public SQLJavaObjectOkJPanel() {
13
		public SQLOtherOkJPanel() {
14
		 	 
14
			/* set up the controls */
15
			/* set up the controls */
15
			// checkbox for read/not-read on table load
16
			// checkbox for read/not-read on table load
16
			_showSQLJavaObjectChk.setSelected(_readSQLJavaObject);
17
			_showSQLOtherChk.setSelected(_readSQLOther);
17
			/*
18
			/*
18
			 * Create the panel and add the GUI items to it
19
			 * Create the panel and add the GUI items to it
19
			 */
20
			 */
21
 		
20
			// i18n[dataTypeJavaObject.sqlJavaObjectType=SQL JavaObject   (SQL type 2000)]
22
			// i18n[dataTypeOther.sqlOtherType=SQL Other   (SQL type 1111)]
21
			setBorder(BorderFactory.createTitledBorder(s_stringMgr.getString("dataTypeJavaObject.sqlJavaObjectType")));
23
			setBorder(BorderFactory.createTitledBorder(s_stringMgr.getString("dataTypeOther.sqlOtherType")));
22
			add(_showSQLJavaObjectChk);
24
			add(_showSQLOtherChk);
23
		} // end of constructor for inner class
25
		} // end of constructor for inner class
26
	 
27
	 
24
		/**
28
		/**
25
		 * User has clicked OK in the surrounding JPanel,
29
		 * User has clicked OK in the surrounding JPanel,
26
		 * so save the current state of all variables
30
		 * so save the current state of all variables
27
		 */
31
		 */
28
		public void ok() {
32
		public void ok() {
29
			// get the values from the controls and set them in the static properties
33
			// get the values from the controls and set them in the static properties
30
			_readSQLJavaObject = _showSQLJavaObjectChk.isSelected();
34
			_readSQLOther = _showSQLOtherChk.isSelected();
31
			DTProperties.put(
35
			DTProperties.put(
32
				thisClassName,
36
				thisClassName,
33
				"readSQLJavaObject", Boolean.valueOf(_readSQLJavaObject).toString())
37
				"readSQLOther", Boolean.valueOf(_readSQLOther).toString())
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