Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RichTextViewer - Modify Listener
RichTextViewer - Modify Listener [message #1414779] Mon, 01 September 2014 09:36 Go to next message
Mathias Dolag is currently offline Mathias DolagFriend
Messages: 6
Registered: September 2014
Junior Member
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 07:40 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2334
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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: Sun Feb 23 12:10:19 GMT 2020

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

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

Back to the top