How to set AutoscrollToSource in ProjectViewImpl?
Hi,
I'm developing idea plugin and want set AutoscrollFromSource & AutoscrollToSource in the project view.
I found the following class com.intellij.ide.projectView.impl.ProjectViewImpl that have the following methods:
- public void setAutoscrollFromSource(boolean autoscrollMode, String paneId)
- private void setAutoscrollToSource(boolean autoscrollMode, String paneId)
as you see setAutoscrollFromSource is public but setAutoscrollToSource is private so i can't call it, any one know how to set AutoscrollToSource ?? Thanks
请先登录再写评论。
Hi,
as far as I see they both public http://i.imgur.com/1We1R9S.png
Which Build is that?
12.1 has this code http://grepcode.com/file/repository.grepcode.com/java/ext/com.jetbrains/intellij-idea/12.1.2/com/intellij/ide/projectView/impl/ProjectViewImpl.java#ProjectViewImpl.isAutoscrollFromSource%28java.lang.String%29
this is 'isAutoscrollToSource' but 'setAutoscrollToSource' is private just above it in the same link
Sorry, it became public in October 2013 http://i.imgur.com/cO4s98H.png
You can use Java reflection for 12.x plugins