// display a GUI to browser the content repository. Wait until OK has been
// selected and fill in the text field with the URI
// Fetch the browser for the webdav protocol and display it.
// Add a listener for the result and update the value of the
// text field for the URI
ContentBrowserManager manager = ContentBrowserManager.getContentBrowserManager();
final ContentBrowserSPI browser = manager.getDefaultContentBrowser();
browser.addContentBrowserListener(new ContentBrowserListener() {
public void okAction(String uri) {
treatmentTextField.setText(uri);
browser.removeContentBrowserListener(this);