Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 242297 - [api] provide APIs in org.eclipse.mylyn.tasks.core to find a task or a taskData for its id
Summary: [api] provide APIs in org.eclipse.mylyn.tasks.core to find a task or a taskDa...
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 316253
Blocks:
  Show dependency tree
 
Reported: 2008-07-28 16:00 EDT by Beyhan Veliev CLA
Modified: 2010-08-31 08:24 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beyhan Veliev CLA 2008-07-28 16:00:27 EDT
I want to separate the "ui" and the "core" functionality in my Mylyn connector. My "RepositoryConnector" is in my "core" plugin which depends only on "org.eclipse.mylyn.tasks.core". I need to find a task or a taskData for its id in my "RepositoryConnector", but there are no APIs in "org.eclipse.mylyn.tasks.core" for this. I don't want to have dependency on "org.eclipse.mylyn.tasks.ui" in my "core" plugin. A solution may be to create an activator for "org.eclipse.mylyn.tasks.core" and to initialize the data managers (TaskDataManager ...) there.

Best regards
Beyhan
Comment 1 Jan Lohre CLA 2009-02-09 08:52:37 EST
Hi,

any update on this?

Kind regards,
Jan
Comment 2 Steffen Pingel CLA 2010-06-09 16:34:38 EDT
Sorry for the slow response. Connector cores are intentionally designed as state-less singletons and are not expected to hold on to or access the state of a particular IRepositoryModel instance directly. I understand that this can be limiting sometimes. 

Can you describe why it is necessary for your connector core to obtain instances to tasks not already provided when methods on the connector core are invoked? It would help us to understand the use cases better and potentially reconsider this design in the future.
Comment 3 Beyhan Veliev CLA 2010-08-31 08:24:21 EDT
I can't remember anymore the use case. Since almost two years I'm no more in this project. 

I think our tasks had dependencies between them and in our *.core bundle wasn't possible to find out whether the dependencies of a task are already loaded or have to be loaded. I hope this can help you.
Comment 4 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