Package com.qspin.qtaste.ui.jedit

Examples of com.qspin.qtaste.ui.jedit.NonWrappingTextPane.save()


        // save and check syntax of the documents
        for (int i = 0; i < editorTabbedPane.getTabCount(); i++) {
            NonWrappingTextPane tabTextPane = getTextPane(i);
            if (tabTextPane != null) {
                if (tabTextPane.isModified()) {
                    tabTextPane.save();
                }
                // check only opened Python files
                if (tabTextPane.getFileName().endsWith(".py")) {
                  ScriptCheckSyntaxValidator scriptCheckSyntaxValidator =
                          new ScriptCheckSyntaxValidator(tabTextPane.getFileName(), tabTextPane.getText());
View Full Code Here


            if (currentPane != null) {
                if (currentPane.isModified()) {

                    if (JOptionPane.showConfirmDialog(null, "Do you want to save your current modification in '" + currentPane.getFileName() + "?'",
                            "Save confirmation", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                        currentPane.save();
                    }
                }
                // remove all breakpoints and listeners if any
                currentPane.removeAllBreakpoints();
                currentPane = null;
View Full Code Here

     * This method saves the current document only if the current pane is a textpane containing a python script
     */
    public void saveActiveDocument() {
        NonWrappingTextPane activeTextPane = getActiveTextPane();
        if (activeTextPane != null) {
            activeTextPane.save();
        }

    }

    public void setTestCaseSource(NonWrappingTextPane textPane, String fileName, String contents, boolean isTestScript) {
View Full Code Here

                    // check if the textpane must be saved

                    if (textPane.isModified()) {
                        if (JOptionPane.showConfirmDialog(null, "Do you want to save your current modification in '" + textPane.getFileName() + "?'",
                                "Save confirmation", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                            textPane.save();
                        }
                    }
                    editorTabbedPane.remove(tabIndex);
                }
            }
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.