OSDN Git Service

禁則文字
authoryukihane <yukihane.feather@gmail.com>
Thu, 25 Aug 2011 13:13:30 +0000 (22:13 +0900)
committeryukihane <yukihane.feather@gmail.com>
Thu, 25 Aug 2011 13:13:30 +0000 (22:13 +0900)
frontend/src/yukihane/inqubus/gui/MainFrame.java

index ee98a66..e27d774 100644 (file)
@@ -840,22 +840,22 @@ public class MainFrame extends JFrame {
     }
 
     private class InqubusGeneralProfile implements GeneralProfile {
-//        private final String replaceFrom;
+        private final String replaceFrom;
+        private final String replaceTo;
         private InqubusGeneralProfile() {
             final Config p = Config.INSTANCE;
-            // TODO 置換文字設定コンフィグが無い
-//            this.replaceFrom = p.get
+            this.replaceFrom = p.getReplaceFrom();
+            this.replaceTo = p.getReplaceTo();
         }
 
         @Override
         public String getReplaceFrom() {
-//            return this.replaceFrom;
-            throw new UnsupportedOperationException("Not supported yet.");
+            return this.replaceFrom;
         }
 
         @Override
         public String getReplaceTo() {
-            throw new UnsupportedOperationException("Not supported yet.");
+            return this.replaceTo;
         }
 
     }