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

Bug 384985

Summary: [activity] open selected record in associated view
Product: z_Archived Reporter: Timur Achmetow <achmetow84>
Component: MylynAssignee: Timur Achmetow <achmetow84>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 376233    

Description Timur Achmetow CLA 2012-07-12 16:31:52 EDT
The activity records in the viewer should support a link mechanismus which allows the user to open the selected record: for example the selected changes on a file, or the selected build number, or the review task.
Comment 1 Steffen Pingel CLA 2012-09-16 01:21:50 EDT
This should be simple to do for the related tasks. Tim, do you want to take a look how this could be implemented?
Comment 2 Timur Achmetow CLA 2012-09-16 13:34:59 EDT
(In reply to comment #1)
> This should be simple to do for the related tasks. Tim, do you want to take a
> look how this could be implemented?

Yes of course, can you give me a code snippet or a class, where's this functionality is already implemented.
Comment 3 Steffen Pingel CLA 2012-09-16 16:35:29 EDT
Opening tasks is very simply through TasksUiUtil.openTask(). The viewer would somehow need to delegate to a UI implementation of the provider though to do that.
Comment 4 Timur Achmetow CLA 2012-09-16 17:25:26 EDT
(In reply to comment #3)
> Opening tasks is very simply through TasksUiUtil.openTask(). 

I have it tested with this:
ActivityEvent activityevent = (ActivityEvent) selection;
TasksUiUtil.openTask(activityevent.getHandle());

But it opens the task in the integrated browser not with the Editor.
Comment 5 Steffen Pingel CLA 2012-09-21 18:03:53 EDT
That method interprets the parameter as a URL. You would probably need to lookup the ITask in the task list first.
Comment 6 Timur Achmetow CLA 2012-09-30 09:46:47 EDT
(In reply to comment #5)
> That method interprets the parameter as a URL. You would probably need to lookup
> the ITask in the task list first.

Okay, I will test it with an ITask object.
Comment 7 Timur Achmetow CLA 2012-10-01 17:43:53 EDT
Okay it works fine --> see review: https://git.eclipse.org/r/#/c/8008/
Comment 8 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