Examples of ILibrary


Examples of org.apache.felix.sigil.common.model.eclipse.ILibrary

        libraryView = new TableViewer(table);
        libraryView.setLabelProvider(new LabelProvider()
        {
            public String getText(Object element)
            {
                ILibrary rep = (ILibrary) element;
                return rep.getName() + " " + rep.getVersion();
            }
        });
        libraryView.setContentProvider(new DefaultTableProvider()
        {
            public Object[] getElements(Object inputElement)
View Full Code Here

Examples of org.apache.felix.sigil.common.model.eclipse.ILibrary

        boolean change = false;

        for (@SuppressWarnings("unchecked")
        Iterator<ILibrary> i = sel.iterator(); i.hasNext();)
        {
            ILibrary lib = i.next();
            LibraryConfigurationDialog d = new LibraryConfigurationDialog(getShell(), lib);
            if (d.open() == Window.OK)
            {
                libraries.remove(lib);
                libraries.add(d.getLibrary());
View Full Code Here

Examples of org.apache.felix.sigil.common.model.eclipse.ILibrary

        }
    }

    public ILibrary getLibrary()
    {
        ILibrary library = ModelElementFactory.getInstance().newModelElement(
            ILibrary.class);

        library.setName(name);
        library.setVersion(version);

        for (IPackageImport pi : packageImports)
        {
            library.addImport(pi);
        }

        return library;
    }
View Full Code Here

Examples of org.apache.felix.sigil.common.model.eclipse.ILibrary

            {
                found.add(l);
            }
            else
            {
                ILibrary c = found.get(0);
                if (l.getVersion().compareTo(c.getVersion()) > 0)
                {
                    found.remove(0);
                    found.add(l);
                }
            }
View Full Code Here

Examples of org.apache.felix.sigil.common.model.eclipse.ILibrary

                    {
                        reqs.add((IRequirementModelElement) element);
                    }
                    else if (element instanceof ILibrary)
                    {
                        ILibrary lib = repositoryManager.resolveLibrary((ILibraryImport) element);
                        reqs.addAll(lib.getImports());
                    }

                    return !ctx.monitor.isCanceled();
                }
            });
View Full Code Here

Examples of org.apache.felix.sigil.common.model.eclipse.ILibrary

                            }
                        }
                        else if (element instanceof ILibraryImport)
                        {
                            ILibraryImport l = (ILibraryImport) element;
                            ILibrary lib = sigil.getRepositoryManager().resolveLibrary(
                                l);

                            if (lib != null)
                            {
                                for (IPackageImport i : lib.getImports())
                                {
                                    if (i.accepts(cap))
                                    {
                                        dependents.add(n);
                                    }
View Full Code Here

Examples of org.eclipse.core.runtime.ILibrary

        ILibrary[] libraries = theDescriptor.getRuntimeLibraries();
       
        for (int i = 0; i < libraries.length; i++)
        {
         
            ILibrary currentLib = libraries[i];
            //CactusPlugin.log("Current library "+currentLib.getPath().toString());
            if (thePackagePrefix == null
                || isContained(thePackagePrefix, currentLib))
            {
                try
                {
                    URL url = new URL(root, currentLib.getPath().toString());
                    result.add(
                        LibraryHelper.getIClasspathEntry(
                            Platform.asLocalURL(url).getPath()));
                }
                catch (IOException 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.