[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] How to get information from user in the getCreateCommand(CreateRequest request)

In my getCreateCommand() method in XYLayoutEditPolicy, I want to get information from the user, for example the name of the object to create.
I had this working before, by bringing up an InputDialog in my CreateCommand, but I really wanted to get this information before then and just pass it to the command. But when I call the InputDialog from the getCreateCommand(), the dialog just pops up over and over. I realize it keeps popping up because every time I move the mouse, this method gets called. My question is what is the best way to get information from the user before an object is created?


thanks so much!

Barry