Using Eclipse Spy in GUI products based on RCP
发布者:
Wenzhen
Like Code Tips or wxSpy++, how to find out the code related to a window of the current cursor in a GUI product based on Eclipse RCP technology?
In Eclipse IDE, we can press Alt+Shift+F1 to open Eclipse-Plugin Spy Window to show the window class of the current cursor. See the following screenshot:
My idea is that we can re-use Eclipse-Plugin Spy in our own project/product when we are developing, or even as an optional dynamic plugin into our final release package, so that we can see more class information in GUI directly when developing or released.
We can see Eclipse-Plugin Spy is defined in plugin org.eclipse.pde.runtime. Therefore, the solution is just to include this plugin and its dependency (org.eclipse.core.runtime, org.eclipse.ui, and org.eclipse.ui.forms) into your application.
When developing, we can open Debug/Run Configuration and add the plugin org.eclipse.pde.runtime and its required plugins.
After product released, if we want to use it, we can also add the plugin and its dependencies into the plugins folder.
Here is the screenshot in D4C GUI after using the spy.
We can see the dialog class is AnalysisChartSettingDialog, when clicking the hyper-link, the class file will be opened in our D4C GUI application (not Eclipse IDE), so that we can read the file directly even without Eclipse IDE.
睿初科技软件开发技术博客,转载请注明出处
blog comments powered by Disqus
发布日期
标签
最近发表
- volatile与多线程
- TDD practice in UI: Develop and test GUI independently by mockito
- jemalloc源码解析-核心架构
- jemalloc源码解析-内存管理
- boost::bind源码分析
- 小试QtTest
- 一个gtk下的目录权限问题
- Django学习 - Model
- Code snippets from C & C++ Code Capsule
- Using Eclipse Spy in GUI products based on RCP
文章分类
- cpp 3
- wxwidgets 4
- swt/jface 1
- chrome 3
- memory_management 5
- eclipse 1
- 工具 4
- 项目管理 1
- cpplint 1
- 算法 1
- 编程语言 1
- python 5
- compile 1
- c++ 7
- 工具 c++ 1
- 源码分析 c++ 3
- c++ boost 2
- data structure 1
- wxwidgets c++ 1
- template 1
- boost 1
- wxsocket 1
- wxwidget 2
- java 2
- 源码分析 1
- 网路工具 1
- eclipse插件 1
- django 1
- gtk 1
- 测试 1
- 测试 tdd 1
- multithreading 1