void () { super.init(); if (myAllowActions) { // initialize repo browser this way - to make actions work correctly myRepositoryBrowser.setRepositoryURLs(new Url[]{myURL}, myIsShowFiles, new UrlOpeningExpander.Factory(myURL), true); } else { myRepositoryBrowser.setRepositoryURL(myURL, myIsShowFiles, new UrlOpeningExpander.Factory(myURL)); } myRepositoryBrowser.addChangeListener(e -> getOKAction().setEnabled(isOKActionEnabled())); }