| Summary: | [api] extend TaskOperation to support tooltip and enablement | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Frank Becker <eclipse> | ||||||||||||||||
| Component: | Mylyn | Assignee: | Frank Becker <eclipse> | ||||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||||||
| Severity: | enhancement | ||||||||||||||||||
| Priority: | P1 | CC: | robert.elves, steffen.pingel | ||||||||||||||||
| Version: | unspecified | Keywords: | noteworthy | ||||||||||||||||
| Target Milestone: | 3.5 | ||||||||||||||||||
| Hardware: | All | ||||||||||||||||||
| OS: | All | ||||||||||||||||||
| Whiteboard: | |||||||||||||||||||
| Bug Depends on: | 331626 | ||||||||||||||||||
| Bug Blocks: | 329164 | ||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Frank Becker
Created attachment 183891 [details]
API change
Here is the patch.
Should I wait with commit this to HEAD until the review is completed?
Created attachment 183892 [details]
mylyn/context/zip
Let's wait with committing until we have converged on the implementation. Can you describe the purpose of the tooltip and enablement attribute? From the patch I can't see how they would be used, e.g. in the editor. (In reply to comment #3) > Let's wait with committing until we have converged on the implementation. Can > you describe the purpose of the tooltip and enablement attribute? From the > patch I can't see how they would be used, e.g. in the editor. OK I do this over the weekend and post an updated patch with the editor stuff. In Bugzilla 4.0 the workflow has state UNCONFIRMED and this can be turn on and of per product base. This is why I add the Enable/Disable. Tooltips are used tho show details like: CONFIRMED operation on new bugs tell yo that you should select the default operation if you did not know that you can set this state. Created attachment 183987 [details]
patch V2
Now I found a way to only change TaskAttribute and TaskEditorActionPart.
Created attachment 183988 [details]
mylyn/context/zip
Created attachment 184400 [details]
patch V3
now I use the readonly meta for enable/disable the operation.
Created attachment 184401 [details]
mylyn/context/zip
Please feel free to apply. Only change I would like to request is renaming META_TOOLTIP to META_DESCRIPTION. My sense is that the data model should not reference specific UI elements but provide a generic model of a task. (In reply to comment #9) > Please feel free to apply. Only change I would like to request is renaming > META_TOOLTIP to META_DESCRIPTION. My sense is that the data model should not > reference specific UI elements but provide a generic model of a task. Patch is now in HEAD with your requested change. Whenever I open a bug, the operations are disabled until i refresh it. Reopening (In reply to comment #11) > Whenever I open a bug, the operations are disabled until i refresh it. > Reopening This is because the Task Meta has change, so we need one refresh to have the Task Meta up to date. We need to do this in a backwards compatible way, i.e. the default should be to enable operations. (In reply to comment #13) > We need to do this in a backwards compatible way, i.e. the default should be to > enable operations. Steffen, the problem is that during open of a Task we create the Controls but the background synchronize of the Task set the readonly to the correct value but did not force an redraw of the open Editor. Thoughts? I'll take a look. The framework basically needs to behave in backwards compatible way, i.e. enable the controls if the state is not known. I have commented the enablement out for now. We'll have to revisit this and potentially introduce a new flag for enabling and disabling of actions to maintain backwards compatibility. I'll look into this in more detail next week. Created attachment 188117 [details]
adds TaskAttribute.META_DISABLED
I have reviewed this and added a new attribute TaskAttribute.META_DISABLED which is null/false by default and hence should not have any side effects as controls will be enabled by default. Frank, can you make the necessary changes in Bugzilla to make use of the new flag? Looks like we are done here. |