How to create dialog like "generate equals and hashcode" Follow
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 ?
Please sign in to leave a comment.
Hello dmytro,
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!"
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.
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).
Hello Shaun,
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!"
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.