[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: TypeSelector Dialog
|
- From: Daniel Megert <daniel.megert@xxxxxxx>
- Date: Tue, 06 May 2003 09:40:05 +0200
- Newsgroups: eclipse.tools
- Organization: IBM OTI Labs
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210
Peter Ebraert wrote:
Hello,
I'd like to integrate a TypeSelector Dialog such as the one you can find
doin the following:
- In a Java Package, right click on the package
- select 'new' > 'Class'
- When one clicks on the 'Browse Button' for specifying the SuperType of
the new class, he gets presented a TypeSelector Dialog.
That is the one I'd like to use in my Eclipse plugin.
@see org.eclipse.jdt.ui.JavaUI#createTypeDialog
I found a class TypeSelectionDialog. Problem is that this class is not in
the org.eclipse.ui.dialogs package but in the
org.eclipse.jdt.internal.ui.dialogs package. Does this mean that one
should not use this?
Exactly. Types in packages which contain *.internal.* in their name can
change at any time.
Well, I tried to include all needed packages in my project (buth imports
and classpath adaptions). But when running the plugin, and clicking on the
'Browse' Button, it fails with an error message:
Unhandled exception caught in event loop.
Reason:
org/eclipse/jdt/internal/ui/dialogs/TypeSelectionDialog
Can somebody help?
If you need stuff from the JDT UI plug-in you have to add this plug-in
to list of required plug-in in you plugin.xml.
Another thing. The Java Docs (from the Eclipse help) seem not to be
correct concerning this. TypeFilteringDialog and TypeSelectionDialog got
mixed up in the documentation.
Can you be more specific?
BTW: Java related questions are better asked on eclipse.tools.jdt
HTH
Dani