[問題] JFace的IContributionManager.update()??
請問JFace中的 IContributionManager介面中的update()是幹嘛的呢?
update
void update(boolean force)Updates this manager's underlying widget(s) with
any changes which have been made to it or its items. Normally changes to a
contribution manager merely mark it as dirty, without updating the underlying
widgets. This brings the underlying widgets up to date with any changes.
Parameters:
force - true means update even if not dirty, and false for normal incremental
updating
--------------------------------------------------------------------------------
document上寫的我不太懂
何謂mark it as dirty??
什麼情況下會他的widgets會被change呢?
感恩
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.119.41.122
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):