Bug 81196 - Can't search for References, ... to an ITypeParameter [search]
Summary: Can't search for References, ... to an ITypeParameter [search]
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 83438 (view as bug list)
Depends on: 81190
Blocks:
  Show dependency tree
 
Reported: 2004-12-15 11:06 EST by Markus Keller CLA
Modified: 2005-02-04 08: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 Markus Keller CLA 2004-12-15 11:06:45 EST
I20041214-2000

/**
 * @param <ELEMENT> the element
 */
public class A<ELEMENT> {
	ELEMENT e;
}

Searches for ELEMENT give an "Operation Unavailable" dialog. E.g. the
constructor of FindReferencesAction restricts available element types to not
include ITypeParameter. Depends on bug 81190.
Comment 1 Dirk Baeumer CLA 2004-12-23 13:20:56 EST
We shouldn't add this to the search dialog (we don't support locals either). So
as soon as 81190 is fixed this should work
Comment 2 Markus Keller CLA 2005-01-03 10:58:39 EST
Yes, this is not to be supported in the dialog.

However, the find actions currently enumerate the java element types they
support. Once bug 81190 is fixed, ITypeParameter must be added to the lists of
supported element types in all find actions.
Comment 3 Frederic Fusier CLA 2005-01-24 07:25:05 EST
*** Bug 83438 has been marked as a duplicate of this bug. ***
Comment 4 Martin Aeschlimann CLA 2005-02-03 10:43:04 EST
If we want to search for it, there also needs to be a 'type parameter' category
in the 'search for' box. Having a Java element is not enough, the search dialog
must also show the element by name and have the correct 'search for' category set.

I agree with Dirk that we should treat type parameters in search like local
variables. No dialog changes, no search support. Mark occurences is good enough
here.

-> no action
Comment 5 Dirk Baeumer CLA 2005-02-03 12:25:39 EST
Martin I agree regarding the dialog, but disagree regarding searching using the
actions from the context menu. For example select a local variable in code and
press Ctrl+Shift+G to search for references. This produces a normal search
result. (No mark occurrences). We should provide the same for type paramters.
Comment 6 Martin Aeschlimann CLA 2005-02-04 08:28:28 EST
fixed > 20050204