如何在不关闭eclipse插件中的属性的情况下查看一个属性页上由另一个属性页更新的更新数据?
我面临一个奇怪的问题!
我有一组具有相同存储文件的属性页。
场景如下.. 第一次打开属性时,右键单击项目,将查看属性页列表。我单击第一个属性页并进行更改,然后将更改应用到文件。 现在我选择第二页,它显示从第一页应用的更改。
但现在,在不关闭属性的情况下,我返回第一页并进行更改,然后应用更改。 然后我再次进入第二页,它不会显示更新的数据。在我关闭属性并通过右键单击项目重新打开之前,不会查看已应用的更改。
我的问题是 “有什么方法可以在不关闭属性的情况下反映页面上的更改吗?”
我感谢您花费宝贵的时间来阅读和回复..
请帮助
I am facing a strange issue!!
I have a set of property page with same storage file.
The scenario is as follow..
For the first time opening the properties by right clicking on the project, list of property pages are viewed. I click on the first property page and make changes then apply the changes to the file.
Now I select the second page, it shows the changes that were applied from the first page.
But now without closing the properties i go back to first page and make changes then apply the changes.
Then again I go to second page it wont show the updated data. The changes that were applied are not viewed until I close the properties and reopen then by right clicking on the project.
My question is
"Is there any way to reflect changes on the pages without closing the properties??"
I appreciate your valuable time you will give for reading and replying..
Plz help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题似乎只是缺乏可以通知问题的可靠模型。
如果属性与 IProject 相关。
您应该使用 ScopedPreferenceStore 作为模型。
IPreferenceStore可以操作原始数据、默认值。并且它支持属性更改事件。您可以创建 IPreferenceStore 的多个实例,如果它们具有相同的范围和限定符,则自动同步。因此单个页面可以在不耦合的情况下检索输入模型。
Your problem seems to just absent of reliable model which can notify problem.
If the properties are related IProject.
You should use ScopedPreferenceStore as model.
IPreferenceStore can manipulate primitive data, default value. And it support property change event. You can create multiple instances of IPreferenceStore, If they have same scope and qualifier then automatically synchronized. So individual page can retrive input model without coupling.