Bug 253006 - Options of Content Assistent throws clause of method header
Summary: Options of Content Assistent throws clause of method header
Status: VERIFIED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.6 M1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-31 14:17 EDT by Paramasivam CLA
Modified: 2009-08-05 01:15 EDT (History)
3 users (show)

See Also:


Attachments
screen shot of might be enhanced content assistent (54.23 KB, image/jpeg)
2008-10-31 14:17 EDT, Paramasivam CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paramasivam CLA 2008-10-31 14:17:43 EDT
Created attachment 116642 [details]
screen shot of might be enhanced content assistent

Regarding content assistant
  ---------------------------

  When i press Ctrl + Space bar after "throws" clause of a method header, show only Exception classes rather than all the matching options

  Please see the attachment
Comment 1 David Audel CLA 2009-06-30 04:31:35 EDT
Exceptions classes are proposed first in the list of proposals because the user probably want to complete the name of a top level type exception.
But the user could want to complete the name of a type which contains the declaration of an exception. As this case is less common, these proposals are proposed at the end of the list.

eg. the user type:
void foo() throws TopLevelTyp| //ctrl+space at |
because he want to write;
void foo() throws TopLevelType.InnerException

Another reason to propose all types is because currently the content assist processor recognize exceptions by their names. If the name contains 'Exception' or 'Error' the type is considered as an exception. This is because content assist must be quick and it is too costly to compute the hierarchy of each type. So to not miss an exception without 'Exception' or 'Error' in its name, all types are proposed.

The current behavior works as expected so i close this bug as WONTFIX.
Comment 2 Srikanth Sankaran CLA 2009-08-05 01:15:59 EDT
Verified for 3.6M1