code: public CmsJobEditView openEditDialog(String jobId, boolean copy) {
  
          if (m_dialogWindow != null) {
              m_dialogWindow.close();
          }
          m_dialogWindow = CmsBasicDialog.prepareWindow(DialogWidth.wide);
          CmsScheduledJobInfo job = null;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(jobId)) {
              job = getElement(jobId);
          }
          CmsScheduledJobInfo jobCopy;
          if (job == null) {
              jobCopy = new CmsScheduledJobInfo();
              jobCopy.setContextInfo(new CmsContextInfo());
              m_dialogWindow.setCaption(
                  CmsVaadinUtils.getMessageText(
                      org.opencms.workplace.tools.scheduler.Messages.GUI_NEWJOB_ADMIN_TOOL_NAME_0));
          } else {
              jobCopy = job.clone();
              jobCopy.setActive(job.isActive());
              if (copy) {
                  jobCopy.clearId();
                  m_dialogWindow.setCaption(
                      CmsVaadinUtils.getMessageText(
                          org.opencms.ui.Messages.GUI_SCHEDULER_TITLE_COPY_1,
                          job.getJobName()));
              } else {
                  m_dialogWindow.setCaption(
                      CmsVaadinUtils.getMessageText(
                          org.opencms.workplace.tools.scheduler.Messages.GUI_JOBS_LIST_ACTION_EDIT_NAME_0));
              }
          }
  
          CmsJobEditView editPanel = new CmsJobEditView(this, jobCopy);
          editPanel.loadFromBean(jobCopy);
          m_dialogWindow.setContent(editPanel);
          A_CmsUI.get().addWindow(m_dialogWindow);
          m_dialogWindow.center();
  
          return editPanel;
      }
docs: Creates the edit view for the given job id.<p>
  
  @param jobId the id of the job to edit, or null to create a new job
  @param copy <code>true</code> to create a copy of the given job
  
  @return the edit view