サンプルをコピペするのではなく、テンプレートを共有したほうがいいかも。テンプレートであれば、いちいち修正する手間はない。例として以下は JUnit3 で例外発生をテストするテンプレート。これを XML ファイルで保存して Eclipse のテンプレートにインポートして使う。 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <templates> <template autoinsert="false" context="java-statements" deleted="false" description="junit exception test" enabled="true" name="try">try { ${cursor} fail(); } catch (${Exception} ex

