Package com.intellij.openapi.ui

Examples of com.intellij.openapi.ui.DialogWrapper


      UIUtil.invokeLaterIfNeeded(new Runnable() {
        @Override
        public void run() {
          List<VirtualFile> sources = getLibrarySourceFiles();
          final VirtualFile fileRequestor = PsiUtilCore.getVirtualFile(file);
          DialogWrapper dialog = new ChooseScopeAndCreateLibraryDialog(
            project,
            JstdLibraryUtil.LIBRARY_NAME,
            sources,
            new ScriptingFrameworkDescriptor(JstdLibraryUtil.LIBRARY_NAME, "1.3.5"),
            fileRequestor,
            false
          );
          AsyncResult<Boolean> result = dialog.showAndGetOk();
          result.doWhenDone(new Consumer<Boolean>() {
            @Override
            public void consume(Boolean done) {
              if (done) {
                FileContentUtil.reparseFiles(project, Collections.singletonList(fileRequestor), true);
View Full Code Here

TOP

Related Classes of com.intellij.openapi.ui.DialogWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.