Package org.epic.core.model

Examples of org.epic.core.model.Package


   
    protected IRegion findDeclaration(SourceFile sourceFile, String moduleName)
    {
        for (Iterator i = sourceFile.getPackages().iterator(); i.hasNext();)
        {
            Package pkg = (Package) i.next();          
            if (pkg.getName().equals(moduleName))
                return new Region(pkg.getOffset(), pkg.getLength());
        }
        return null;
    }
View Full Code Here


    private String[] findUsedModules(SourceFile sourceFile) throws CoreException
    {
        List names = new ArrayList();
        for (Iterator j = sourceFile.getPackages().iterator(); j.hasNext();)
        {
            Package pkg = (Package) j.next();
            for (Iterator i = pkg.getUses().iterator(); i.hasNext();)
                names.add(((ISourceElement) i.next()).getName());
        }
        return (String[]) names.toArray(new String[names.size()]);
    }
View Full Code Here

    private String[] findParents(SourceFile sourceFile) throws CoreException
    {
        List names = new ArrayList();
        for (Iterator j = sourceFile.getPackages().iterator(); j.hasNext();)
        {
            Package pkg = (Package) j.next();
            for (Iterator i = pkg.getParents().iterator(); i.hasNext();) {
                String parentName = ((ISourceElement) i.next()).getName();
                names.add(parentName);
            }
        }
        return (String[]) names.toArray(new String[names.size()]);
View Full Code Here

        {
            return model.getPackages().toArray();
        }
        else if (parentElement instanceof Package)
        {
            Package pkg = (Package) parentElement;
            PackageElem[] ret = new PackageElem[2];
            ret[0] = new PackageElem(pkg, MODULES);
            ret[1] = new PackageElem(pkg, SUBROUTINES);
            return ret;
        }
View Full Code Here

        {
            if (obj == this) return true;
            if ((obj instanceof PackageElem)) obj = ((PackageElem) obj).pkg;
            else if (!(obj instanceof Package)) return false;

            Package pkg = (Package) obj;
            return pkg.equals(this.pkg) && name.equals(this.name);
        }
View Full Code Here

TOP

Related Classes of org.epic.core.model.Package

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.