(final File f, final String name, ProgressDelegate progress)
| 784 | } |
| 785 | |
| 786 | private void loadFile(final File f, final String name, ProgressDelegate progress) throws IOException { |
| 787 | mFileChooserParent = f.getParentFile(); |
| 788 | final String path = f.getAbsolutePath(); |
| 789 | if (mRocLinesPanel.plotOrder().contains(path)) { |
| 790 | mProgressBar.setString("This file has already been loaded"); |
| 791 | } else { |
| 792 | final DataBundle data = ParseRocFile.loadStream(progress, FileUtils.createInputStream(f, false), f.getAbsolutePath(), mInterpolate); |
| 793 | data.setWeighted(mWeighted); |
| 794 | data.setTitle(f, name); |
| 795 | addLine(path, data); |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | private void addLine(String path, DataBundle dataBundle) { |
| 800 | final Color initialColor = mPalette[++mColorCounter % mPalette.length]; |
no test coverage detected