Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 205093 | Differences between
and this patch

Collapse All | Expand All

(-)src-ui/org/eclipse/tptp/test/tools/api/internal/ui/test/generation/TPTPJUnitTestSuiteGenerationPane.java (-7 / +17 lines)
Lines 66-82 Link Here
66
		return testSuiteLocationText;
66
		return testSuiteLocationText;
67
	}
67
	}
68
68
69
	
69
	public void init(){
70
	public void init(){
70
 
71
 
71
	    testSuiteGeneratorCombo.select(0);
72
		testSuiteGeneratorCombo.select(1);
72
		
73
		
73
		testSuiteLocationText.setEnabled(false);
74
		testSuiteLocationText.setEnabled(true);
74
		testSuiteLocationText.setText("");
75
		testSuiteLocationText.setText("");
75
76
76
		//Work-around: Set the text field's background color to gray since disabled/enabled un-editable text fields have a gray background, by default.
77
		//Work-around: Set the text field's background color to white since disabled/enabled un-editable text fields have a gray background, by default.
77
	    testSuiteLocationText.setBackground(((Color)(testSuiteGeneratorCombo.getData("Background"))));	    			
78
		testSuiteLocationText.setBackground(testSuiteGeneratorCombo.getBackground());
78
79
79
		testSuiteLocationButton.setEnabled(false);		
80
		testSuiteLocationButton.setEnabled(true);		
80
	}
81
	}
81
82
82
	private void buildPane(){
83
	private void buildPane(){
Lines 112-121 Link Here
112
	    			testSuiteLocationText.setEnabled(true);
113
	    			testSuiteLocationText.setEnabled(true);
113
	    			
114
	    			
114
	    			//Work-around: Set the text field's background color to white since disabled/enabled un-editable text fields have a gray background, by default.
115
	    			//Work-around: Set the text field's background color to white since disabled/enabled un-editable text fields have a gray background, by default.
115
	    		    testSuiteLocationText.setBackground(testSuiteGeneratorCombo.getBackground());	    			
116
	    			testSuiteLocationText.setBackground(testSuiteGeneratorCombo.getBackground());    			
116
	    		}	    		
117
	    		}	    		
117
	    		else{
118
	    		else{
118
	    			init();
119
	    			
120
	    			testSuiteLocationButton.setEnabled(false);
121
		    		
122
	    			testSuiteLocationText.setEnabled(false);	
123
	    			testSuiteLocationText.setText("");
124
	    			
125
	    			//Work-around: Set the text field's background color to gray since disabled/enabled un-editable text fields have a gray background, by default.
126
	    		    testSuiteLocationText.setBackground(((Color)(testSuiteGeneratorCombo.getData("Background"))));	    
127
	    		    
119
	    		}
128
	    		}
120
			}		
129
			}		
121
		});
130
		});
Lines 185-187 Link Here
185
	    layout(false,true);
194
	    layout(false,true);
186
	}	
195
	}	
187
}
196
}
197

Return to bug 205093