* moved ResourceManager to net.sourceforge.filebot package

* added "dist" to ignored folders
This commit is contained in:
Reinhard Pointner 2008-10-10 18:59:01 +00:00
parent 58d0244668
commit e61472c2f4
35 changed files with 43 additions and 36 deletions

View File

@ -1,5 +1,5 @@
package net.sourceforge.filebot.resources;
package net.sourceforge.filebot;
import java.awt.Image;
@ -46,8 +46,15 @@ public class ResourceManager {
}
/**
* Get the URL of an image resource in this jar. Image must be located in
* <code>/resources</code> and the file type is assumed to be png.
*
* @param name simple name of the resource (without extension)
* @return URL of the resource or null if resource does not exist
*/
private static URL getImageResource(String name) {
return ResourceManager.class.getResource(name + ".png");
return ResourceManager.class.getResource("resources/" + name + ".png");
}

View File

@ -28,7 +28,7 @@ import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.SwingWorker;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.web.SearchResult;
import net.sourceforge.tuned.ExceptionUtil;
import net.sourceforge.tuned.ui.LabelProvider;

View File

@ -14,7 +14,7 @@ import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.SwingUtilities;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.ui.LoadingOverlayPane;
import net.sourceforge.tuned.ui.ProgressIndicator;

View File

@ -11,7 +11,7 @@ import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
public class FileBotTabComponent extends JPanel {

View File

@ -25,7 +25,7 @@ import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
public class FileBotTree extends JTree {

View File

@ -8,7 +8,7 @@ import java.io.File;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.ui.FancyTreeCellRenderer;
import net.sourceforge.tuned.ui.GradientStyle;

View File

@ -18,8 +18,8 @@ import javax.swing.border.EmptyBorder;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.Settings;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ui.panel.analyze.AnalyzePanel;
import net.sourceforge.filebot.ui.panel.list.ListPanel;
import net.sourceforge.filebot.ui.panel.rename.RenamePanel;

View File

@ -14,7 +14,7 @@ import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.ui.GradientStyle;
import net.sourceforge.tuned.ui.notification.SeparatorBorder;
import net.sourceforge.tuned.ui.notification.SeparatorBorder.Position;

View File

@ -5,8 +5,8 @@ package net.sourceforge.filebot.ui;
import javax.swing.Icon;
import javax.swing.SwingConstants;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.Settings;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.tuned.ui.notification.MessageNotification;
import net.sourceforge.tuned.ui.notification.NotificationManager;
import net.sourceforge.tuned.ui.notification.QueueNotificationLayout;

View File

@ -24,7 +24,7 @@ import javax.swing.KeyStroke;
import javax.swing.SwingUtilities;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.ui.ArrayListModel;
import net.sourceforge.tuned.ui.DefaultFancyListCellRenderer;
import net.sourceforge.tuned.ui.TunedUtil;

View File

@ -17,7 +17,7 @@ import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.SwingConstants;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotPanel;
import net.sourceforge.filebot.ui.FileTransferableMessageHandler;
import net.sourceforge.filebot.ui.panel.analyze.tools.SplitPanel;

View File

@ -14,7 +14,7 @@ import javax.swing.JScrollPane;
import javax.swing.KeyStroke;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.transfer.LoadAction;
import net.sourceforge.tuned.ui.LoadingOverlayPane;
import net.sourceforge.tuned.ui.TunedUtil;

View File

@ -26,7 +26,7 @@ import javax.swing.event.ChangeListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotTree;
import net.sourceforge.filebot.ui.transfer.DefaultTransferHandler;
import net.sourceforge.tuned.FileUtil;

View File

@ -19,7 +19,7 @@ import javax.swing.SwingWorker;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotTree;
import net.sourceforge.filebot.ui.transfer.DefaultTransferHandler;
import net.sourceforge.tuned.FileUtil;

View File

@ -21,7 +21,7 @@ import javax.swing.KeyStroke;
import javax.swing.SpinnerNumberModel;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotList;
import net.sourceforge.filebot.ui.FileBotListExportHandler;
import net.sourceforge.filebot.ui.FileBotPanel;

View File

@ -17,7 +17,7 @@ import javax.swing.JComponent;
import javax.swing.SwingUtilities;
import javax.swing.SwingWorker;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.panel.rename.entry.FileEntry;
import net.sourceforge.filebot.ui.panel.rename.entry.ListEntry;
import net.sourceforge.filebot.ui.panel.rename.matcher.Match;

View File

@ -9,7 +9,7 @@ import java.util.List;
import javax.swing.AbstractAction;
import javax.swing.Action;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.MessageManager;
import net.sourceforge.filebot.ui.panel.rename.entry.FileEntry;
import net.sourceforge.filebot.ui.panel.rename.entry.ListEntry;

View File

@ -16,7 +16,7 @@ import javax.swing.JViewport;
import javax.swing.ListSelectionModel;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotList;
import net.sourceforge.filebot.ui.panel.rename.entry.ListEntry;
import net.sourceforge.filebot.ui.transfer.LoadAction;

View File

@ -25,7 +25,7 @@ import javax.swing.SwingUtilities;
import javax.swing.event.ListDataEvent;
import javax.swing.event.ListDataListener;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotPanel;
import net.sourceforge.filebot.ui.panel.rename.entry.FileEntry;
import net.sourceforge.filebot.ui.panel.rename.entry.ListEntry;

View File

@ -27,7 +27,7 @@ import javax.swing.KeyStroke;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.FileBotUtil;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.panel.rename.entry.ListEntry;
import net.sourceforge.tuned.ui.ArrayListModel;
import net.sourceforge.tuned.ui.TunedUtil;

View File

@ -5,7 +5,7 @@ package net.sourceforge.filebot.ui.panel.search;
import javax.swing.Icon;
import javax.swing.JComponent;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotList;
import net.sourceforge.filebot.ui.FileBotListExportHandler;
import net.sourceforge.filebot.ui.FileBotTabComponent;

View File

@ -32,7 +32,7 @@ import javax.swing.SwingUtilities;
import javax.swing.SwingWorker;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotList;
import net.sourceforge.filebot.ui.FileBotPanel;
import net.sourceforge.filebot.ui.HistoryPanel;

View File

@ -18,7 +18,7 @@ import javax.swing.KeyStroke;
import javax.swing.SwingUtilities;
import javax.swing.border.EmptyBorder;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.FileBotPanel;
import net.sourceforge.filebot.ui.FileTransferableMessageHandler;
import net.sourceforge.filebot.ui.SelectDialog;

View File

@ -9,7 +9,7 @@ import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.table.DefaultTableCellRenderer;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
class StateIconTableCellRenderer extends DefaultTableCellRenderer {

View File

@ -6,7 +6,7 @@ import java.util.Locale;
import javax.swing.Icon;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
class Language implements Comparable<Language> {

View File

@ -8,7 +8,7 @@ import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.SwingWorker.StateValue;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.web.SubtitleDescriptor;
import net.sourceforge.tuned.DownloadTask;
import net.sourceforge.tuned.ui.SwingWorkerPropertyChangeAdapter;

View File

@ -8,8 +8,8 @@ import java.util.Collection;
import java.util.List;
import java.util.Locale;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.Settings;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ui.AbstractSearchPanel;
import net.sourceforge.filebot.ui.SelectDialog;
import net.sourceforge.filebot.web.OpenSubtitlesSubtitleClient;

View File

@ -7,7 +7,7 @@ import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JFileChooser;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.ui.transfer.TransferablePolicy.TransferAction;

View File

@ -13,7 +13,7 @@ import javax.swing.JComponent;
import javax.swing.JFileChooser;
import net.sourceforge.filebot.FileBotUtil;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
public class SaveAction extends AbstractAction {

View File

@ -18,7 +18,7 @@ import java.util.logging.Logger;
import javax.swing.Icon;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.XPathUtil;
import org.w3c.dom.Document;

View File

@ -13,8 +13,8 @@ import java.util.logging.Logger;
import javax.swing.Icon;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.filebot.Settings;
import net.sourceforge.filebot.resources.ResourceManager;
/**

View File

@ -22,7 +22,7 @@ import java.util.regex.Pattern;
import javax.swing.Icon;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.FileUtil;
import net.sourceforge.tuned.XPathUtil;

View File

@ -22,7 +22,7 @@ import java.util.regex.Pattern;
import javax.swing.Icon;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.XPathUtil;
import org.w3c.dom.Document;

View File

@ -12,7 +12,7 @@ import javax.swing.Icon;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
import net.sourceforge.tuned.XPathUtil;
import org.w3c.dom.Document;

View File

@ -19,7 +19,7 @@ import javax.swing.plaf.ComboBoxUI;
import javax.swing.plaf.basic.BasicComboBoxUI;
import javax.swing.text.JTextComponent;
import net.sourceforge.filebot.resources.ResourceManager;
import net.sourceforge.filebot.ResourceManager;
public class SelectButtonTextField<T> extends JPanel {