Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » doSave not called
doSave not called [message #237421] Tue, 31 July 2007 12:39 Go to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

In my editor (the text one) I ve placed a styledText component for
editing an input.

If I edit the text the method doSave is not called when I press ctrl + s.

What can be the cause ?

Thanks
Re: doSave not called [message #237430 is a reply to message #237421] Tue, 31 July 2007 13:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

I'm trying to force the call to do save
like this way

public void createPartControl(Composite parent) {
text = new StyledText(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL |
SWT.BORDER | SWT.WRAP);
text.addListener(SWT.SAVE, new Listener() {

public void handleEvent(Event e) {
doSave(null);
}

});
}
but I got an error Listener must implement the abstract method handleEvent

I doesn^t understance I wrote the implementation .

any idea ? ...
Re: doSave not called [message #237435 is a reply to message #237430] Tue, 31 July 2007 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

I didn't import the rigth Event class ....

But after doing some test with SWT.SAVE the event is not right called,
the only event who work is SWT.Selection

do you know any workaround ?

thx
Re: doSave not called [message #237441 is a reply to message #237435] Tue, 31 July 2007 13:38 Go to previous message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

(I'm looking to do a delete so I need selection event and I need to know
when the user press delete)
Previous Topic:communication between two editors
Next Topic:move bendpoints and scrollbar
Goto Forum:
  


Current Time: Fri Apr 26 14:51:04 GMT 2024

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

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

Back to the top