Examples of AddCommand


Examples of org.openstreetmap.josm.command.AddCommand

                }
                // Delete old relation
                relationsToDelete.add(r.rel);
            }
            newRel.addMember(new RelationMember("outer", outer));
            cmds.add(new AddCommand(newRel));
        }
    }
View Full Code Here

Examples of org.openstreetmap.josm.command.AddCommand

            EastNorth B = ws.getSecondNode().getEastNorth();
            n.setEastNorth(Geometry.closestPointToSegment(A, B, n.getEastNorth()));
            Way wnew = new Way(ws.way);
            wnew.addNode(ws.lowerIndex+1, n);
            SequenceCommand cmds = new SequenceCommand(tr("Add a new node to an existing way"),
                    new AddCommand(n), new ChangeCommand(ws.way, wnew));
            Main.main.undoRedo.add(cmds);
        }
    }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.model.commands.AddCommand

  @Override
  protected Command createAddCommand(EditPart child, Object constraint) {
    Activity activity = (Activity) child.getModel();
    EditPartViewer viewer = getHost().getViewer();
    AddCommand add = new AddCommand(activity.getDiagram().getTextEditor(), viewer);
    add.setParent((StructuredActivity) getHost().getModel());
    add.setChild(activity);
    return add;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.