void () { super.init(); myFollowRemoteTarget = true; setTitle(message("dialog.title.select.target.for.external")); setOKButtonText(message("button.select")); getRepositoryBrowser().addChangeListener(e -> { final String selectedURL = getRepositoryBrowser().getSelectedURL(); if (myFollowRemoteTarget && selectedURL != null) { myFolderName.setText(Url.tail(selectedURL)); } checkEnabled(); }); getOKAction().setEnabled(getRepositoryBrowser().getSelectedURL() != null); }