Home » Language IDEs » Java Development Tools (JDT) » JavaUI.createTypeDialog with multiple class selection
JavaUI.createTypeDialog with multiple class selection [message #187704] |
Mon, 29 November 2004 17:05  |
Eclipse User |
|
|
|
Originally posted by: emerson.cse.ogi.edu
I've successfully used the JavaUI.createTypeDialog method to get a
dialog for selecting single types (with the final argument set to false).
Now I want to be able to select multiple types. When I set the final
argument to true, I get sort of a gimpy dialog that doesn't seem to do
anything (everything's greyed out). I suspect that the
MultiTypeSelectionDialog class is just a stub and functionality that
isn't there yet, but I can't find a feature request/bug report for it.
Either that, or I don't know how to use the thing.
Can someone confirm either of these (e.g., "well, it works for me..." or
"gee, someone noticed that was never implemented...")?
Thanks in advance,
e
|
|
| |
Re: JavaUI.createTypeDialog with multiple class selection [message #187729 is a reply to message #187713] |
Mon, 29 November 2004 20:00   |
Eclipse User |
|
|
|
Originally posted by: emerson.cse.ogi.edu
Indeed, thanks for the tip!
A couple of comments/possible bugs: how to select multiple types and a
why what I had didn't work.
How to use multiple types:
In the single type version of the dialog, you chose the type and the
namespace the type came from. In the multiple type version, you can get
duplicate, identical types (assumedly because they come from different
namespaces). I noticed this because I am refactoring java.io, so there
are two types named "BufferedReader," for example. Is this a bug?
Why what I had didn't work:
Both my code and AddClassPrepareBreakpointAction call
createTypeDialog(Shell, IRunnableContext, IProject, int, boolean). My
problem was with the second argument.
(Case 1) I had originally passed in an anonymous inner class
implementing IRunnableContext (with, admittedly, no functionality
whatsoever).
(Case 2) To fix the problem, I had to pass in an IWorkbenchWindow.
This is fine - what I had was a hack - but the results are confusing.
When the final boolean argument is false, Case 1 results in a perfectly
functioning single type selection dialog. When the final boolean
argument is true, Case 1 results in a non-functioning multiple type
selection dialog. I would expect my hack to either break both dialogs
or break neither. Or is there a reason for different behavior between
the two?
These two things cause me to suspect there is a "rogue tile," aka,
bug/feature that got fixed/added in one place but not the other, between
TypeSelectionDialog and MultiTypeSelectionDialog. Thoughts?
Thanks again,
e
Darin Swanson wrote:
> I know we use it from Jdt debug
> org.eclipse.jdt.internal.debug.ui.breakpoints.AddClassPrepar eBreakpointAction
> to allow the creation of multiple class load breakpoints for the selected
> types at the same time.
>
> So...works well for me/us
>
> Darins
>
> "Emerson Murphy-Hill" <emerson@cse.ogi.edu> wrote in message
> news:cog6gf$gia$1@www.eclipse.org...
>
>>I've successfully used the JavaUI.createTypeDialog method to get a dialog
>>for selecting single types (with the final argument set to false).
>>
>>Now I want to be able to select multiple types. When I set the final
>>argument to true, I get sort of a gimpy dialog that doesn't seem to do
>>anything (everything's greyed out). I suspect that the
>>MultiTypeSelectionDialog class is just a stub and functionality that isn't
>>there yet, but I can't find a feature request/bug report for it. Either
>>that, or I don't know how to use the thing.
>>
>>Can someone confirm either of these (e.g., "well, it works for me..." or
>>"gee, someone noticed that was never implemented...")?
>>
>>Thanks in advance,
>>
>>e
>
>
>
|
|
|
Re: JavaUI.createTypeDialog with multiple class selection [message #187871 is a reply to message #187729] |
Tue, 30 November 2004 13:28  |
Eclipse User |
|
|
|
I do not know much about the implementation of the type dialog.
You could file a bug report against JDT UI with your problems/suspisions
Thanks
Darins
"Emerson Murphy-Hill" <emerson@cse.ogi.edu> wrote in message
news:coggq5$vpb$1@www.eclipse.org...
> Indeed, thanks for the tip!
>
> A couple of comments/possible bugs: how to select multiple types and a
> why what I had didn't work.
>
>
> How to use multiple types:
> In the single type version of the dialog, you chose the type and the
> namespace the type came from. In the multiple type version, you can get
> duplicate, identical types (assumedly because they come from different
> namespaces). I noticed this because I am refactoring java.io, so there
> are two types named "BufferedReader," for example. Is this a bug?
>
>
> Why what I had didn't work:
> Both my code and AddClassPrepareBreakpointAction call
> createTypeDialog(Shell, IRunnableContext, IProject, int, boolean). My
> problem was with the second argument.
>
> (Case 1) I had originally passed in an anonymous inner class
> implementing IRunnableContext (with, admittedly, no functionality
> whatsoever).
>
> (Case 2) To fix the problem, I had to pass in an IWorkbenchWindow.
>
> This is fine - what I had was a hack - but the results are confusing.
> When the final boolean argument is false, Case 1 results in a perfectly
> functioning single type selection dialog. When the final boolean
> argument is true, Case 1 results in a non-functioning multiple type
> selection dialog. I would expect my hack to either break both dialogs
> or break neither. Or is there a reason for different behavior between
> the two?
>
>
> These two things cause me to suspect there is a "rogue tile," aka,
> bug/feature that got fixed/added in one place but not the other, between
> TypeSelectionDialog and MultiTypeSelectionDialog. Thoughts?
>
> Thanks again,
>
> e
>
>
>
> Darin Swanson wrote:
> > I know we use it from Jdt debug
> >
org.eclipse.jdt.internal.debug.ui.breakpoints.AddClassPrepar eBreakpointActio
n
> > to allow the creation of multiple class load breakpoints for the
selected
> > types at the same time.
> >
> > So...works well for me/us
> >
> > Darins
> >
> > "Emerson Murphy-Hill" <emerson@cse.ogi.edu> wrote in message
> > news:cog6gf$gia$1@www.eclipse.org...
> >
> >>I've successfully used the JavaUI.createTypeDialog method to get a
dialog
> >>for selecting single types (with the final argument set to false).
> >>
> >>Now I want to be able to select multiple types. When I set the final
> >>argument to true, I get sort of a gimpy dialog that doesn't seem to do
> >>anything (everything's greyed out). I suspect that the
> >>MultiTypeSelectionDialog class is just a stub and functionality that
isn't
> >>there yet, but I can't find a feature request/bug report for it. Either
> >>that, or I don't know how to use the thing.
> >>
> >>Can someone confirm either of these (e.g., "well, it works for me..." or
> >>"gee, someone noticed that was never implemented...")?
> >>
> >>Thanks in advance,
> >>
> >>e
> >
> >
> >
|
|
|
Goto Forum:
Current Time: Mon May 12 03:32:20 EDT 2025
Powered by FUDForum. Page generated in 0.03017 seconds
|