Bug 149469 - [WorkbenchParts] ISaveablePart#doSave(..) should specify user interaction
Summary: [WorkbenchParts] ISaveablePart#doSave(..) should specify user interaction
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 147900
  Show dependency tree
 
Reported: 2006-07-03 11:01 EDT by Markus Keller CLA
Modified: 2019-09-05 02:52 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2006-07-03 11:01:27 EDT
I20060628-1135

Javadocs of Saveable#doSave(..) and ISaveablePart#doSave(..) should specify the user interaction in case of failure.

E.g. AbstractTextEditor currently shows a dialog if save failed. Other editors may not show a dialog and leave the user completely uninformed about the failure (see bug 147900, which turned out to be caused by a third-party editor that does not inform the user if the operation fails).
Comment 1 Boris Bokowski CLA 2006-07-05 07:24:09 EDT
Saveable.doSave() specifies this:

	 * @throws CoreException
	 *             if the save fails; it is the caller's responsibility to
	 *             report the failure to the user

Is this what you are asking for?

Unfortunately, ISaveablePart.doSave() is not spec'd to throw CoreException, so I guess we will have to specify it the other way around.
Comment 2 Markus Keller CLA 2006-07-05 08:52:49 EDT
Oops, sorry about the wrong accusation -- Saveable#doSave(..) is indeed already well specified.

However, DefaultSaveable#doSave(..) currently just calls ISaveablePart#doSave(..) and does not throw a CoreException, even if the save failed. Maybe it would be best to deprecate ISaveablePart#doSave(..) and ask clients to implement ISaveablesSource. This would also help implementing bug 149471.
Comment 3 Lars Vogel CLA 2019-09-05 02:52:58 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the request is still relevant please remove the stalebug whiteboard tag.