@Override
 public void execute() {
   super.execute();
   if (this.originals != null && this.originals.size() != 0) {
     doCopyRelatedObjects();
   }
 }
  @Override
  public void execute() {
    // clear out all existing objects (including the ModelContents if one) ...
    this.domain.setClipboard(null);

    // execute the remove commands for the deleted/referenced objects
    super.execute();

    // set the clipboard model contents
    if (this.clipboardModelContents != null && this.domain instanceof ContainerEditingDomain) {
      final ContainerEditingDomain containerEdDomain = (ContainerEditingDomain) this.domain;
      final ModelContents existingContents = containerEdDomain.getClipboardModelContents(false);
      if (existingContents == null) {
        containerEdDomain.setClipboardModelContents(this.clipboardModelContents);
      } else if (existingContents != this.clipboardModelContents) {
        final String msg =
            ModelerCore.Util.getString(
                "CutWithRelatedToClipboardCommand.Unexpected_existing_model_contents_on_clipboard"); //$NON-NLS-1$
        ModelerCore.Util.log(IStatus.WARNING, msg);
        containerEdDomain.setClipboardModelContents(this.clipboardModelContents);
      }
    }
  }
 /** @see org.eclipse.emf.common.command.CompoundCommand#execute() */
 @Override
 public void execute() {
   super.execute();
   refreshViewer();
 }