Examples of FileNode


Examples of AllWidgets_with_Mapping.FileNode

    public void display() {
        FieldPopupMenu.set(this.getqq_list(), this.getqq_table_popup());
        TextData.bind(this, "title").concat(" - ").concat("hello").concat(": ").concat(99);
        DirectoryFile fd = new DirectoryFile();
        fd.setLocalName(new TextData("c:\\"));
        this.setATreeView(new FileNode().construct(fd));
        this.getATreeView().setFolder(true);
        this.getATreeView().setOpened(true);
        this.getATreeView().setIsFilled(true);
        this.makeFileTree(this.getATreeView());

        this.setAOutlineField(new FileNode().construct(fd));
        this.getAOutlineField().setFolder(true);
        this.getAOutlineField().setOpened(true);
        this.getAOutlineField().setIsFilled(true);
        this.makeFileTree(this.getAOutlineField());
View Full Code Here

Examples of AllWidgets_with_Mapping.FileNode

        parent.setOpened(true);
        parent.setIsFilled(true);
        Array_Of_File<File> qq_localVector = dir.listFiles("*", null);
        if (qq_localVector != null) {
            for (File f : qq_localVector) {
                FileNode fn = new FileNode().construct(f);

                fn.setParent(parent);
                if (f.hasProperty(Framework.Constants.OS_FP_ISDIR)) {
                    fn.setFolder(true);
                    fn.setIsFilled(true);
                    //    makeFileTree(fn);
                }
            }
        }
    }
View Full Code Here

Examples of AllWidgets_with_Mapping.FileNode

    public String getJunk() {
        return this.junk;
    }

    public void setAOutlineField(FileNode aOutlineField) {
        FileNode oldValue = this.aOutlineField;
        this.aOutlineField = aOutlineField;
        RootNode.set(this.getqq_aOutlineField(), aOutlineField);
        this.qq_Listeners.firePropertyChange("AOutlineField", oldValue, this.aOutlineField);
    }
View Full Code Here

Examples of com.borland.primetime.node.FileNode

                    path=path.substring( 0, lastSlash+1);
                path=path+selectedObject.getDBClass().getSourceFile();
                Url fileUrl=analyzer.project.findSourcePathUrl( path);
                if ( fileUrl!=null)
                {
                    FileNode node=analyzer.project.getNode( fileUrl);
                    try
                    {
                        browser.setActiveNode( node, true);
                        if ( node instanceof TextFileNode)
                        {
View Full Code Here

Examples of com.qspin.qtaste.ui.tools.FileNode

    }

    protected boolean isTestcaseDir()
    {
        if (getUserObject() instanceof FileNode) {
            FileNode fn = (FileNode)getUserObject();
            return !fn.isTestcaseDir() && getParent() != null;
        }
        else return false;
       
    }
View Full Code Here

Examples of com.qspin.qtaste.ui.tools.FileNode

       
    }
   
    public boolean isLeaf() {
        if (getUserObject() instanceof FileNode) {
            FileNode fn = (FileNode)getUserObject();
            return fn.isTestcaseDir() && getParent() != null && (fn.isTestcaseDir() && !fn.isShowTestData() || fn.getChildren()== null || fn.getChildren().length==0);
        }
        else if (getUserObject() instanceof TestDataNode) {
            return true;
        }
        else return false;
View Full Code Here

Examples of com.qspin.qtaste.ui.tools.FileNode

            System.out.println("Too many Listeners");
        }
       
        this.setCellRenderer(new TestCaseTreeCellRenderer());

        FileNode rootFileNode = createRootFileNode();

        TCTreeNode rootNode = new TCTreeNode(rootFileNode, true);
        DefaultTreeModel tm = new DefaultTreeModel(rootNode);
        setModel(tm);
        generateScriptsTree(rootFileNode);
View Full Code Here

Examples of com.qspin.qtaste.ui.tools.FileNode

        return rootNode;
    }

    protected FileNode createRootFileNode() {
        String scriptDir = TESTUITE_DIR;
        FileNode tcFn = new FileNode(new File(scriptDir), "Test Cases",TESTUITE_DIR);
        return tcFn;
    }
View Full Code Here

Examples of com.qspin.qtaste.ui.tools.FileNode

    protected boolean checkIfDirectoryContainsTestScriptFile(File file) {
        File[] childFiles = FileUtilities.listSortedFiles(file);
        for (int i = 0; i < childFiles.length; i++) {
            if (childFiles[i].isDirectory()) {
                FileNode childNode = new FileNode(childFiles[i], childFiles[i].getName(),TESTUITE_DIR);
                if (childNode.isTestcaseDir()) {
                    return true;
                } else {
                    // go recursively into its directory
                    boolean result = checkIfDirectoryContainsTestScriptFile(childFiles[i]);
                    if (result) {
View Full Code Here

Examples of com.qspin.qtaste.ui.tools.FileNode

    protected void addChildToTree(File file, DefaultMutableTreeNode parent) {
        if (!file.isDirectory()) {
            return;
        }
        FileNode fn = new FileNode(file, file.getName(),TESTUITE_DIR);
        // check if the directory is the child one containing data files
        boolean nodeToAdd = fn.isTestcaseDir();
        if (!fn.isTestcaseDir()) {
            // go recursilvely to its child and check if it must be added
            nodeToAdd = checkIfDirectoryContainsTestScriptFile(file);
        }
        if (!nodeToAdd) {
            return;
        }
        TCTreeNode node = new TCTreeNode(fn, !fn.isTestcaseDir());
        final int NON_EXISTENT = -1;
        if (parent.getIndex(node) == NON_EXISTENT &&
                !file.isHidden()) {
            parent.add(node);
        }
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.