RichTextViewer - Modify Listener [message #1414779] |
Mon, 01 September 2014 05:36  |
Eclipse User |
|
|
|
Hello,
I'm currently migrating part of a RCP application to RAP. In RAP I'm using the RichTextViewer - Widget from the RAP-Incubator as a replacement for RCP-StyledText. Unfortunately I'm not able to add a ModifyListener which sets the current editor "dirty" when the text has changed. I also tried to add different listeners, but none is working. Subsequent I add some code I tried to add a (modify) listener:
...
CKEditor editor = new CKEditor(parent, style);
// First - the given "listener" just sets the editor dirty
this.editor.addListener(SWT.Modify, listener);
// Second - no sysouts are printed when typing in the editor Widget
this.editor.addKeyListener(new KeyListener() {
@Override
public void keyReleased(KeyEvent e) {
System.out.println("KeyReleased");
}
@Override
public void keyPressed(KeyEvent e) {
System.out.println("KeyPressed");
}
})
Can someone help my how to add a modify listener to the RichTextViewer - Widget?
Regards,
Mathias
|
|
|
|
Powered by
FUDForum. Page generated in 0.07223 seconds