Revision 3154d43f
Added by Andreas Müller about 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/UriDialog.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.ui.dialog; |
10 | 10 |
|
11 |
import java.net.URI;
|
|
11 |
import eu.etaxonomy.cdm.common.URI;
|
|
12 | 12 |
import java.net.URISyntaxException; |
13 | 13 |
|
14 | 14 |
import org.eclipse.jface.dialogs.IInputValidator; |
... | ... | |
73 | 73 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
74 | 74 |
* @param dialogTitle a {@link java.lang.String} object. |
75 | 75 |
* @param dialogMessage a {@link java.lang.String} object. |
76 |
* @return a {@link java.net.URI} object.
|
|
76 |
* @return a {@link eu.etaxonomy.cdm.common.URI} object.
|
|
77 | 77 |
*/ |
78 | 78 |
public static URI getUri(Shell shell, String dialogTitle, |
79 | 79 |
String dialogMessage) { |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/BrowserElement.java | ||
---|---|---|
34 | 34 |
* @param style a int. |
35 | 35 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object. |
36 | 36 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object. |
37 |
* @param imageUri a {@link java.net.URI} object.
|
|
37 |
* @param imageUri a {@link eu.etaxonomy.cdm.common.URI} object.
|
|
38 | 38 |
*/ |
39 | 39 |
protected BrowserElement(CdmFormFactory formFactory, ICdmFormElement parentElement, URI imageUri, int style) { |
40 | 40 |
super(formFactory, parentElement); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
1175 | 1175 |
* </p> |
1176 | 1176 |
* |
1177 | 1177 |
* @param imageUri |
1178 |
* a {@link java.net.URI} object.
|
|
1178 |
* a {@link eu.etaxonomy.cdm.common.URI} object.
|
|
1179 | 1179 |
* @param style |
1180 | 1180 |
* a int. |
1181 | 1181 |
* @param parentElement |
... | ... | |
1200 | 1200 |
* a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} |
1201 | 1201 |
* object. |
1202 | 1202 |
* @param imageUri |
1203 |
* a {@link java.net.URI} object.
|
|
1203 |
* a {@link eu.etaxonomy.cdm.common.URI} object.
|
|
1204 | 1204 |
* @param style |
1205 | 1205 |
* a int. |
1206 | 1206 |
* @return a {@link eu.etaxonomy.taxeditor.ui.element.ImageElement} object. |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/SpecimenProviderSelectionWizardPage.java | ||
---|---|---|
9 | 9 |
package eu.etaxonomy.taxeditor.view.dataimport; |
10 | 10 |
|
11 | 11 |
import java.net.MalformedURLException; |
12 |
import java.net.URI;
|
|
12 |
import eu.etaxonomy.cdm.common.URI;
|
|
13 | 13 |
import java.net.URISyntaxException; |
14 | 14 |
import java.net.URL; |
15 | 15 |
|
... | ... | |
68 | 68 |
if(specimenProviderSelectionController.getComposite().getBtnBioCaseProvider().getSelection()){ |
69 | 69 |
endPoint = null; |
70 | 70 |
try { |
71 |
endPoint = new URL(specimenProviderSelectionController.getComposite().getTxtAccessPoint().getText()).toURI();
|
|
71 |
endPoint = URI.fromUrl(new URL(specimenProviderSelectionController.getComposite().getTxtAccessPoint().getText()));
|
|
72 | 72 |
serviceWrapper = new BioCaseQueryServiceWrapper(); |
73 | 73 |
serviceWrapper.setBaseUrl(specimenProviderSelectionController.getComposite().getTxtAccessPoint().getText()); |
74 | 74 |
this.setErrorMessage(null); |
Also available in: Unified diff
ref #9114 further adapt some classes to URI wrapper in taxeditor