Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 137486 - [context] allow searching through task contexts
Summary: [context] allow searching through task contexts
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 0.4   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 200763 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-19 09:12 EDT by Eugene Kuleshov CLA
Modified: 2011-02-02 12:28 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2006-04-19 09:12:19 EDT
It would be handy to be able to search trough Mylar contexts by class or method name (perhaps using the same options as Java search), so it would show artifacts (classes and methods) and tasks where those artifacts appear.
Comment 1 Mik Kersten CLA 2006-04-19 18:44:37 EDT
I've wanted this for some time too :)  There's some interesting overlap between Active Search, Mylar's dynamic search scope for the active context, and this.  I hope to get to this after 0.5.1 one goes out and will post additional thoughts here.
Comment 2 Eugene Kuleshov CLA 2006-04-19 19:02:35 EDT
The major difference from active search and Mylar's dynamic scope is that this should search trough all tasks and even should allow to search trough archived tasks.

So, it is more like BugZilla search and I'd say there is some overlap to what Hipicat is trying to do...
Comment 3 Mik Kersten CLA 2006-04-19 19:14:06 EDT
I consider the fact that we only keep the active task context loaded an implementation detail, albeit a pretty big one ;)  But for Mylar 0.6 chances are that this sort of search will feel similar to what you're suggesting, with scopes something like context
- active task contexts
- all local contexts
- all repository contexts

One annoyance is that Bugzilla doesn't yet support searching attachments so we may need to ask for that.
Comment 4 Mik Kersten CLA 2006-09-15 19:53:48 EDT
Advanced feature, likely won't make it into 1.0 as it will require us to maintain the context dependency structure in order to avoid loading in every context.
Comment 5 Eugene Kuleshov CLA 2007-07-16 14:06:55 EDT
It would be easier to implement it, if we could open context without activating the task. It seem related to previewing contexts without activation.
Comment 6 Mik Kersten CLA 2007-07-16 19:39:20 EDT
Yup, that would provide a mechanism to do a search by activating each task context without materializing it in the workspace (bug 174658).  It might make more sense to do this with a type dependency style index, which would also support fixing bug 112721.
Comment 7 Eugene Kuleshov CLA 2007-07-16 20:04:34 EDT
It would be easier if we could open context *without* activating
the task. It seem related to previewing contexts *without* activation.

I still consider it a huge drawback that task context require all referenced resources to be present in the workspace. Activating task context will essentially force loading models for all referenced resources into memory and can also trigger additional plugin initialization. Both aren't really fun, as we saw workbench blocking during context init.
Comment 8 Mik Kersten CLA 2007-07-16 21:06:03 EDT
 (In reply to comment #7)
> It would be easier if we could open context *without* activating
> the task. It seem related to previewing contexts *without* activation.

I was making a distinction between context activation and materialization, but we're talking about the same thing.

> I still consider it a huge drawback that task context require all referenced
> resources to be present in the workspace. Activating task context will
> essentially force loading models for all referenced resources into memory and
> can also trigger additional plugin initialization. Both aren't really fun, as we
> saw workbench blocking during context init.

In terms of the current design, activating the task context does not require any bridge activation (and hence downstream plug-in activation).  When something in the Focused UI asks for a handle (e.g. a Java project is asked whether or not it should be filtered) activation is required.  When I next iterate on the context model I will verify that this design still matches the implementation.
Comment 9 Eugene Kuleshov CLA 2007-07-16 21:16:30 EDT
(In reply to comment #8)
> In terms of the current design, activating the task context does not require any
> bridge activation (and hence downstream plug-in activation).  When something in
> the Focused UI asks for a handle (e.g. a Java project is asked whether or not it
> should be filtered) activation is required.

Wouldn't search have to ask for the handle for each context entry? I am thinking of including context references when searching using something like Ctrl-Shift-G. For example, Spring IDE now neatly shows bean declarations referencing given class, it would be also interesting to see the tasks that reference these classes. Are we still talking about the same use case?
Comment 10 Mik Kersten CLA 2007-07-17 15:31:34 EDT
Looking up handles doesn't require a connector.  So for something like Ctrl+Shift+G the process would be:
1) Connector looks up the element and generates its handle
2) Context Core looks for all contexts with that handle and retrieves them.
3) Display results (e.g. could just show the tasks, activate those contexts without materialization, have some semantic thumbnailing of contexts, etc.)
Comment 11 Eugene Kuleshov CLA 2007-07-17 15:59:52 EDT
That may work, but what about cases when handle can't be looked up? I.e. when searching by non qualified class name, pattern or incomplete matches (like packages renamed from mylar to mylyn)...
Comment 12 Mik Kersten CLA 2007-08-22 01:55:27 EDT
*** Bug 200763 has been marked as a duplicate of this bug. ***
Comment 13 Matt Cui CLA 2007-08-22 02:44:01 EDT
A use case for this feature:

A user is reviewing the code and found something special or some code is hard-to-understand in a method,  he/she may think this part of code is for fixing or implementing a bug or feature, so going through the bug/feature info will help understand this part of code. Then she should be able to right click this method and select "Associated bug/features" item in "Package Explorer" or "Outline", the associated bug/features should show up.
Comment 14 Mik Kersten CLA 2008-05-13 14:44:27 EDT
Need to defer this since for 3.0 we're focusing on API enhancements and UI finesse instead of new features.
Comment 15 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