作者wfgh (lyle)
看板java
标题[问题] JFace的IContributionManager.update()??
时间Tue Jan 4 09:09:12 2011
请问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