Skip to content

Eclipse

kumattau edited this page Mar 28, 2016 · 3 revisions

Eclipse

PropertySheet

プロパティを表示するGUI

IPropertySource

プロパティシートに紐付けるデータ

SWT redraw / update / layout

  • redraw …​ 次回再描画するようにマークする

  • update …​ 再描画する (完了するまでブロック)

  • layout …​ 子要素のサイズや位置を調整する (結果、再描画されるかもしれない)

再描画時にPaintListener#paintControl(PaintEvent e)が呼び出される。

Note
Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint.

ISelectionProvider

選択状態を公開するインタフェース。リスナをきちんと実装しないと通知されないので注意。

  • setSelection

  • getSelection

  • addSelectionChangeListener

  • removeSelecitonChangeListener

IAdaptable

getAdaptor で問い合わせに必要なオブジェクトを返却する。

Clone this wiki locally