Package org.apache.felix.sigil.common.model.eclipse

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


        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

        }
    }

    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

            {
                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

                    {
                        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

                            }
                        }
                        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

TOP

Related Classes of org.apache.felix.sigil.common.model.eclipse.ILibrary

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.