Package org.jitterbit.ui.util.file

Examples of org.jitterbit.ui.util.file.FileUi


        }
    }

    private void loadSourceFile() throws CommandException {
        RecentFileStore files = createProjectFileStore();
        FileUi latestFile = files.latestFile();
        if (latestFile == null) {
            throw new CommandException("No known source file to use.");
        }
        SourceDataService svc = page.getTreeDataService().getSourceDataService();
        File file = latestFile.getFile();
        LoadSourceDataInput input = new LoadSourceDataFileInput(file);
        svc.loadSourceData(input, null);
    }
View Full Code Here


        fileList.setDeleteAction(delete);
    }
   
    @Override
    public File getValue() {
        FileUi f = fileList.getSelectedFile();
        return (f != null) ? f.getFile() : null;
    }
View Full Code Here

        addAllFiles(files);
        return files.toArray(new FileUi[files.size()]);
    }

    private void addLatestFile(Set<FileUi> files) {
        FileUi latest = latestFile();
        if (latest != null) {
            files.add(latest);
        }
    }
View Full Code Here

        for (Iterator<FileStoreFile> it = root.getChildren(); it.hasNext();) {
            FileStoreFile f = it.next();
            if (LatestFile.isPropertyFile(f.getPhysicalRepresentation())) {
                continue;
            }
            FileUi ui = getFileUi(f);
            if (!files.contains(ui)) {
                files.add(ui);
            }
        }
    }
View Full Code Here

                            getSuggestedFile(logEntry));
        }

        private File getSuggestedFile(OperationLogEntry logEntry) {
            File parentFolder = null;
            FileUi latest = LAST_SAVED_FILE.latestFile();
            if (latest != null) {
                parentFolder = latest.getFile().getParentFile();
            } else {
                parentFolder = SystemUtils.USER_HOME;
            }
            return new File(parentFolder, logEntry.getOperationName() + fileExtension);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.util.file.FileUi

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.