Package com.intellij.openapi.fileChooser

Examples of com.intellij.openapi.fileChooser.FileSaverDialog.save()


                final FileSaverDescriptor descriptor = new FileSaverDescriptor("Save results to", "");
                final FileSaverDialog dialog = FileChooserFactory.getInstance().createSaveFileDialog(
                        descriptor, javaPuzzlersGame.getProject());
                VirtualFile base = javaPuzzlersGame.getProject().getBaseDir();

                final VirtualFileWrapper fileWrapper = dialog.save(base, "results.html");
                if (fileWrapper != null) {
                    ApplicationManager.getApplication().invokeLater(new Runnable() {
                        public void run() {
                            final VirtualFile fileToSave = fileWrapper.getVirtualFile(true);
                            assert fileToSave != null;
View Full Code Here


                    e1.printStackTrace();
                }
                if (currentLanguage == null) {
                    return;
                }
                final VirtualFileWrapper fileWrapper = dialog.save(base, resolveClassName() + '.' + currentLanguage.getAssociatedFileType().getDefaultExtension());
                if (fileWrapper != null) {
                    ApplicationManager.getApplication().invokeLater(new Runnable() {
                        public void run() {
                            onFileToSaveChosen(fileWrapper);
                        }
View Full Code Here

            final FileSaverDescriptor saverDescriptor = new FileSaverDescriptor("Save results to", "");
            final FileSaverDialog saverDialog = FileChooserFactory.getInstance().createSaveFileDialog(
                    saverDescriptor, project);
            VirtualFile base = project.getBaseDir();

            final VirtualFileWrapper fileWrapper = saverDialog.save(base, "");
            if (fileWrapper != null) {
                TransformerFactory tFactory = TransformerFactory.newInstance();

                final Transformer transformer = tFactory.newTransformer(new javax.xml.transform.stream.StreamSource(xsl.getInputStream()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.