OSDN Git Service

プロファイルのメソッド名変更
authoryukihane <yukihane.feather@gmail.com>
Mon, 22 Aug 2011 23:05:25 +0000 (08:05 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 22 Aug 2011 23:05:25 +0000 (08:05 +0900)
frontend/src/saccubus/worker/Convert.java
frontend/src/saccubus/worker/TestFrame.java
frontend/src/saccubus/worker/classic/profile/OutputFileSetting.java
frontend/src/saccubus/worker/profile/OutputProfile.java

index 2bc3e2e..2cd23b1 100644 (file)
@@ -70,10 +70,10 @@ public class Convert extends SwingWorker<ConvertResult, ConvertProgress> {
     @Override
     protected ConvertResult doInBackground() throws Exception {
         try {
-            transformedComment = File.createTempFile("vhk", ".tmp", profile.getTempDir());
 
-            final HideCondition hide = profile.getNgSetting();
-            if (commentFile != null) {
+            if (profile.getOutputProfile().isCommentOverlay()) {
+                transformedComment = File.createTempFile("vhk", ".tmp", profile.getTempDir());
+                final HideCondition hide = profile.getNgSetting();
                 publish(new ConvertProgress("コメントの中間ファイルへの変換中"));
                 final boolean conv = ConvertToVideoHook.convert(commentFile, transformedComment, hide.getId(), hide.
                         getWord());
index e2f2848..eb1322e 100644 (file)
@@ -447,7 +447,7 @@ public class TestFrame extends JFrame {
                 }
 
                 @Override
-                public boolean isAddComment() {
+                public boolean isCommentOverlay() {
                     return false;
                 }
 
index 6732b70..48d6756 100644 (file)
@@ -31,7 +31,7 @@ public class OutputFileSetting implements saccubus.worker.profile.OutputProfile
     }
 
     @Override
-    public boolean isAddComment() {
+    public boolean isCommentOverlay() {
         return addComment;
     }
 
index a39b8d7..4dc0da0 100644 (file)
@@ -16,7 +16,7 @@ public interface OutputProfile {
      * コメントを付与して変換を行うのであればtrue.
      * {@link #isConvert()}がfalseの場合未定義.
      */
-    boolean isAddComment();
+    boolean isCommentOverlay();
 
     /**
      * @return {@link #isConvert()}がtrueの場合に