Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/datasource/wizard/CdmDataSourceCredentialsWizardPage.java | ||
---|---|---|
36 | 36 |
|
37 | 37 |
|
38 | 38 |
/** |
39 |
* <p>Abstract CdmDataSourceCredentialsWizardPage class.</p> |
|
40 |
* |
|
39 | 41 |
* @author n.hoffmann |
40 | 42 |
* @created 19.05.2009 |
41 | 43 |
* @version 1.0 |
... | ... | |
63 | 65 |
protected NomenclaturalCode nomenclaturalCode; |
64 | 66 |
|
65 | 67 |
/** |
66 |
* @param pageName |
|
68 |
* <p>Constructor for CdmDataSourceCredentialsWizardPage.</p> |
|
69 |
* |
|
70 |
* @param pageName a {@link java.lang.String} object. |
|
67 | 71 |
*/ |
68 | 72 |
protected CdmDataSourceCredentialsWizardPage(String pageName) { |
69 | 73 |
super(pageName); |
... | ... | |
73 | 77 |
/* (non-Javadoc) |
74 | 78 |
* @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite) |
75 | 79 |
*/ |
80 |
/** {@inheritDoc} */ |
|
76 | 81 |
public void createControl(Composite parent) { |
77 | 82 |
this.parent = parent; |
78 | 83 |
|
... | ... | |
121 | 126 |
init(); |
122 | 127 |
} |
123 | 128 |
|
129 |
/** |
|
130 |
* <p>createAuthenticationForm</p> |
|
131 |
*/ |
|
124 | 132 |
protected void createAuthenticationForm(){ |
125 | 133 |
// Create group composite for authentication data |
126 | 134 |
authenticationGroup = new Group(composite, SWT.NONE); |
... | ... | |
186 | 194 |
|
187 | 195 |
|
188 | 196 |
/** |
189 |
* Tries to open a connection to the given dataSource. Generates a message on either |
|
190 |
* failure or success |
|
191 |
* |
|
192 |
* @param dataSource |
|
197 |
* Tries to open a connection to the given dataSource. Generates a message on either |
|
198 |
* failure or success |
|
193 | 199 |
*/ |
194 | 200 |
public void testDbConfiguration(){ |
195 | 201 |
try{ |
... | ... | |
209 | 215 |
*/ |
210 | 216 |
public abstract void createDatabaseForm(); |
211 | 217 |
|
218 |
/** |
|
219 |
* <p>updateLocation</p> |
|
220 |
*/ |
|
212 | 221 |
public abstract void updateLocation(); |
213 | 222 |
|
223 |
/** |
|
224 |
* <p>updateDataSource</p> |
|
225 |
*/ |
|
214 | 226 |
public abstract void updateDataSource(); |
215 | 227 |
|
228 |
/** |
|
229 |
* <p>checkPageComplete</p> |
|
230 |
*/ |
|
216 | 231 |
public void checkPageComplete(){ |
217 | 232 |
boolean complete = database.length() != 0; |
218 | 233 |
// complete &= username.length() != 0; |
... | ... | |
221 | 236 |
} |
222 | 237 |
|
223 | 238 |
/** |
224 |
* Initialize text fields
|
|
239 |
* Initialize text fields |
|
225 | 240 |
*/ |
226 | 241 |
public void init() { |
227 | 242 |
if(getDataSource() != null){ |
... | ... | |
244 | 259 |
/* (non-Javadoc) |
245 | 260 |
* @see org.eclipse.jface.wizard.WizardPage#getNextPage() |
246 | 261 |
*/ |
262 |
/** {@inheritDoc} */ |
|
247 | 263 |
@Override |
248 | 264 |
public IWizardPage getNextPage() { |
249 | 265 |
return null; |
250 | 266 |
} |
251 | 267 |
|
252 | 268 |
/** |
269 |
* <p>Setter for the field <code>dataSource</code>.</p> |
|
270 |
* |
|
253 | 271 |
* @param dataSource the dataSource to set |
254 | 272 |
*/ |
255 | 273 |
public void setDataSource(ICdmDataSource dataSource) { |
... | ... | |
257 | 275 |
} |
258 | 276 |
|
259 | 277 |
/** |
278 |
* <p>Getter for the field <code>dataSource</code>.</p> |
|
279 |
* |
|
260 | 280 |
* @return the dataSource |
261 | 281 |
*/ |
262 | 282 |
public ICdmDataSource getDataSource() { |
... | ... | |
264 | 284 |
} |
265 | 285 |
|
266 | 286 |
/** |
267 |
* @return |
|
287 |
* <p>getDataSourceName</p> |
|
288 |
* |
|
289 |
* @return a {@link java.lang.String} object. |
|
268 | 290 |
*/ |
269 | 291 |
public String getDataSourceName() { |
270 | 292 |
if(dataSource instanceof CdmPersistentDataSource){ |
... | ... | |
276 | 298 |
/* (non-Javadoc) |
277 | 299 |
* @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent) |
278 | 300 |
*/ |
301 |
/** {@inheritDoc} */ |
|
279 | 302 |
public void modifyText(ModifyEvent e) { |
280 | 303 |
updateLocation(); |
281 | 304 |
updateAuthentication(); |
... | ... | |
284 | 307 |
} |
285 | 308 |
|
286 | 309 |
/** |
287 |
* |
|
288 |
* @param text |
|
289 |
* @param listener |
|
290 |
* @param string |
|
310 |
* <p>modifyTextWithoutTriggeringListeners</p> |
|
311 |
* |
|
312 |
* @param text a {@link org.eclipse.swt.widgets.Text} object. |
|
313 |
* @param listener a {@link org.eclipse.swt.events.ModifyListener} object. |
|
314 |
* @param string a {@link java.lang.String} object. |
|
291 | 315 |
*/ |
292 | 316 |
protected void modifyTextWithoutTriggeringListeners(Text text, ModifyListener listener, String string){ |
293 | 317 |
text.removeModifyListener(listener); |
Also available in: Unified diff
performed javacscript:fix and worked on documentation