| Summary: | [api] provide extensibility to customize behavior when opening tasks | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Evgeny Avtsin <ewa> |
| Component: | Mylyn | Assignee: | Project Inbox <mylyn-triaged> |
| Status: | CLOSED MOVED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Evgeny Avtsin
Have you tried changing the Task Editing setting to Web Browser under Tasks in the Eclipse preferences? Hi Steffen, The first item is resolved - thank you for quick response! Thanks, Evgeny New and Delete should be available in the task list context menu. What exactly are you missing and which type of repository are you connecting to? I've received feedback from the customers: they will want to have their Bugzilla tasks still in Eclipse but their PTC tasks in a browser... The connector retrieves task list from the server. The tasks should be opened in web-browser on double click. Native Mylyn task UI is not used at all as well tasks cannot be created or deleted in Eclipse. Are the PTC tasks managed through a custom connector? If so, the connector should implement the corresponding APIs. I am not sure what kind of support you would need in Mylyn to resolve this? I'm marking this bug as resolved for now. Please feel free to reopen and provide additional information if you have further requests. I would replace the action handler for Open Task for my action via setGlobalActionHandler(). The new action should trigger the Open With Browser action for my repository tasks and the original one for the rest tasks.
I retrieved the handler for Open Task successfully via
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
ICommandService cmdService = (ICommandService) window.getService(
ICommandService.class);
Command a = cmdService.getCommand("org.eclipse.mylyn.tasks.ui.command.openSelectedTask");
IHandler ah = a.getHandler();
But an action for Open With Browser is not registered there: I expected to see "org.eclipse.mylyn.tasklist.actions.open.browser".
How to access Open With Browser handler?
In general, is the proposed solution seems feasible? Maybe you could propose something better...
There are several code paths for opening tasks. I don't think overriding command handlers will achieve what you are looking for. I have changed the summary of the task accordingly to provide this type of extensibility. 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 |