关于"unable to open editor, unknown ID"的错误

为了解决编辑器注册问题,确保在插件扩展编辑器中指定了'icon'属性。即使该图标不存在,'icon'属性字段也不应为空。缺少此定义将导致编辑器无法注册,即使提供了正确的编辑器ID也无法检索到该编辑器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

回答
Have you specified the 'icon' attribute in the plugin extension editor for your editor? It may sound strange, but the icon attribute is required if you supply your own class in the 'class' attribute to implement the IEditorPart interface.

Well, the icon itself does not need to exist, but the 'icon' attribute's field must not be empty. Without the icon defined, your editor never gets into the editor registry when the plugin extensions are read, so an attempt later to retrieve this editor by its id fails, even though the editor ID is correct.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值