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

Bug 124657

Summary: allow TypeSelectionDialog2 to optionally not resolve the type during computeResult()
Product: [Eclipse Project] JDT Reporter: Jim Zhang <jzhang>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jim Zhang CLA 2006-01-20 10:35:18 EST
I need a type selection dialog during a project creation wizard.  I have implemented my own search scope that takes into account global classpath containers and jar files, which are not associated to any java projects because there aren't any.  However I'm encountering the problem on click "OK" of the dialog because in "computeResult()" it's trying to resolve the selected type by searching thru existing java projects (and there aren't any).

All I need is simply returning the fully qualified name that I have selected without it being resolved.  However currently that's not possible.
Comment 1 Martin Aeschlimann CLA 2006-01-23 06:45:21 EST
That's a difficult one. We have to return IType, so there is no other possibility than to resolve it.

Maybe what you can do is creating a temporarty project while the project creating wizard is shown? Or pre-create the project add add the JAR's to the classpath?

We do that in our project creation wizard.
Comment 2 Martin Aeschlimann CLA 2006-01-31 03:25:10 EST
setting to wontfix. Can you try the suggested workaround?
Comment 3 Jim Zhang CLA 2006-01-31 09:27:39 EST
ok will try the suggested workaround