Package org.cishell.app.service.fileloader

Examples of org.cishell.app.service.fileloader.FileLoaderService


            Collection<File> flattenedFileStructure =
              flattenDraggedFileStructures(fileNames);

            ServiceReference fileLoaderServiceReference =
              Activator.context.getServiceReference(FileLoaderService.class.getName());
            FileLoaderService fileLoader =
              (FileLoaderService) Activator.context.getService(
                fileLoaderServiceReference);
            DataManagerService dataManager =
              (DataManagerService) Activator.context.getService(
                Activator.context.getServiceReference(
                  DataManagerService.class.getName()));

            ServiceReference dataManagerServiceReference =
            Activator.context.getServiceReference(DataManagerService.class.getName());

            for (File file : flattenedFileStructure) {
              /* TODO: Eventually use the AlgorithmInvocationService for this
              * kind of stuff?
              */
              ServiceReference uniqueServiceReference = dataManagerServiceReference;
//              ServiceReference uniqueServiceReference = new ServiceReferenceDelegate(
//              dataManagerServiceReference);
            CIShellContext ciShellContext = new CIShellContextDelegate(
              uniqueServiceReference, new LocalCIShellContext(Activator.context));
            LogService uniqueLogger =
              (LogService) ciShellContext.getService(LogService.class.getName());

              try {
                Data[] inputData = fileLoader.loadFile(
                  Activator.context,
                  ciShellContext,
                  uniqueLogger,
                  ProgressMonitor.NULL_MONITOR,
                  file);
View Full Code Here

TOP

Related Classes of org.cishell.app.service.fileloader.FileLoaderService

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.