1
이클립스 3.4.0에서 3.5.1 (갈릴레오)으로 이클립스 플러그인 (편집기)을 업데이트해야합니다.Eclipse 플러그인 바인딩 CTRL + SPACE가 작동하지 않습니다.
콘텐츠 지원에 문제가 있습니다.
내가 CTRL + SPACE를 입력하면 아무 일도 일어나지 않습니다. 하지만 Ctrl + 스페이스 바를 Eclipse의 다른 바인딩 (환경 설정 -> 키)으로 바꿀 때 작동합니다 (Ctrl + 스페이스가 내 편집기에서 작동 함). CTRL + 스페이스는 이클립스에 바인더 제본되어
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() ;
}
}
}
에서, StateMask 0을 유지하지만 난 그것을 변경할 때, StateMask는 262144 (SWT.CTRL)입니다 : 여기
는 리스너입니다.
나는 이것을 읽었습니다 : http://wiki.eclipse.org/FAQ_How_do_I_add_Content_Assist_to_my_editor%3F 그러나 나는 모든 것을 이해하지 못합니다. 어쩌면 createActions 메서드를 추가해야합니다.
도움 주셔서 감사합니다.