Package de.fu_berlin.inf.dpp.whiteboard.gef.commands

Examples of de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand


  @Override
  protected Command createDeleteCommand(GroupRequest deleteRequest) {
    if (getHost().getModel() instanceof SVGRootRecord)
      return null;
    DeleteRecordsCommand command = new DeleteRecordsCommand();
    if (getHost().getModel() instanceof ElementRecord) {
      command.addRecordToDelete((ElementRecord) getHost().getModel());
      return command;
    }
    return null;
  }
View Full Code Here


    if (objects.isEmpty())
      return null;
    if (!(objects.get(0) instanceof EditPart))
      return null;

    DeleteRecordsCommand cmd = new DeleteRecordsCommand();

    for (int i = 0; i < objects.size(); i++) {
      if (objects.get(i) instanceof ElementRecordPart) {
        cmd.addRecordToDelete(((ElementRecordPart) objects.get(i))
            .getElementRecord());
      }
    }

    return cmd;
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.