How can i : doSave EditorPart content then update the view ? [message #462218] |
Wed, 24 January 2007 15:36  |
Eclipse User |
|
|
|
Hi,
I have a AllCountriesViewPart (a TableViewer in a ViewPart) with all the countries in it. When i create or update a country with the corresponding CountryEditorPart -> doSave
/**
* @see org.eclipse.ui.part.EditorPart#doSave(org.eclipse.core.runti me.IProgressMonitor)
*/
@Override
public void doSave(IProgressMonitor monitor) {
try {
CountryTO data = ...;
data.setCd(cdTxt.getText().trim());
data.setName(nameTxt.getText().trim());
CountryBO.getInstance().save(data);
data = null;
setDirty(false);
setEditable(false);
} catch (final MyException argE) {
// TODO - display error if any
// throwCoreException(argE.getMessage());
} catch (final Exception argE) {
// TODO - display error if any
// throwCoreException(argE.getMessage());
}
}
Now, i would like to update the AllCountriesViewPart with the new or updated data. Is there a way to do that (something like ISelectionListener mechanism) ?
In the attachment, you'll see what i mean. I just save the modification AZERTY (old name) -> QWERTY (new name) but the view doesn't reflect the modification.
Thanks
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03989 seconds