OSDN Git Service
(root)
/
coroid
/
inqubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
58efff2
)
shouldRunメソッドをインタフェースから削除
author
yukihane
<yukihane.feather@gmail.com>
Sat, 25 Jun 2011 05:58:28 +0000
(14:58 +0900)
committer
yukihane
<yukihane.feather@gmail.com>
Sat, 25 Jun 2011 05:58:28 +0000
(14:58 +0900)
frontend/src/saccubus/converter/Converter.java
patch
|
blob
|
history
frontend/src/saccubus/converter/classic/profile/Profile.java
patch
|
blob
|
history
frontend/src/saccubus/converter/profile/Profile.java
patch
|
blob
|
history
diff --git
a/frontend/src/saccubus/converter/Converter.java
b/frontend/src/saccubus/converter/Converter.java
index
2e25078
..
d80a9f9
100644
(file)
--- a/
frontend/src/saccubus/converter/Converter.java
+++ b/
frontend/src/saccubus/converter/Converter.java
@@
-75,7
+75,7
@@
public class Converter extends AbstractCommand implements Runnable, Callable<Boo
}
private boolean runConvert() throws IOException, InterruptedException {
}
private boolean runConvert() throws IOException, InterruptedException {
- if (!
profile.shouldRun(
)) {
+ if (!
shouldRun(profile
)) {
sendText("何もすることがありません");
return true;
}
sendText("何もすることがありません");
return true;
}
@@
-221,4
+221,9
@@
public class Converter extends AbstractCommand implements Runnable, Callable<Boo
public ConvertStopFlag getStopFlag() {
return super.getStopFlag();
}
public ConvertStopFlag getStopFlag() {
return super.getStopFlag();
}
+
+ /** @return 何か実行すべき処理があればtrue. */
+ private static boolean shouldRun(Profile profile) {
+ return profile.getOutputFileSetting().isConvert() || profile.needsDownload();
+ }
}
}
diff --git
a/frontend/src/saccubus/converter/classic/profile/Profile.java
b/frontend/src/saccubus/converter/classic/profile/Profile.java
index
4f76fac
..
398b342
100644
(file)
--- a/
frontend/src/saccubus/converter/classic/profile/Profile.java
+++ b/
frontend/src/saccubus/converter/classic/profile/Profile.java
@@
-42,12
+42,6
@@
public class Profile implements saccubus.converter.profile.Profile {
return loginInfo;
}
return loginInfo;
}
- /** @return 何か実行すべき処理があればtrue. */
- @Override
- public boolean shouldRun() {
- return getOutputFileSetting().isConvert() || needsDownload();
- }
-
/** @return 何かダウンロードするものがあればtrue. */
@Override
public boolean needsDownload() {
/** @return 何かダウンロードするものがあればtrue. */
@Override
public boolean needsDownload() {
diff --git
a/frontend/src/saccubus/converter/profile/Profile.java
b/frontend/src/saccubus/converter/profile/Profile.java
index
a2507cb
..
dc09bfb
100644
(file)
--- a/
frontend/src/saccubus/converter/profile/Profile.java
+++ b/
frontend/src/saccubus/converter/profile/Profile.java
@@
-15,9
+15,6
@@
public interface Profile {
LoginInfo getLoginInfo();
LoginInfo getLoginInfo();
- /** @return 何か実行すべき処理があればtrue. */
- boolean shouldRun();
-
/** @return 何かダウンロードするものがあればtrue. */
boolean needsDownload();
/** @return 何かダウンロードするものがあればtrue. */
boolean needsDownload();