doSave not called [message #237421] |
Tue, 31 July 2007 12:39 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04328 seconds