Package com.qspin.qtaste.ui.csveditor

Examples of com.qspin.qtaste.ui.csveditor.TestDataEditor


            bottomSplitPane.setDividerSize(4);

            bottomSplitPane.setBottomComponent(log4jPane);

            mLogPanel.init();
            testDataView = new TestDataEditor(true);

            JSplitPane topSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
            topSplitPane.setResizeWeight(0.8);
            topSplitPane.setDividerSize(4);
            topSplitPane.setTopComponent(mLogPanel);
View Full Code Here


              if (tcPane!=null)
              {
                tcPane.setFileName(testScriptFileName);
              }
              // rename the testdata name
              TestDataEditor tcDataPane = testCasePane.getTestDataPane();
              if (tcDataPane!=null)
              {
                tcDataPane.setFileName(fn.getPythonTestScript().getTestcaseData().getCanonicalPath());
              }
             
              TCTreeNode parentTreeNode = (TCTreeNode)tn.getParent();
              parentTreeNode.removeAllChildren();
              FileNode parentFileNode = (FileNode)parentTreeNode.getUserObject();
View Full Code Here

                  if (!scriptCheckSyntaxValidator.check()) {
                    return false;
                  }
                }
            }
            TestDataEditor tabDataPane = this.getTestDataPane(i);
            if (tabDataPane != null && tabDataPane.isModified()) {
                tabDataPane.save();
            }
        }

        // check the module imported found in pythonlib
View Full Code Here

                }
                // remove all breakpoints and listeners if any
                currentPane.removeAllBreakpoints();
                currentPane = null;
            }
            TestDataEditor currentDataPane = getTestDataPane(0);
            if (currentDataPane != null) {
                if (currentDataPane.isModified()) {

                    if (JOptionPane.showConfirmDialog(null, "Do you want to save your current modification in '" + currentDataPane.getCurrentCSVFile() + "?'",
                            "Save confirmation", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                        currentDataPane.save();
                    }
                }
                currentDataPane = null;
            }
            editorTabbedPane.removeTabAt(0);
View Full Code Here

        return null;
    }

    public TestDataEditor getTestDataPane() {
        for (int i = 0; i < editorTabbedPane.getTabCount(); i++) {
            TestDataEditor testDataEditor = getTestDataPane(i);
            if (testDataEditor != null) {
                return testDataEditor;
            }
        }
        return null;
View Full Code Here

        return null;
    }

    public int getTestDataTabIndex() {
        for (int i = 0; i < editorTabbedPane.getTabCount(); i++) {
            TestDataEditor tabTestDataPane = getTestDataPane(i);
            if (tabTestDataPane != null) {
                return i;
            }
        }
        return -1; // not found       
View Full Code Here

    public void loadCSVFile(String fileName) {
        // load also the test data CSV file
        int testDataTabIndex = getTestDataTabIndex();
        if (testDataTabIndex != -1) {
            TestDataEditor currentTestDataEditor = this.getTestDataPane(testDataTabIndex);
            if (currentTestDataEditor != null) {
                if (currentTestDataEditor.getCurrentCSVFile().equals(fileName)) {
                    return;
                }
            }
        }
        TestDataEditor dataEditor = new TestDataEditor();
        dataEditor.loadCSVFile(fileName);
        editorTabbedPane.addTab("TestData", null, dataEditor, fileName);
        dataEditor.addPropertyChangeListener("isModified", new PropertyChangeListener() {

            public void propertyChange(PropertyChangeEvent evt) {
                if (evt.getNewValue().equals(true)) {
                    String currentTitle = editorTabbedPane.getTitleAt(editorTabbedPane.getSelectedIndex());
                    if (!currentTitle.contains("*")) {
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.ui.csveditor.TestDataEditor

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.