Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:01:21+00:00 2026-06-10T05:01:21+00:00

I like to create two figure on a single drag and drop form the

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:01:23+00:00Added an answer on June 10, 2026 at 5:01 am

    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

    protected Command getCreateCommand(final CreateRequest request) {
       if (request.getNewObject() instanceof List<?>/Object[]) {
         ...
       }
    }
    

    or, the other way is to sublcass CreationTool to have a List of creation factories. Then, create a custom request type, for example,

    public class MultiCreateRequest extends Request {
        ...    
    }
    

    and override getCommand(Request request) dispatching method that it will handle that case:

    public Command getCommand(Request request) {
       if (REQ_MULTI_CREATE.equals(request.getType()))
          return getMultiCreateCommand((MultiCreateRequest) request);
    }
    

    when subclassing creation tool you should pay you attention to:

    Constructor
    createTargetRequest() (return MultiCreateRequest)
    getCommandName() (return REQ_MULTI_CREATE)
    getCreateRequest() (specify)
    selectAddedObject(EditPartViewer viewer) (to select all created that way objects)
    updateTargetRequest() (specify)
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to create a form that includes fields from two separate models, along
I have two arrays that I create like this: public int GameBoard[][] = new
So I have two tables structured like so: CREATE TABLE #nodes(node int NOT NULL);
I have two models: Person and Address which I'd like to create in a
Possible duplicate : comparing-two-arrays I have two NSArray and I'd like to create a
I have two models that I would like to present in a single Yii
I'm gonna create two div tags with CSS that appear in the page like
I would like to create a UIBarButtonItem on my iPhone application which has two
I'd like to create a function that calculates the distance between two pairs of
I would like to create a multi-dimensional array with two variables but don't know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.