@Override public VirtualFile[] selectFiles(@NotNull JComponent parent, @Nullable VirtualFile initialSelection, @Nullable Module contextModule, @NotNull LibraryEditor libraryEditor) { final VirtualFile vFile = Util.showSpecifyJavadocUrlDialog(parent); if (vFile != null) { return new VirtualFile[]{vFile}; } return VirtualFile.EMPTY_ARRAY; }
private void onSpecifyUrlButtonClicked() { String defaultDocsUrl = mySdk == null ? "" : StringUtil.notNullize(((SdkType)mySdk.getSdkType()).getDefaultDocumentationUrl(mySdk), ""); VirtualFile virtualFile = Util.showSpecifyJavadocUrlDialog(myPanel, defaultDocsUrl); if (virtualFile != null) { addElement(virtualFile); setModified(true); requestDefaultFocus(); setSelectedRoots(new Object[]{virtualFile}); } }
private void onSpecifyUrlButtonClicked() { final String defaultDocsUrl = mySdk == null ? "" : StringUtil.notNullize(((SdkType) mySdk.getSdkType()).getDefaultDocumentationUrl(mySdk), ""); VirtualFile virtualFile = Util.showSpecifyJavadocUrlDialog(myPanel, defaultDocsUrl); if(virtualFile != null){ addElement(virtualFile); setModified(true); requestDefaultFocus(); setSelectedRoots(new Object[]{virtualFile}); } }
@Override public VirtualFile[] selectFiles(@Nonnull JComponent parent, @Nullable VirtualFile initialSelection, @Nullable Module contextModule, @Nonnull LibraryEditor libraryEditor) { final VirtualFile vFile = Util.showSpecifyJavadocUrlDialog(parent); if (vFile != null) { return new VirtualFile[]{vFile}; } return VirtualFile.EMPTY_ARRAY; }
private void onSpecifyUrlButtonClicked() { final String defaultDocsUrl = mySdk == null ? "" : StringUtil.notNullize(((SdkType) mySdk.getSdkType()).getDefaultDocumentationUrl(mySdk), ""); VirtualFile virtualFile = Util.showSpecifyJavadocUrlDialog(myComponent, defaultDocsUrl); if(virtualFile != null){ addElement(virtualFile); setModified(true); requestDefaultFocus(); setSelectedRoots(new Object[]{virtualFile}); } }