java - Eclipse plugin doesn't work in CDT -


i have implemented eclipse plug-in runs in test workbench, eclipse ide php developers , eclipse ide javadevelopers doesn't work in eclipse cdt. there no error messages, dont't know, why.

my plug-in adds popup menu entry , executes action. notices plug-in stops after line:

 ifile file = (ifile) ((istructuredselection) wbw.getselectionservice().getselection()).getfirstelement(); 

all ides run on kubuntu 14.04.

the selection returned selection service user interface object rather ifile. need use iadaptermanager adapt object file.

object selected = ((istructuredselection) wbw.getselectionservice().getselection()).getfirstelement();  iadaptermanager manager = platform.getadaptermanager();  ifile file = (ifile)manager.getadapter(selected, ifile.class); 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -