UnshelveChangesAction.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
private void initializePatches () {
    panel.cmbPatches.setModel(new DefaultComboBoxModel(new String[] { LOADING_PATCHES }));
    validate();
    Utils.postParallel(new Runnable() {
        @Override
        public void run () {
            final List<Patch> patches = PatchStorage.getInstance().getPatches();
            EventQueue.invokeLater(new Runnable() {
                @Override
                public void run () {
                    panel.cmbPatches.setModel(new DefaultComboBoxModel(patches.toArray(new Patch[patches.size()])));
                    if (!patches.isEmpty()) {
                        panel.cmbPatches.setSelectedIndex(0);
                    }
                }
            });
        }
    }, 0);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号