How to create dialog like "generate equals and hashcode"

Hello, all.
I want to create dialog contains list of class` fields with checkboxes near each of them. This dialog is identical to the "generate equals and hashcode" dialog (Alt+Ins -> "equals() and hashcode() ...").
Could anyone help me ?

5 comments
Comment actions Permalink

Hello dmytro,

I want to create dialog contains list of class` fields with checkboxes
near each of them. This dialog is identical to the "generate equals
and hashcode" dialog (Alt+Ins -> "equals() and hashcode() ...").

Could anyone help me ?


Which part of the task is difficult for you? This dialog is not part of OpenAPI
so it cannot be reused directly, but it's very easy to reimplement by yourself.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thank you for your answer.
My question is a bit misleading :) I would like to reuse described dialog, but, now, I see, it`s impossible.

0
Comment actions Permalink

Can you give me a broad overview on what I would need to do to reimplement this? I have a list of multiple navigation destinations that I want to present the user with. Selecting one of the destinations will navigate the user to that area. I already have the navigation code done. I am trying to figure out how to get a dialog like "Generate" rather than the Smart Type (this will not be triggered by typing).

0
Comment actions Permalink

Hello Shaun,

Can you give me a broad overview on what I would need to do to
reimplement this? I have a list of multiple navigation destinations
that I want to present the user with. Selecting one of the
destinations will navigate the user to that area. I already have the
navigation code done. I am trying to figure out how to get a dialog
like "Generate" rather than the Smart Type (this will not be triggered
by typing).


I don't quite understand what you mean. A dialog like "Generate" (or a list
with checkboxes in general) doesn't seem an appropriate way for selecting
one of a list of navigation destinations to me.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I think i found what i need. THe PopupChooserBuilder will take a JList and provide a selector box similar to the generate dialog in look and feel.

Do you have other suggestions on how a GoTo might be implemented?
Keep in mind the user may have to select from multiple destinations.

0

Please sign in to leave a comment.