Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 307940

Summary: support connector specific task editor attribute section layouts
Product: z_Archived Reporter: Shawn Minto <shawn.minto>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: normal    
Priority: P3 CC: markphip, selsemore, shawn.minto, steffen.pingel
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Shawn Minto CLA 2010-04-01 18:09:18 EDT
The task editor should support a custom layout of the attributes section so connector developers do not need to re-implement the attributes section and miss upstream changes in Mylyn.

h3. Requirements:

* Must have:
** predefined ordering
** single or multi-column layout
** ability to insert separators into the section
* Nice to have:
** associate help with controls (i.e. control decorations?)
** grouping of controls with group headings

What we think will work is to add a layout manager that can be contributed by the AbstractTaskEditorPage that can provide layout information for attributes in sections.  Layout could then be managed in a connector specific way and the connector could even base the layout on the repository configuration if that information is available.

# create attribute editors
# create grid layout
# determine attribute order
# assign layout data
# create controls

With this, we will probably want to add a method the AttributeEditorFactory that can create attribute editors based on a "context" (the section that it is being created in).  This context can also be used as information to the layout manager to determine the layout of the editor based on the section that the attributes are added to.  This would better support the differences between header and attributes sections without custom handling.

We still need to determine and API for this, but initial thoughts are:

AbstractTaskEditorPage
* add createLayoutManager(TaskEditorPartDescriptor)

AttributeEditorFactory
* add createEditor(Type, TaskAttribute, EdtiorContext)

Add TaskEditorLayoutManager
* methods and api yet to be defined
Comment 1 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