Ctrl+S different behaviour in Eclipse 3.3 and 3.4 [message #330360] |
Sat, 26 July 2008 11:46  |
Eclipse User |
|
|
|
Hi,
I'm developing a multi page editor, similar to the Eclipse Manifest/PlugIn
editor.
Thus my editor class extends org.eclipse.ui.forms.editor.FormEditor.
And it implements the method doSave(IProgressMonitor progressMonitor).
One of the tabs contains a "source editor", which is a subclass of
org.eclipse.ui.editors.text.TextEditor.
This has got a implementation of doSave(IProgressMonitor progressMonitor)
by default (from org.eclipse.ui.texteditor.AbstractTextEditor).
My intention is, that my doSave(IProgressMonitor progressMonitor) method
is called, whenever the user performs a save action.
Whether by clicking the save icon or pressing Ctrl+S.
It works fine in Eclipse 3.3.
But in 3.4 there is a problem, if the source tab is currently active and a
save action is performed.
Clicking the icon calls my doSave() method, but pressing Crtl+S calls the
doSave() in AbstractTextEditor.
But I want that my doSave() method is called every time.
Why is it working in 3.3 but not in 3.4?
Was there a API change or is it a bug?
It seems like the Key handling is different.
In 3.3 it perform the save action in the top level editor class (
multipage editor ).
But in 3.4 it perform the save action in the text editor, which is part of
the multi page editor.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03047 seconds