import eu.etaxonomy.taxeditor.model.IDataChangeBehavior;
import eu.etaxonomy.taxeditor.model.IDirtyMarkableSelectionProvider;
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
+import eu.etaxonomy.taxeditor.model.IPartContentHasFactualData;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
/**
* @version 1.0
*/
public class MultiPageTaxonEditor extends FormEditor implements
- IConversationEnabled, IPostOperationEnabled,
+ IPartContentHasFactualData, IConversationEnabled, IPostOperationEnabled,
IDirtyMarkableSelectionProvider, IPartContentHasDetails, ISecuredEditor {
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.taxon"{trunked}</code> */
// EditorUtil.showPropertySheet();
} catch (PartInitException e) {
- AbstractUtility.error(getClass(), e);
+ MessagingUtils.error(getClass(), e);
}
}
monitor.worked(1);
this.setDirty(false);
- monitor.worked(1);
+ monitor.worked(1);
} catch (Exception e) {
setFocus();
- AbstractUtility.errorDialog("An error occurred while saving", getClass(),
- "An error occurred while saving the editor. Please close and reopen the taxon again.", e);
+ MessagingUtils.operationDialog(this, e, "saving a taxon", " Please close and reopen the taxon again.");
disableEditor(true);
} finally {
monitor.done();
if (editor instanceof IPostOperationEnabled) {
((IPostOperationEnabled) editor).postOperation(objectAffectedByOperation);
} else {
- AbstractUtility.warn(getClass(), "postOperation not enabled for editor " + editor);
+ MessagingUtils.warn(getClass(), "postOperation not enabled for editor " + editor);
}
}
- AbstractUtility.warn(getClass(), "postOperation called on MultiPageTaxonEditor. Can you make it more specific?");
+ MessagingUtils.warn(getClass(), "postOperation called on MultiPageTaxonEditor. Can you make it more specific?");
return false;
}
*/
public void reload() {
if (isDirty()) {
- AbstractUtility.warningDialog("Editor has unsaved data", getClass(), "This editor can not be "
+ MessagingUtils.warningDialog("Editor has unsaved data", getClass(), "This editor can not be "
+ "refreshed because it contains unsaved data. Refreshing "
+ "this editor would discard the changes. Please save this editor, "
+ "close and reopen it manually in order to get the latest content");
editorPart.redraw();
}
} catch (Exception e) {
- AbstractUtility.errorDialog("Error refreshing editor", getClass(), "Could not refresh this editor", e);
+ MessagingUtils.messageDialog("Error refreshing editor", getClass(), "Could not refresh this editor", e);
}
}
}