Package org.openscience.jchempaint.io

Examples of org.openscience.jchempaint.io.JCPFileView


        return;
      }
            try {
        JFileChooser chooser = new JFileChooser();
        chooser.setCurrentDirectory(jcpPanel.getCurrentWorkDirectory());
        chooser.setFileView(new JCPFileView());
        chooser.showSaveDialog(jcpPanel);
        File outFile = chooser.getSelectedFile();
        System.out.println(outFile);
        List<IAtomContainer> molecules= jcpPanel.get2DHub().getRGroupHandler().getrGroupQuery().getAllConfigurations();
        if (molecules.size() > 0) {
View Full Code Here


                        chooser.setFileFilter(chooser.getChoosableFileFilters()[i]);
                }
            } else {
                chooser.setFileFilter(chooser.getChoosableFileFilters()[0]);
            }
            chooser.setFileView(new JCPFileView());
            if(jcpPanel.isAlreadyAFile()!=null)
                chooser.setSelectedFile(jcpPanel.isAlreadyAFile());

            int returnVal = chooser.showSaveDialog(jcpPanel);
View Full Code Here

                    if(chooser.getChoosableFileFilters()[i].getDescription().equals(currentFilter.getDescription()))
                        chooser.setFileFilter(chooser.getChoosableFileFilters()[i]);
                }
            }
        }
        chooser.setFileView(new JCPFileView());

        int returnVal = chooser.showSaveDialog(jcpPanel);
        currentFilter = chooser.getFileFilter();
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            if(!(currentFilter instanceof IJCPFileFilter)){
View Full Code Here

            }
        }
        if (jcpPanel.getLastOpenedFile() != null) {
            chooser.setSelectedFile(jcpPanel.getLastOpenedFile());
        }
        chooser.setFileView(new JCPFileView());

        int returnVal = chooser.showOpenDialog(jcpPanel);

        if (returnVal == JFileChooser.APPROVE_OPTION) {
            jcpPanel.setCurrentWorkDirectory(chooser.getCurrentDirectory());
View Full Code Here

TOP

Related Classes of org.openscience.jchempaint.io.JCPFileView

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.