Need a selection dialog box for selecting classes, methods, fields [message #258912] |
Mon, 02 March 2009 22:54  |
Eclipse User |
|
|
|
The following code is displaying only classes. Is there any code that will
also allow me to drill into lower details so that the Object[] result
array also returns me say methods or fields of a class. I want a dialog
box which displays in it the classes, methods, fields of a class in a
drill down fashion using a tree control. Do we have any such dialog in
existence?
SelectionDialog dialog = JavaUI.createTypeDialog(parent, new
ProgressMonitorDialog(
parent), SearchEngine.createWorkspaceScope(),
IJavaElementSearchConstants.CONSIDER_ALL_TYPES, false);
dialog.setTitle("My Dialog Title");
dialog.setMessage("My Dialog Message");
int status = dialog.open();
Object[] result = dialog.getResult();
|
|
|
Re: Need a selection dialog box for selecting classes, methods, fields [message #259028 is a reply to message #258912] |
Wed, 11 March 2009 04:23  |
Eclipse User |
|
|
|
Raster wrote:
> The following code is displaying only classes. Is there any code that
> will also allow me to drill into lower details so that the Object[]
> result array also returns me say methods or fields of a class. I want
> a dialog box which displays in it the classes, methods, fields of a
> class in a drill down fashion using a tree control. Do we have any
> such dialog in existence?
No.
Dani
>
>
>
> SelectionDialog dialog = JavaUI.createTypeDialog(parent, new
> ProgressMonitorDialog(
> parent), SearchEngine.createWorkspaceScope(),
> IJavaElementSearchConstants.CONSIDER_ALL_TYPES,
> false);
> dialog.setTitle("My Dialog Title");
> dialog.setMessage("My Dialog Message");
> int status = dialog.open();
>
> Object[] result = dialog.getResult();
>
|
|
|
Powered by
FUDForum. Page generated in 0.03998 seconds