From fd0f6943c456f33dba6b70c308f75f194c1c87b6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 2 Nov 2016 21:06:21 +0800 Subject: [PATCH] Refactor XattrFileMatcher --- source/net/filebot/media/XattrMetaInfoProvider.java | 7 ++++++- source/net/filebot/ui/rename/XattrFileMatcher.java | 10 ---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/source/net/filebot/media/XattrMetaInfoProvider.java b/source/net/filebot/media/XattrMetaInfoProvider.java index 6d4626b9..b1c7d494 100644 --- a/source/net/filebot/media/XattrMetaInfoProvider.java +++ b/source/net/filebot/media/XattrMetaInfoProvider.java @@ -13,10 +13,15 @@ import net.filebot.web.Datasource; public class XattrMetaInfoProvider implements Datasource { @Override - public String getName() { + public String getIdentifier() { return "xattr"; } + @Override + public String getName() { + return "Extended Attributes"; + } + @Override public Icon getIcon() { return ResourceManager.getIcon("search.xattr"); diff --git a/source/net/filebot/ui/rename/XattrFileMatcher.java b/source/net/filebot/ui/rename/XattrFileMatcher.java index 732c490b..dbb093bb 100644 --- a/source/net/filebot/ui/rename/XattrFileMatcher.java +++ b/source/net/filebot/ui/rename/XattrFileMatcher.java @@ -13,16 +13,6 @@ import net.filebot.web.SortOrder; public class XattrFileMatcher extends XattrMetaInfoProvider implements AutoCompleteMatcher { - @Override - public String getIdentifier() { - return "xattr"; - } - - @Override - public String getName() { - return "Extended Attributes"; - } - @Override public List> match(Collection files, boolean strict, SortOrder order, Locale locale, boolean autodetection, Component parent) throws Exception { List> matches = new ArrayList>();