Examples of ISigilProjectModel


Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

    public static Collection<IClasspathEntry> findClasspathEntries(ISigilBundle bundle)
    {
        LinkedList<IClasspathEntry> cp = new LinkedList<IClasspathEntry>();

        ISigilProjectModel sp = bundle.getAncestor(ISigilProjectModel.class);

        if (sp != null)
        {
            IJavaProject p = sp.getJavaModel();

            for (String enc : bundle.getClasspathEntrys())
            {
                IClasspathEntry e = p.decodeClasspathEntry(enc);
                if (e != null)
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

        List<IModelElement> requirements, IProgressMonitor monitor) throws CoreException
    {
        IAccessRule[] rules = buildAccessRules(project, provider, all, requirements);
        IClasspathAttribute[] attrs = new IClasspathAttribute[0];

        ISigilProjectModel other = provider.getAncestor(ISigilProjectModel.class);

        try
        {
            if (other == null)
            {
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

        IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
        IProject project = workspaceRoot.getProject(targetProject);

        try
        {
            ISigilProjectModel sigil = SigilCore.create(project);
            new ResolveProjectDependenciesAction(sigil, false).run();
        }
        catch (CoreException e)
        {
            // TODO Auto-generated catch block
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

        {
            throw SigilCore.newCoreException("Expected bundle symbolic name to be set",
                null);
        }
       
        ISigilProjectModel sigil = SigilCore.create(project);
        IClasspathEntry cp = JavaCore.newSourceEntry(src);
        String encodedClasspath = sigil.getJavaModel().encodeClasspathEntry(cp);

        ISigilBundle bundle = sigil.getBundle();
        bundle.addClasspathEntry(encodedClasspath);

        // fine set up other values
        bundle.getBundleInfo().setSymbolicName(bsn);
        if (description != null)
        {
            bundle.getBundleInfo().setDescription(description);
        }
        if (projectVersion != null)
        {
            bundle.setVersion(projectVersion);
        }
        if (vendorName != null)
        {
            bundle.getBundleInfo().setVendor(vendorName);
        }
        if (bundleName != null)
        {
            bundle.getBundleInfo().setName(bundleName);
        }
        sigil.save(monitor);
    }
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

        if (job != null)
        {
            job.cancel();
        }

        ISigilProjectModel project = findProject(element);       
        final IRepositoryManager repository = project == null ? SigilCore.getGlobalRepositoryManager() : project.getRepositoryManager();
       
        StringBuilder buf = new StringBuilder();
       
        for (IBundleRepository rep : repository.getRepositories()) {
            IRepositoryModel mod = SigilCore.getRepositoryModel(rep);
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

        {
            IClasspathEntry cp = getJavaModel().decodeClasspathEntry(path);
            switch (cp.getEntryKind())
            {
                case IClasspathEntry.CPE_PROJECT:
                    ISigilProjectModel p = bundle.getAncestor(ISigilProjectModel.class);
                    return p != null && cp.getPath().equals(p.getProject().getFullPath());
                case IClasspathEntry.CPE_LIBRARY:
                    return cp.getPath().equals(bundle.getLocation());
            }
        }
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

    @Override
    public void requestClasspathContainerUpdate(IPath containerPath,
        IJavaProject project, IClasspathContainer containerSuggestion)
        throws CoreException
    {
        ISigilProjectModel sigil = SigilCore.create(project.getProject());
       
        SigilClassPathContainer.flushCachedClassPath(sigil);

        IClasspathContainer sigilContainer = new SigilClassPathContainer(sigil);
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

    @Override
    public void initialize(IPath containerPath, IJavaProject project)
        throws CoreException
    {
        ISigilProjectModel sigil = SigilCore.create(project.getProject());

        IClasspathContainer sigilContainer = new SigilClassPathContainer(sigil);

        IJavaProject[] affectedProjects = new IJavaProject[] { project };
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

    {
        try
        {
            HashMap<Object, IJavaCompletionProposal> results = new HashMap<Object, IJavaCompletionProposal>();

            ISigilProjectModel project = findProject(context);

            if (project != null)
            {
                for (int i = 0; i < locations.length; i++)
                {
View Full Code Here

Examples of org.apache.felix.sigil.eclipse.model.project.ISigilProjectModel

        {
            try
            {
                if (p.isOpen() && p.hasNature(SigilCore.NATURE_ID))
                {
                    ISigilProjectModel n = SigilCore.create(p);
                    projects.add(n);
                }
            }
            catch (CoreException e)
            {
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.