Refactor: rename analyze package to filter

This commit is contained in:
Reinhard Pointner 2016-03-22 08:29:42 +00:00
parent 8615fddb8d
commit 5472ea88bd
14 changed files with 28 additions and 28 deletions

View File

@ -4,8 +4,8 @@ package net.filebot.ui;
import javax.swing.Icon;
import javax.swing.JComponent;
import net.filebot.ui.analyze.AnalyzePanelBuilder;
import net.filebot.ui.episodelist.EpisodeListPanelBuilder;
import net.filebot.ui.filter.FilterPanelBuilder;
import net.filebot.ui.list.ListPanelBuilder;
import net.filebot.ui.rename.RenamePanelBuilder;
import net.filebot.ui.sfv.SfvPanelBuilder;
@ -20,7 +20,7 @@ public interface PanelBuilder {
public JComponent create();
public static PanelBuilder[] defaultSequence() {
return new PanelBuilder[] { new RenamePanelBuilder(), new EpisodeListPanelBuilder(), new SubtitlePanelBuilder(), new SfvPanelBuilder(), new AnalyzePanelBuilder(), new ListPanelBuilder() };
return new PanelBuilder[] { new RenamePanelBuilder(), new EpisodeListPanelBuilder(), new SubtitlePanelBuilder(), new SfvPanelBuilder(), new FilterPanelBuilder(), new ListPanelBuilder() };
}
public static PanelBuilder[] episodeHandlerSequence() {

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static net.filebot.Logging.*;
import static net.filebot.MediaTypes.*;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static net.filebot.Logging.*;
import static net.filebot.UserFiles.*;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static java.util.Collections.*;
import static java.util.stream.Collectors.*;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import java.awt.Component;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import java.awt.datatransfer.Transferable;
import java.io.File;
@ -10,8 +10,8 @@ import javax.swing.TransferHandler;
import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath;
import net.filebot.ui.analyze.FileTree.FileNode;
import net.filebot.ui.analyze.FileTree.FolderNode;
import net.filebot.ui.filter.FileTree.FileNode;
import net.filebot.ui.filter.FileTree.FolderNode;
import net.filebot.ui.transfer.FileTransferable;
import net.filebot.ui.transfer.TransferableExportHandler;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static net.filebot.ui.transfer.BackgroundFileTransferablePolicy.*;
import static net.filebot.util.ui.SwingUI.*;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static net.filebot.Logging.*;
import static net.filebot.Settings.*;
@ -15,8 +15,8 @@ import java.util.logging.Level;
import javax.swing.tree.TreeNode;
import net.filebot.mac.MacAppUtilities;
import net.filebot.ui.analyze.FileTree.FileNode;
import net.filebot.ui.analyze.FileTree.FolderNode;
import net.filebot.ui.filter.FileTree.FileNode;
import net.filebot.ui.filter.FileTree.FolderNode;
import net.filebot.ui.transfer.BackgroundFileTransferablePolicy;
import net.filebot.util.ExceptionUtilities;
import net.filebot.util.FastFile;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import java.awt.datatransfer.Transferable;
@ -11,12 +11,12 @@ import net.filebot.ui.transfer.TransferablePolicy;
import net.filebot.ui.transfer.TransferablePolicy.TransferAction;
import net.miginfocom.swing.MigLayout;
public class AnalyzePanel extends JComponent {
public class FilterPanel extends JComponent {
private final FileTreePanel fileTreePanel = new FileTreePanel();
private final JTabbedPane toolsPanel = new JTabbedPane();
public AnalyzePanel() {
public FilterPanel() {
setLayout(new MigLayout("insets dialog, gapx 50, fill, nogrid"));
add(fileTreePanel, "grow 1, w 300:pref:500");
add(toolsPanel, "grow 2");

View File

@ -1,5 +1,5 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import javax.swing.Icon;
import javax.swing.JComponent;
@ -7,7 +7,7 @@ import javax.swing.JComponent;
import net.filebot.ResourceManager;
import net.filebot.ui.PanelBuilder;
public class AnalyzePanelBuilder implements PanelBuilder {
public class FilterPanelBuilder implements PanelBuilder {
@Override
public String getName() {
@ -21,12 +21,12 @@ public class AnalyzePanelBuilder implements PanelBuilder {
@Override
public boolean equals(Object obj) {
return obj instanceof AnalyzePanelBuilder;
return obj instanceof FilterPanelBuilder;
}
@Override
public JComponent create() {
AnalyzePanel panel = new AnalyzePanel();
FilterPanel panel = new FilterPanel();
panel.addTool(new ExtractTool());
panel.addTool(new TypeTool());
panel.addTool(new SplitTool());

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static java.util.Collections.*;
import static net.filebot.Logging.*;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import java.awt.Color;
import java.io.File;
@ -15,7 +15,7 @@ import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreeNode;
import net.filebot.ui.analyze.FileTree.FolderNode;
import net.filebot.ui.filter.FileTree.FolderNode;
import net.filebot.ui.transfer.DefaultTransferHandler;
import net.filebot.util.FileUtilities;
import net.filebot.util.ui.GradientStyle;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static net.filebot.Logging.*;
@ -15,8 +15,8 @@ import javax.swing.tree.TreeNode;
import org.apache.commons.io.FileUtils;
import net.filebot.ui.analyze.FileTree.FileNode;
import net.filebot.ui.analyze.FileTree.FolderNode;
import net.filebot.ui.filter.FileTree.FileNode;
import net.filebot.ui.filter.FileTree.FolderNode;
import net.filebot.util.ExceptionUtilities;
import net.filebot.util.FileUtilities;
import net.filebot.util.ui.LoadingOverlayPane;

View File

@ -1,4 +1,4 @@
package net.filebot.ui.analyze;
package net.filebot.ui.filter;
import static java.util.Arrays.*;
import static java.util.Collections.*;
@ -23,7 +23,7 @@ import javax.swing.tree.TreeNode;
import net.filebot.MediaTypes;
import net.filebot.media.MediaDetection;
import net.filebot.ui.analyze.FileTree.FolderNode;
import net.filebot.ui.filter.FileTree.FolderNode;
import net.filebot.ui.transfer.DefaultTransferHandler;
import net.filebot.util.ui.LoadingOverlayPane;
import net.miginfocom.swing.MigLayout;