Package bndtools.tasks

Examples of bndtools.tasks.AnalyseBundleResolutionJob


            return;
        IPath location = file.getLocation();
        if (location == null)
            return;

        final AnalyseBundleResolutionJob job = new AnalyseBundleResolutionJob(Messages.BundleCalculatedImportsPart_jobAnalyse, new File[] {
            location.toFile()
        });
        final Display display = tree.getDisplay();
        job.addJobChangeListener(new JobChangeAdapter() {
            @Override
            public void done(IJobChangeEvent event) {
                if (job.getResult().isOK()) {
                    final List<ImportPackage> imports = job.getImportResults();
                    display.asyncExec(new Runnable() {
                        public void run() {
                            if (tree != null && !tree.isDisposed())
                                viewer.setInput(imports);
                        }
                    });
                }
            }
        });
        job.schedule();
    }
View Full Code Here


            Job oldJob = analysisJob;
            if (oldJob != null && oldJob.getState() != Job.NONE)
                oldJob.cancel();

            if (selectedFiles != null) {
                final AnalyseBundleResolutionJob tmp = new AnalyseBundleResolutionJob("importExportAnalysis", selectedFiles);
                tmp.setSystem(true);

                tmp.addJobChangeListener(new JobChangeAdapter() {
                    @Override
                    public void done(IJobChangeEvent event) {
                        IStatus result = tmp.getResult();
                        if (result != null && result.isOK()) {
                            if (display != null && !display.isDisposed())
                                display.asyncExec(new Runnable() {
                                    public void run() {
                                        if (!tree.isDisposed())
                                            setInput(tmp.getResultFileArray(), tmp.getImportResults(), tmp.getExportResults(), tmp.getRequiredBundles());
                                    }
                                });
                        }
                    }
                });
View Full Code Here

TOP

Related Classes of bndtools.tasks.AnalyseBundleResolutionJob

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.