Revision 66eb9f49
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportConfiguratorWizardPage.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.io.wizard; |
11 | 10 |
|
12 | 11 |
import java.net.URI; |
... | ... | |
46 | 45 |
import eu.etaxonomy.taxeditor.ui.dialog.selection.SelectionDialogFactory; |
47 | 46 |
|
48 | 47 |
/** |
49 |
* |
|
50 | 48 |
* @author pplitzner |
51 |
* |
|
52 | 49 |
*/ |
53 | 50 |
public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard implements SelectionListener { |
54 | 51 |
|
... | ... | |
105 | 102 |
"Tooltips will explain parameters in more detail", configurator, true, false); |
106 | 103 |
} |
107 | 104 |
|
108 |
|
|
109 |
|
|
110 |
/** {@inheritDoc} */ |
|
111 | 105 |
@Override |
112 | 106 |
public void createControl(Composite parent) { |
113 | 107 |
Composite composite = new Composite(parent, SWT.NULL); |
... | ... | |
169 | 163 |
} |
170 | 164 |
}); |
171 | 165 |
|
172 |
|
|
173 |
|
|
174 | 166 |
Button checkBoxMoveToDefaultClassification = new Button(composite, SWT.CHECK); |
175 | 167 |
gridData = new GridData(); |
176 | 168 |
gridData.horizontalAlignment = GridData.FILL_HORIZONTAL; |
... | ... | |
537 | 529 |
abcdImportConfigurator.setDnaSoure(null); |
538 | 530 |
} |
539 | 531 |
} |
540 |
|
|
541 |
|
|
542 | 532 |
} |
543 | 533 |
|
544 |
public void saveConfigToPrefernceStore() {
|
|
534 |
public void saveConfigToPrefernceStore() { |
|
545 | 535 |
try{ |
546 | 536 |
abcdImportConfigurator.setDnaSoure(URI.create(textDNAProviderString.getText())); |
547 | 537 |
}catch(IllegalArgumentException e){ |
... | ... | |
549 | 539 |
abcdImportConfigurator.setDnaSoure(null); |
550 | 540 |
} |
551 | 541 |
|
552 |
|
|
553 | 542 |
PreferencesUtil.setStringValue(IPreferenceKeys.LAST_USED_ABCD_CONFIG, abcdImportConfigurator.toString()); |
554 |
|
|
555 |
|
|
556 | 543 |
} |
557 | 544 |
|
558 | 545 |
public String createConfigString(){ |
... | ... | |
560 | 547 |
|
561 | 548 |
} |
562 | 549 |
|
563 |
|
|
564 |
|
|
565 |
/* (non-Javadoc) |
|
566 |
* @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent) |
|
567 |
*/ |
|
568 | 550 |
@Override |
569 | 551 |
public void widgetDefaultSelected(SelectionEvent e) { |
570 | 552 |
// TODO Auto-generated method stub |
571 |
|
|
572 | 553 |
} |
573 | 554 |
|
574 | 555 |
public void createAbcdImportConfig() { |
575 | 556 |
this.abcdImportConfigurator = PreferencesUtil.getLocalAbcdImportConfigurator(false); |
576 |
|
|
577 | 557 |
} |
578 | 558 |
} |
Also available in: Unified diff
cleanup