eclipse - 如何使用 Eclipse e4 API 实现 PropertyPage?
问题描述
借助 Eclipse 插件,使用 3.x API,可以在扩展org.eclipse.ui.propertyPages
点和org.eclipse.ui.dialogs.PropertyPage
对话。
有没有实现这样一个属性页的 e4 方法?
解决方案
在纯 e4 应用程序中对此几乎没有支持。
您可以使用org.eclipse.jface.preference
构成 3.x 代码基础的包中的类 - PreferenceManager
, PreferenceDialog
(PreferencePage
用于首选项和属性页)。
您必须编写自己的代码才能将页面添加到首选项管理器并显示属性对话框。
推荐阅读
- django - Docker-Compose + Django + PostgreSQL + uwsgi + Nginx 找不到 404
- java - 使用其他方法的对象实例
- android - android - webview 网站无法正常工作
- typescript - TypeScript 参数类型推断失败
- python - Python Selenium 脚本基于远程网页 url 生成屏幕截图 - 显示 Twitter 提要/左侧栏图像的一些随机图像图标部分
- angular - Angular项目中带或不带export关键字的类和接口
- java - Android - 如何将图像存储在已创建的 Firestore 文件夹中
- sql - SQL:如何解决“从字符串转换日期和/或时间时转换失败”?
- python - 获取一对括号内的文本,但不是双方括号
- html - 为什么不是由不正确的 html-tag 引起的错误?