I like to create two figure on a single drag and drop form the palette i.e At a single drag and drop two figures should be created both have separate EditPart and Model class.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is multiple ways to make this happen: the easiest is to make you creationFactory return
an array or a list of objects. Then, in you
or, the other way is to sublcass CreationTool to have a List of creation factories. Then, create a custom request type, for example,
and override getCommand(Request request) dispatching method that it will handle that case:
when subclassing creation tool you should pay you attention to:
Oh, i’ve actually came up with the idea, that creation new Tool subclassing TargetingTool is a better idea then subclassing CreationTool. Instead, you can just copy implementation (it’s easy actually) and change it as you need.