Eclipse
★OutOfMemoryを防ぐ設定方法
全体
ウィンドウ⇒設定⇒Java⇒インストール済みのJRE⇒編集⇒デフォルトのVM引数
各プロジェクト
実行⇒実行の構成⇒引数⇒VM引数
設定内容
-Xms800m -Xmx800m -XX:MaxNewSize=256m -XX:MaxPermSize=256m
★AmaterasUMLの導入
http://amateras.sourceforge.jp/cgi-bin/fswiki/wiki.cgi?page=AmaterasUML
Step 1:Download zip file
Step 2:Move *.jar to $ECLIPSE_HOME/dropins
Step 3:Restart Eclipse
★Plugins Eclipse Marketplaceで検索
・JBoss Tools plugin
・Subversion(SVN) plugin
ソースコード品質関連 (青字URLはPluginインストール用)
・コーディングルール:CheckStyle
http://sourceforge.net/projects/eclipse-cs/files/latest/download
http://eclipse-cs.sourceforge.net/update/
・コード分析:Findbugs
http://sourceforge.net/projects/findbugs/
http://findbugs.cs.umd.edu/eclipse
・重複コード分析:PMD
http://sourceforge.net/projects/pmd/files/pmd-eclipse
http://pmd.sourceforge.net/eclipse/
・カバレッジ:EclEmma
http://update.eclemma.org
・依存関係分析:JDepend
http://andrei.gmxhome.de/eclipse/
・複雑度分析:Eclipse Metric
http://metrics.sourceforge.net/update
★Resolve eclipse Luna dark unable buttons(Ubuntuの場合)
#!/bin/bash
export SWT_GTK3=0
export UBUNTU_MENUPROXY=0
./eclipse
★プロパティエディタ
Eclipse更新サイト http://propedit.sourceforge.jp/eclipse/updates/
★Make eclipse faster
1) Clean up history and indexes
indexes {workspace path}\.metadata\.plugins\org.eclipse.jdt.core
history {workspace path}\.metadata\.plugins\org.eclipse.core.resources\.history
2) Remove structured text validation
Windows > Preferences and search “validation” and disable un-necessary
3) Configure appropriate start-up arguments in eclipse.ini
--launcher.XXMaxPermSize
256m
-Xms256m
-Xmx1024m
★Console内容をファイルに出力
★黒テーマの設定
Step 1.エディタのテーマ
>MarketplaceにEclipse Color Themeを検索し、インストールする
>General→Appearance→Color themeでテーマを選択
Step 2.背景のテーマ
>https://github.com/Prototik/Eclipse-Juno-Dark/downloadsにアクセス
>Eclipse-Juno-Dark.zipをダウンロードし、中のjarファイルをEclipseのpluginsフォルダに移動
>General→Appearanceでテーマ一覧からEclipse Juno Darkを選択
★フォーマットを無効にする
Step 1 Window → Preferences
Step 2 Java → Code Style → Formatter
Step 3 Edit → Off/On Tags → Enable Off/On tags
//@formatter:off
...
//@formatter:on
JAX-WSの作成
1.新規 ⇒ web(動的Webプロジェクト)
2.サービス実装
package com.test.webservice;
public class SimpleWebService {
public int add(int a, int b) {
return a + b;
}
}
3.javaファイルを右クリック ⇒ Webサービス ⇒ Webサービスの作成 ⇒ 完了を押下
※WebContentのwsdl下にSimpleWebService.wsdlが自動生成された
4.サービスを確認