简体   繁体   English

Eclipse的启动配置TabGroup没有显示

[英]Eclipse's launching configuration TabGroup doesn't show up

I'm writing an Eclipse plugin based on gdb-plugin. 我正在写一个基于gdb-plugin的Eclipse插件。 As said here I extended necessary classes (eg GdbLaunchDelegate) and as said, for example, here , added necessary information to Eclipse's extension points: 至于说在这里我需要扩展类(如GdbLaunchDelegate)和说,例如, 在这里 ,添加必要的信息,以Eclipse的扩展点:

  <launchDelegate
delegate="neuromatrixplugin.fifoblocks.backbone.FIFOGdbLaunchDelegate"
        delegateDescription="FIFO Blocks GDB Launch Delegate 1"
        id="neuromatrixplugin.fifoblocks.backbone.FIFOGdbLaunchDelegate"
        modes="debug"
        name="FIFO Blocks GDB Launch Delegate"
        sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
        sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"
        type="org.eclipse.cdt.debug.gdbjtag.launchConfigurationType">
  </launchDelegate>

The problem is: tab group responsible for launch information doesn't appear with my launch delegate set so no information can be passed to delegate and it fails. 问题是:负责启动信息的选项卡组没有与我的启动委托集一起出现,因此无法将任何信息传递给委托,并且失败。

启动窗口

In the debug mode I noticed that TabGroup class gets instatiated (ie constructor is called, but returns no tabs). 在调试模式下,我注意到TabGroup类无效化(即调用了构造函数,但不返回任何制表符)。 Adding specific launching types for my delegate (seen in the menu on the left) changed nothing. 为我的代表添加特定的启动类型(在左侧菜单中可见)没有任何改变。

Does anyone know what may cause that behaviour? 有人知道什么可能导致这种行为吗?

UPD The problem is most likely in extension point because even when I set original GdbLaunchDelegate itself TabGroup doesn't appear. UPD问题很可能是在扩展点上,因为即使我设置了原始GdbLaunchDelegate本身,TabGroup也不会出现。

Apparently, Tabs should also be registered in extension points list separately like there . 显然,Tab也应该像那样分别注册在扩展点列表中。 It's strange because it isn't mentioned in tutorials and isn't always necessary. 这很奇怪,因为在教程中没有提到它,也不总是需要它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM