I have a problem with Talend (built with Eclipse RCP): the SVN is checked every second for new files. After having a look at Talend files, I had isolated a view (class RepoRefreshAction) which seems to update SVN.
我在使用Talend时遇到了问题(使用Eclipse RCP构建):每秒都会检查SVN是否有新文件。在看了Talend文件后,我已经隔离了一个看起来更新SVN的视图(类RepoRefreshAction)。
I wonder if it is possible that an Eclipse RCP view has a default refresh interval of one second, and if this delay could be changed ?
我想知道Eclipse RCP视图是否可能有一秒的默认刷新间隔,以及是否可以更改此延迟?
1 个解决方案
#1
You can try changing refresh types in Window > Preferences > General > Workspace
:
您可以尝试在窗口>首选项>常规>工作区中更改刷新类型:
you have :
你有 :
- Refresh using native hooks or polling
- Refresh on access
使用本机挂钩或轮询刷新
访问时刷新
But it's hard to answer your question if we don't know what exactly you want to achieve (is the refresh too fast, and consume too much system resource ?) Plus, I don't know how the view is made (I believe it's RepoViewCommonViewer
or RepoViewCommonNavigator
), and which Interface is used (I'm using IResourceChangeListener
for listening to workspace changes) explanation
但是如果我们不知道你想要实现什么(刷新速度太快,消耗太多的系统资源,那么很难回答你的问题吗?)另外,我不知道视图是如何制作的(我相信它是RepoViewCommonViewer或RepoViewCommonNavigator),以及使用哪个Interface(我使用IResourceChangeListener来监听工作区更改)说明
#1
You can try changing refresh types in Window > Preferences > General > Workspace
:
您可以尝试在窗口>首选项>常规>工作区中更改刷新类型:
you have :
你有 :
- Refresh using native hooks or polling
- Refresh on access
使用本机挂钩或轮询刷新
访问时刷新
But it's hard to answer your question if we don't know what exactly you want to achieve (is the refresh too fast, and consume too much system resource ?) Plus, I don't know how the view is made (I believe it's RepoViewCommonViewer
or RepoViewCommonNavigator
), and which Interface is used (I'm using IResourceChangeListener
for listening to workspace changes) explanation
但是如果我们不知道你想要实现什么(刷新速度太快,消耗太多的系统资源,那么很难回答你的问题吗?)另外,我不知道视图是如何制作的(我相信它是RepoViewCommonViewer或RepoViewCommonNavigator),以及使用哪个Interface(我使用IResourceChangeListener来监听工作区更改)说明