Java Eclipse插件绑定CTRL+SPACE不起作用

Java Eclipse插件绑定CTRL+SPACE不起作用,java,editor,eclipse-plugin,Java,Editor,Eclipse Plugin,我必须将eclipse插件编辑器从Eclipse3.4.0更新为3.5.1Galileo 内容辅助存在问题 在我键入CTRL+SPACE时,不会发生任何事情。但是,当我在Eclipse Preferences->Keys中将CTRL+SPACE的绑定更改为另一个绑定时,CTRL+SPACE对我的编辑器有效 下面是听众: public class CompletionVerifyKeyListener implements VerifyKeyListener{ private ISour

我必须将eclipse插件编辑器从Eclipse3.4.0更新为3.5.1Galileo

内容辅助存在问题

在我键入CTRL+SPACE时,不会发生任何事情。但是,当我在Eclipse Preferences->Keys中将CTRL+SPACE的绑定更改为另一个绑定时,CTRL+SPACE对我的编辑器有效

下面是听众:

public class CompletionVerifyKeyListener implements VerifyKeyListener{

    private ISourceViewer sourceViewer = null ;
    private ITextListener textListener = null ;
    private QuickAssistAssistant qaa = null ;


    public CompletionVerifyKeyListener(ISourceViewer sourceViewer, ITextListener textListener, QuickAssistAssistant qaa) {
        this.sourceViewer = sourceViewer ;
        this.textListener = textListener ;
        this.qaa = qaa ;
    }

    @Override
    public void verifyKey(VerifyEvent arg0) {

        System.out.println("Code: " + arg0.keyCode);
        System.out.println("StateMask: " + arg0.stateMask);

        if (arg0.keyCode == 32 && (arg0.stateMask != 0)){
            this.sourceViewer.addTextListener(this.textListener) ;
            AutoCompletion ac = new AutoCompletion(this.sourceViewer, this.qaa) ;
            ac.showIfAvailable() ;
        }
    }

}
在Eclipse中绑定CTRL+SPACE时,状态掩码保持为0,但当我更改它时,状态掩码为262144 SWT.CTRL

我读过这篇文章,但我并不完全理解。也许我必须添加createActions方法,但我不知道在哪里


谢谢您的帮助。

可能Ctrl+Space与其他命令冲突。您是否在错误日志视图中看到有关冲突的任何内容