差分発生行の前後
無視リスト:
更新日時:
2010/05/11 20:15:55 (2 年 前)
更新者:
h
ログメッセージ:

refs #2 #8 #9 #7 #6
現状のソースをコミット。一部完了。一部未完了。
関連づいてない完了チケットのチェンジセットもまとめて。
パッケージ階層も大幅に変更。

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • trunk/src/org/rayflood/mikuvat/gui/VSQFileFilter.java

    r2 r4  
    88        public boolean accept(File f){ 
    99                if(f != null){ 
    10                         String name = f.getName(); 
    11                         int per = name.lastIndexOf("."); 
    12                         if(per > 0){ 
    13                                 String suffix = name.substring(per); 
    14                                 if(".vsq".equalsIgnoreCase(suffix)){ 
    15                                         return true; 
    16                                 } 
    17                                 if(".mid".equalsIgnoreCase(suffix)){ 
    18                                         return true; 
     10                        if(f.isDirectory()){ 
     11                                return true; 
     12                        } 
     13                        else if(f.isFile()){ 
     14                                String name = f.getName(); 
     15                                int per = name.lastIndexOf("."); 
     16                                if(per > 0){ 
     17                                        String suffix = name.substring(per); 
     18                                        if(".vsq".equalsIgnoreCase(suffix)){ 
     19                                                return true; 
     20                                        } 
     21                                        if(".mid".equalsIgnoreCase(suffix)){ 
     22                                                return true; 
     23                                        } 
    1924                                } 
    2025                        }