タグ

markerに関するtc0527のブックマーク (2)

  • Problemsビューを使う - Road of Professional SE

    Introduction Eclipse RCPやPluginで、Eclipse標準のProblemsビューを利用する方法について解説します。 Table of Contents plugin.xmlの設定 Markerの登録 Editorに関連付いているMarkerを全て削除 Goto時の処理の実装 参考サイト plugin.xmlの設定 まずは、plugin.xmlの設定です。 以下のように、「org.eclipse.core.resources.markers」拡張ポイントの設定を追加します。 <extension id="TestMarker" name="Test Problem" point="org.eclipse.core.resources.markers"> <super type="org.eclipse.core.resources.problemmarker"/

  • Markerの作り方

    Markerについて Markerとは、Javaファイル内で警告があるときなどにエディタの左側に出るマークの事です。 ここでは既存のマーカーを流用する形のやり方を紹介します。非常に簡単です。 まずは plugin.xml に記述を追加します。 <extension id="SampleMarker" point="org.eclipse.core.resources.markers"> <super type="org.eclipse.core.resources.problemmarker"> </super> <persistent value="true"> </persistent> </extension> こんな感じです。 problemmarker の記述をしておくと、マーカーの内容が Problems ビューに表示されます。 それと、org.eclipse.ui.edito

  • 1