Revision a45e3c4a
Added by Patrick Plitzner over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaDetailElement.java | ||
---|---|---|
70 | 70 |
public void handleEvent(Object eventSource){ |
71 | 71 |
if(eventSource==textUri){ |
72 | 72 |
textUri.setBackground(getPersistentBackground()); |
73 |
URI uri = textUri.getUri();
|
|
73 |
URI uri = textUri.parseText();
|
|
74 | 74 |
singleMediaRepresentationPart.setUri(uri); |
75 | 75 |
if(uri==null){ |
76 | 76 |
uriBuffer=textUri.getText(); |
... | ... | |
113 | 113 |
} |
114 | 114 |
textUri = formFactory.createUriWithLabelElement(parentFormElement, "Media URI", null, style); |
115 | 115 |
URI uri = singleMediaRepresentationPart.getUri(); |
116 |
textUri.setUri(uri);
|
|
116 |
textUri.setParsedText(uri);
|
|
117 | 117 |
//set buffered uri as text if uri had parsing problems in advanced view |
118 | 118 |
if(uri==null && uriBuffer!=null){ |
119 | 119 |
textUri.setText(uriBuffer); |
120 |
textUri.getUri();
|
|
120 |
textUri.parseText();
|
|
121 | 121 |
} |
122 | 122 |
textUri.getLayoutComposite().layout(); |
123 | 123 |
} |
Also available in: Unified diff
Generalized UriWithLabelElement to use super class