Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RichTextViewer - Modify Listener
RichTextViewer - Modify Listener [message #1414779] Mon, 01 September 2014 05:36 Go to next message
Eclipse UserFriend
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
Re: RichTextViewer - Modify Listener [message #1415615 is a reply to message #1414779] Wed, 03 September 2014 03:40 Go to previous message
Eclipse UserFriend
Hi Mathias,
current CKEditor from the incubator does not support Modify listener.
Please file an enhancement request about it.
Thanks,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:downgrade from JRE7 to JRE6
Next Topic:ScrolledComposite does not work properly unless you explicitly set the size of the scrolled content
Goto Forum:
  


Current Time: Mon Jul 07 07:52:26 EDT 2025

Powered by FUDForum. Page generated in 0.07223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top