Bug 253115 - provide settings page contribution to configure task editor extension
Summary: provide settings page contribution to configure task editor extension
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: dev   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.1   Edit
Assignee: David Green CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks: 235439 244650
  Show dependency tree
 
Reported: 2008-11-02 17:22 EST by Steffen Pingel CLA
Modified: 2008-11-04 23:20 EST (History)
1 user (show)

See Also:


Attachments
screenshot (11.10 KB, image/png)
2008-11-02 17:23 EST, Steffen Pingel CLA
no flags Details
implementation (11.26 KB, patch)
2008-11-04 00:47 EST, David Green CLA
no flags Details | Diff
mylyn/context/zip (7.03 KB, application/octet-stream)
2008-11-04 00:47 EST, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2008-11-02 17:22:59 EST
Provide an implementation of TaskEditorExtensionSettingsContribution (bug 244650) for configuring the task editor extension, e.g. for WikiText.
Comment 1 Steffen Pingel CLA 2008-11-02 17:23:50 EST
Created attachment 116737 [details]
screenshot
Comment 2 Steffen Pingel CLA 2008-11-02 17:34:05 EST
A couple of thought from reviewing the UI:

It's better to avoid the forms look and feel in dialogs, it is inconsistent with "native" controls (see Linux screenshot). I believe the only reason the FormToolkit is used in the dialog is for expandable composites but I am not even that is strictly needed so it maybe a good idea to remove it from the API all together.

I have looked for other examples in the Eclipse UI where a bold font is used to indicate the default but could not find any. I think appending "(default)" is sufficient to highlight the default option.

On first sight I found it difficult to figure out how to disable the extension. It was not obvious to me that "Plain Text" does this. How about replacing the first option by an "Enable" checkbox?
Comment 3 David Green CLA 2008-11-03 15:44:03 EST
(In reply to comment #2)
> It's better to avoid the forms look and feel in dialogs, it is inconsistent with
> "native" controls (see Linux screenshot). I believe the only reason the
> FormToolkit is used in the dialog is for expandable composites but I am not even
> that is strictly needed so it maybe a good idea to remove it from the API all
> together.

I incorrectly assumed that the FormToolkit was in there for a reason.  I can re-work this one to avoid using the form toolkit.

> I have looked for other examples in the Eclipse UI where a bold font is used to
> indicate the default but could not find any. I think appending "(default)" is
> sufficient to highlight the default option.

okay

> On first sight I found it difficult to figure out how to disable the extension.
> It was not obvious to me that "Plain Text" does this. How about replacing the
> first option by an "Enable" checkbox?

Can do.  Perhaps Mik can provide feedback on this, as 'Plain Text' was his suggestion. 
To me 'Plain Text' is very intuitive.... how does 'Enable' relate to editor settings?  There's no text to indicate what's being enabled or disabled.
Comment 4 Steffen Pingel CLA 2008-11-03 23:58:07 EST
> I incorrectly assumed that the FormToolkit was in there for a reason.  I can
> re-work this one to avoid using the form toolkit.

I looked at some code from JDT (bug 253142) and was surprised that they actually use a form toolkit in the dialog as well but set foreground and background color to null. At the moment I am unsure whether it's a good idea to expose it in the API or if the actual toolkit should only be accessible through wrapper methods (e.g. for registering key and focus listeners on the widget). We can discuss this further on bug 253142.

> Can do.  Perhaps Mik can provide feedback on this, as 'Plain Text' was his
> suggestion.
> To me 'Plain Text' is very intuitive.... how does 'Enable' relate to editor
> settings?  There's no text to indicate what's being enabled or disabled.

Good point. I was thinking too much from a technical perspective. Plain Text is actually more descriptive, so it makes sense to leave it the way it is.
Comment 5 David Green CLA 2008-11-04 00:47:01 EST
Created attachment 116898 [details]
implementation

patch with bits from bug 244650

provides a configuration settings section 'Editor' in the task repository properties dialog
also adds a properties dialog for the local repository
Comment 6 David Green CLA 2008-11-04 00:47:35 EST
Created attachment 116899 [details]
mylyn/context/zip
Comment 7 Steffen Pingel CLA 2008-11-04 21:19:34 EST
Great patch! I have applied it with minor modifications: Moved TaskEditorExtensionSettingsContribution to editors package and fixed copyright headers. Fixed minor bug that caused TaskEditorExtensionSettingsContribution.createControl() to append default label twice.

Note that I have disabled the property page of the local task repository for now. The local task editor does not yet support the task editor extension which should be resolved first.
Comment 8 David Green CLA 2008-11-04 23:20:53 EST
Thanks, Steffen!