Package org.apache.felix.sigil.eclipse.install

Examples of org.apache.felix.sigil.eclipse.install.IOSGiInstall


{

    public void launch(ILaunchConfiguration config, String mode, ILaunch launch,
        IProgressMonitor monitor) throws CoreException
    {
        IOSGiInstall osgi = LaunchHelper.getInstall(config);

        VMRunnerConfiguration vmconfig = new VMRunnerConfiguration(Main.class.getName(),
            buildClasspath(osgi, config));

        String vm = getVMArguments(config);
View Full Code Here


    }

    @Override
    public void accept(IRepositoryVisitor visitor, int options)
    {
        IOSGiInstall install = SigilCore.getInstallManager().getDefaultInstall();

        if (install != null)
        {
            List<ISigilBundle> found = null;

            synchronized (this)
            {
                found = bundles == null ? null : bundles.get(install.getId());
            }

            if (found == null)
            {
                found = new ArrayList<ISigilBundle>();
                IPath source = install.getType().getSourceLocation();

                for (IPath p : install.getType().getDefaultBundleLocations())
                {
                    loadBundle(p, found, source);
                }

                synchronized (this)
                {
                    bundles = new HashMap<String, List<ISigilBundle>>();
                    bundles.put(install.getId(), found);
                }
            }

            for (ISigilBundle b : found)
            {
View Full Code Here

    {
        IOSGiInstallType type = null;

        try
        {
            IOSGiInstall install = buildInstall("tmp", new Path(location));
            type = install == null ? null : install.getType();
        }
        catch (CoreException e)
        {
            SigilCore.error("Failed to build install", e);
        }
View Full Code Here

        }
    }

    private IOSGiInstall addInstall(String id, IPath path)
    {
        IOSGiInstall install = pathToinstall.get(path);

        if (install == null)
        {
            try
            {
                install = buildInstall(id, path);
                if (install != null)
                {
                    pathToinstall.put(path, install);
                    idToInstall.put(install.getId(), install);
                }
            }
            catch (CoreException e)
            {
                SigilCore.error("Failed to build install for " + path, e);
View Full Code Here

    }

    private IOSGiInstall buildInstall(String id, IPath path) throws CoreException
    {
        initBuilders();
        IOSGiInstall install = null;

        for (IOSGiInstallBuilder b : builders)
        {
            install = b.build(id, path);
View Full Code Here

    public void createFieldEditors()
    {
        ArrayList<String[]> installs = new ArrayList<String[]>();
        for (String id : SigilCore.getInstallManager().getInstallIDs())
        {
            IOSGiInstall i = SigilCore.getInstallManager().findInstall(id);
            installs.add(new String[] { i.getType().getName(), id });
        }
        String[][] strs = installs.toArray(new String[installs.size()][]);

        RadioGroupFieldEditor editor = new RadioGroupFieldEditor("id", "Install", 1,
            strs, getFieldEditorParent());
View Full Code Here

TOP

Related Classes of org.apache.felix.sigil.eclipse.install.IOSGiInstall

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.