[問題] JFace的IContributionManager.update()??

看板java作者 (lyle)時間13年前 (2011/01/04 09:09), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
請問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
文章代碼(AID): #1D8dCwrq (java)
文章代碼(AID): #1D8dCwrq (java)