java - Eclipse plugin doesn't work in CDT -
i have implemented eclipse plug-in runs in test workbench, eclipse ide php
developers , eclipse ide java
developers 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
Post a Comment