eclipse入れたら入れるもの
プラグイン
- S2JUnit4 plugin http://s2junit4plugin.sandbox.seasar.org/
- ctrl+9 とかで テストケース←→本体の切り替え(無ければ作成)ctrl+0でテスト実行
- http://eclipse.seasar.org/updates/3.3/
- テストケース作成が簡単になる。Quick JUnitプラグインはなんかうまく動かない(test作るソースフォルダの指定が出来ないなど)のでseasarの奴を使う
- EclEmma http://www.eclemma.org/
- カバレッジ表示。djUnitだとプロジェクト全体のJunitRunができない?
- http://update.eclemma.org/
- GrepConsole
- コンソールを正規表現で色分け
- http://marian.musgit.com/projects_grepconsole.php
- 最新のzipをdropin にコピー
- WARNINGとかDEBUGの文字を薄くしたりする
- Subversive
- svnサポート。subclipseよりこっちらしい(曖昧)
- Install new software で work with を Galileo を選ぶと
- Collaboration / Subversive が選べるので、それをチェック
- Subversive SVN JDT Ignore Extensions
- Subversive SVN Team Provider
- 言われるままにOKして再起動すると Connector を選べと出るので Native JavaHLを選ぶ(SVN Kitとどっちがいいかはよく分からない)
- プロパティーエディタ
- プロパティーファイルを日本語でも編集できる
- http://propedit.sourceforge.jp/eclipse/updates/
- Web Page Editor
- JD-Eclipse
- java逆コンパイル(ソースが無くてもソースが読める!)
- http://java.decompiler.free.fr/jd-eclipse/update
- こっちのフォーク版の方がいいかも http://mchr3k.github.com/jdeclipse-realign/
最近入れない
- Bugdel
- アスペクトでデバッグコード挿入できる
- http://www.csg.is.titech.ac.jp/projects/bugdel/
- 最新のzipをdropin にコピー
設定
- General/Workspace
- Refresh automaticallyのチェックを入れる
- Text file encoding を UTF-8 に
- Java/Editor/Save Actions
- 「Perform the selected actions on save」と「orgnize imports」をチェック
- 保存時にimportを整理してくれる。コメントアウトした部分でしかつかってないクラス用のimportsとかも削除されるので注意
- 「Perform the selected actions on save」と「orgnize imports」をチェック
- Java/Appearance/Type Filters に追加
- Java/Code Style/Code Template を変更
- Code/Catch block body を
- throw new RuntimeException(${exception_var});
- こっちの方が使うことが多い
- Code/Method を
- throw new java.lang.UnsupportedOperationException(); // ${todo} Auto-generated method stub
- こっちの方がわかりやすい!
- Java/Editor/Template
- test を消す(JUnit3用)
- Test を変更( hamcrest 使う用 )
- @${testType:newType(org.junit.Test)}
- public void ${testname}() throws Exception {
- ${staticImport:importStatic('org.junit.Assert.*','org.hamcrest.CoreMatchers.*','org.hamcrest.Matchers.*')}${cursor}
- }
- hamcrest は http://code.google.com/p/hamcrest/
- Java/Code Style/Orgnize Importを変更
- Number of static imports need for .* を 1 に変更
- User Data Collector
- Enable capture のチェックを外す
- ごめんなしあ
- Enable capture のチェックを外す
- Web/CSS Files , Web/JSP Files, Web/HTML Files
好みの問題↓
- Java/Editor/Syntax Colorring
- keyword 'return' をbold紫
- Local variable declarations と Local variable references 、Parameter variables を赤紫
- General/Appearance
- Show tradisonal style tabs をチェック
- なんか画面が広くなる気がする
- Show tradisonal style tabs をチェック
あったら追記予定