Bug 263814 - [api][context] allow extensions to hook into 'Context->Copy To...' action
Summary: [api][context] allow extensions to hook into 'Context->Copy To...' action
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks: 300872
  Show dependency tree
 
Reported: 2009-02-05 12:09 EST by David Green CLA
Modified: 2010-01-26 13:03 EST (History)
2 users (show)

See Also:


Attachments
mylyn/context/zip (1.73 KB, application/octet-stream)
2009-02-05 12:15 EST, David Green CLA
no flags Details
candidate API (8.27 KB, patch)
2009-02-05 12:29 EST, David Green CLA
no flags Details | Diff
mylyn/context/zip (10.00 KB, application/octet-stream)
2009-02-05 12:29 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 David Green CLA 2009-02-05 12:09:17 EST
Mylyn makes it possible to copy a context from one task to another.  It would be useful for third party code to be able to hook into this action.

For example, "context-driven domain diagrams":http://greensopinion.blogspot.com/2008/12/mylyn-context-driven-domain-diagram.html are data that is stored in a users workspace metadata associated with a specific task.  It would be great if the diagram data could be associated with the target Mylyn task as part of the copy context action.

Such a hook could allow for non-interactive hooks and interactive hooks that involve the UI.  Simple usage may not require interaction with the user, however in some cases it may be necessary.  In this example the hook would by default copy the diagram data with the context, however if the target task already has diagram data then the hook would prompt the user asking if it's okay to overwrite the existing diagram.
Comment 1 David Green CLA 2009-02-05 12:15:07 EST
Created attachment 124828 [details]
mylyn/context/zip
Comment 2 David Green CLA 2009-02-05 12:29:03 EST
Created attachment 124833 [details]
candidate API

Attached an example of API that would fulfill the requirements.  The implementation is not complete, looking for feedback.
Comment 3 David Green CLA 2009-02-05 12:29:05 EST
Created attachment 124834 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2009-05-31 17:16:11 EDT
The changes proposed on bug 226618 are related.
Comment 5 Steffen Pingel CLA 2009-11-05 04:06:49 EST
Instead of asking the user a series of questions as part of cloning a task it would be nice if participants could contribute UI to the clone dialog to make all choices as part of selecting a task. We could also look at the other events in the context store and consider adding additional events to the extension point. To ensure compatibility with standalone application we probably also need a Java API to register listeners in addition to the extension point which is required to trigger class loading.
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