Examples of IvyFile


Examples of org.apache.ivyde.common.model.IvyFile

            IvyPlugin.logError("Getting the content of the document " + doc.toString() + " failed",
                e);
            return null;
        }
        IProject project = getProject();
        IvyFile ivyfile = completionProcessor.getModel().newIvyFile(
            project != null ? project.getName() : "", ivyFileString, documentOffset);
        CodeCompletionProposal[] proposals = completionProcessor.computeCompletionProposals(
            ivyfile, selectedRange.y);

        // convert code completion proposal into eclipse ICompletionProposal
View Full Code Here

Examples of org.apache.ivyde.common.model.IvyFile

            IvyPlugin.log(IStatus.ERROR, "Getting the content of the document " + doc.toString()
                    + " failed", e);
            return null;
        }
        IProject project = getProject();
        IvyFile ivyfile = completionProcessor.getModel().newIvyFile(
            project != null ? project.getName() : "", ivyFileString, documentOffset);
        CodeCompletionProposal[] proposals = completionProcessor.computeCompletionProposals(
            ivyfile, selectedRange.y);

        // convert code completion proposal into eclipse ICompletionProposal
View Full Code Here

Examples of org.apache.ivyde.common.model.IvyFile

            e.printStackTrace();
        }
    }

    public void testInTag() {
        IvyFile ivyFile = new IvyModuleDescriptorFile(null, "", hibContentStr);
        boolean b = ivyFile.inTag(200);
        assertEquals(b, true);
    }
View Full Code Here

Examples of org.apache.ivyde.common.model.IvyFile

        boolean b = ivyFile.inTag(200);
        assertEquals(b, true);
    }

    public void testGetTagName() {
        IvyFile ivyFile = new IvyModuleDescriptorFile(null, "", hibContentStr);
        String tag = ivyFile.getTagName(200);
        assertEquals("info", tag);
        tag = ivyFile.getTagName(864);
        assertEquals("description", tag);
        // tag = IvyFileUtil.getTagName(1000);
    }
View Full Code Here

Examples of org.apache.ivyde.common.model.IvyFile

        // tag = IvyFileUtil.getTagName(1000);
    }

    public void testGetAllAttsValues() {
        String test = "<test att1=\"value1\" att2 =\"value 2 \"  att3 =\" value3 \" att4   =   \"  4  \"";
        IvyFile ivyFile = new IvyModuleDescriptorFile(null, "", test);
        Map all = ivyFile.getAllAttsValues(1);
        assertNotNull(all);
        assertEquals(4, all.size());
        assertEquals("value1", all.get("att1"));
        assertEquals("value 2 ", all.get("att2"));
        assertEquals(" value3 ", all.get("att3"));
View Full Code Here

Examples of org.apache.ivyde.common.model.IvyFile

        assertEquals("  4  ", all.get("att4"));
    }

    public void testGetAttributeName() {
        String test = "<test nospace=\"\" 1Space =\"\"  2Space = \"\" lotofSpace   =   \"    \"";
        IvyFile ivyFile = new IvyModuleDescriptorFile(null, "", test);
        String name = ivyFile.getAttributeName(15);
        assertEquals("nospace", name);
        name = ivyFile.getAttributeName(28);
        assertEquals("1Space", name);
        name = ivyFile.getAttributeName(39);
        assertEquals("2Space", name);
        name = ivyFile.getAttributeName(60);
        assertEquals("lotofSpace", name);
    }
View Full Code Here

Examples of org.apache.ivyde.common.model.IvyFile

        name = ivyFile.getAttributeName(60);
        assertEquals("lotofSpace", name);
    }

    public void testGetParentTagName() {
        IvyFile ivyFile = new IvyModuleDescriptorFile(null, "", hibContentStr);
        String tag = ivyFile.getParentTagName(200);
        assertEquals("ivy-module", tag);
        tag = ivyFile.getParentTagName(2000);
        assertEquals("configurations", tag);
        tag = ivyFile.getParentTagName(1981);
        assertEquals("configurations", tag);
        tag = ivyFile.getParentTagName(1000);
        assertEquals("description", tag);
        tag = ivyFile.getParentTagName(5015);
        assertNull(tag);
    }
View Full Code Here

Examples of org.apache.ivyde.common.model.IvyFile

            IvyPlugin.log(IStatus.ERROR, "Getting the content of the document " + doc.toString()
                    + " failed", e);
            return null;
        }
        IProject project = getProject();
        IvyFile ivyfile = completionProcessor.getModel().newIvyFile(
            project != null ? project.getName() : "", ivyFileString, documentOffset);
        CodeCompletionProposal[] proposals = completionProcessor.computeCompletionProposals(
            ivyfile, selectedRange.y);

        // convert code completion proposal into eclipse ICompletionProposal
View Full Code Here

Examples of org.apache.ivyde.eclipse.ui.core.model.IvyFile

            IvyPlugin.log(IStatus.ERROR, "Getting the content of the document " + doc.toString()
                    + " failed", e);
            return null;
        }
        IProject project = getProject();
        IvyFile ivyfile = new IvyFile(project != null ? project.getName() : "", ivyFileString,
                documentOffset);
        if (ivyfile.inTag()) {
            String tagName = ivyfile.getTagName();
            if (ivyfile.readyForValue()) {
                computeValueProposals(tagName, ivyfile, propList, selectedRange);
            } else {
                // found a value to put in tag
                computeTagAttributeProposals(tagName, ivyfile, propList, selectedRange);
            }
View Full Code Here

Examples of org.apache.ivyde.eclipse.ui.core.model.IvyFile

            e.printStackTrace();
        }
    }

    public void testInTag() {
        IvyFile ivyFile = new IvyFile("", hibContentStr);
        boolean b = ivyFile.inTag(200);
        assertEquals(b, true);
    }
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.