//iotamodule的modulefileeditors[]属性得到一个iotaeditor
if intfeditor.queryinterface(iotasourceeditor,editor)=s_ok then
//查看遍历到的文件是否是代码文件并已开始在代码编辑器中编辑。
//如果是便通过一个out参数editor得到一个实现iotasourceeditor的实例
break;
end;
if editor=nil then
begin
messagebox(idehandle,'当前没有代码编辑窗口','hktest',mb_iconinformation);
exit;