// Asking for saving the modifications
MessageDialog dialog = new MessageDialog( Display.getCurrent().getActiveShell(), Messages
.getString( "EntryEditorUtils.SaveChanges" ), null, Messages //$NON-NLS-1$
.getString( "EntryEditorUtils.SaveChangesDescription" ), MessageDialog.QUESTION, new String[] //$NON-NLS-1$
{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0 );
int result = dialog.open();
if ( result == 0 )
{
// Saving the modifications
EntryEditorInput eei = editor.getEntryEditorInput();
IStatus status = eei.saveSharedWorkingCopy( true, editor );