[英]The method getSheetAt(int) from the type XSSFWorkbook refers to the missing type XSSFSheet
[英]The method addContributionItem(IContributionItem, Expression) from the type IContributionRoot refers to the missing type Expression
我正在嘗試使用菜單和子菜單為eclipse編寫插件,但是當我寫:
additions.addContributionItem(item, null);
我有這個錯誤:
The method addContributionItem(IContributionItem, Expression) from the type IContributionRoot refers to the missing type Expression
我查看了互聯網,但找不到任何好的解決方案。 另外,我不完全理解這個錯誤。 如果有人可以向我解釋並幫助我,那就太好了!
您需要在MANIFEST.MF
文件中的Require-Bundle
部分下添加org.eclipse.core.expressions
。
您是否嘗試過使用IMenuManager?
IMenuManager manager = new MenuManager();
manager.add(contributionItem);
Menu menu = manager.createContextMenu(getControl());
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.