Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315916 - Show hint if any editing operation is refused due to the underlying content model
Summary: Show hint if any editing operation is refused due to the underlying content m...
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-06 18:45 EDT by Florian Thienel CLA
Modified: 2011-11-09 17:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Thienel CLA 2010-06-06 18:45:55 EDT
Is:
If the user tries to insert content that is not allowed at the current cursor position, this attempt is silently ignored. The user has no idea why her action has no effect.

Should:
A hint should be shown in some unintrusive form (e.g. a slide-in dialog or in the status line), why the in question content cannot be inserted.
Comment 1 Florian Thienel CLA 2010-07-19 11:06:10 EDT
This kind of hint should be shown for any editing operation that is refused due to validation issues (i.e. trying to delete the content of an empty element).
Comment 2 Holger Voormann CLA 2010-07-19 16:41:47 EDT
There are different ways to show such hint:

a) (non-modal) dialog:
can not be overlooked but requires user interaction (click 'OK')

b) (modal) slide-in dialog:
does not block but unusual for this kind of information (which is a feedback of input by the user)

c) status line
easy to overlooked but non-blocking

I think, the user should decide if she or he wants to have a non-modal dialog or not: non-modal dialog (a) with a check box "Do not show this dialog again" (could also be enabled/disabled in Preferences) and to show the hint in the status line (c).

What do you think?
Comment 3 Florian Thienel CLA 2010-07-19 16:56:19 EDT
(In reply to comment #2)
> a) (non-modal) dialog:
> can not be overlooked but requires user interaction (click 'OK')
Maybe very annoying.

> c) status line
> easy to overlooked but non-blocking
The status line is already used for the path of the current cursor position. This information is essential for positioning the cursor to create new structures like e.g. tables.

This brought me to the idea of a slide in dialog or some kind of message that fades into the UI, stays a little time and fades out again. Maybe a bubble or tooltip-like window above the cursor, like the JFace FieldDecoration.
Comment 4 Holger Voormann CLA 2010-07-19 17:54:35 EDT
(In reply to comment #3)
> ... Maybe a bubble or tooltip-like window above the cursor,
> like the JFace FieldDecoration.
>
+1
Good idea as long as it is associated with the cursor.

Maybe we could also show if it is possible to insert text _before_ it is insert, e.g. by a greyed out cursor or/and the suffix " (empty element)" in the path in the status line.
Comment 5 Florian Thienel CLA 2011-11-09 17:37:40 EST
Moved to Mylyn Docs Vex.
Comment 6 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn