Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Need a selection dialog box for selecting classes, methods, fields
Need a selection dialog box for selecting classes, methods, fields [message #258912] Mon, 02 March 2009 22:54 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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();
>
Previous Topic:How can I programmatically format Java code?
Next Topic:change behavior of terminate button
Goto Forum:
  


Current Time: Sat Apr 19 10:29:49 EDT 2025

Powered by FUDForum. Page generated in 0.03998 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top