Program: 123852
Project: 123852
Buggy source:
/** 
 * Creates page 1 of the multi-page editor, which allows you to change the font used in page 2.
 */
protected void createPage1(){
  IProcess2 process=getProcess();
  codeEditor=CodeEditorFactory.getInstance().getCodeEditor(getCurrentLang(),process);
  ((Process)process).setEditor(this);
  processor=ProcessorUtilities.getProcessor(process,process.getProperty(),process.getContextManager().getDefaultContext());
  if (processor instanceof IJavaBreakpointListener) {
    JDIDebugModel.addJavaBreakpointListener((IJavaBreakpointListener)processor);
  }
  processor.setProcessorStates(IProcessor.STATES_EDIT);
  if (codeEditor instanceof ISyntaxCheckableEditor) {
    processor.setSyntaxCheckableEditor((ISyntaxCheckableEditor)codeEditor);
  }
  if (useCodeView) {
    try {
      int index=addPage(codeEditor,createFileEditorInput());
      if (getCurrentLang() == ECodeLanguage.PERL) {
        if (GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerPerlService.class)) {
          IDesignerPerlService service=(IDesignerPerlService)GlobalServiceRegister.getDefault().getService(IDesignerPerlService.class);
          service.setSyntaxValidationPreference(true);
        }
      }
      setPageText(index,"String_Node_Str");
    }
 catch (    PartInitException pie) {
      ExceptionHandler.process(pie);
    }
  }
  if (DesignerPlugin.getDefault().getPreferenceStore().getBoolean(TalendDesignerPrefConstants.GENERATE_CODE_WHEN_OPEN_JOB)) {
    generateCode();
  }
}

Fixed version (ground truth):
/** 
 * Creates page 1 of the multi-page editor, which allows you to change the font used in page 2.
 */
protected void createPage1(){
  IProcess2 process=getProcess();
  codeEditor=CodeEditorFactory.getInstance().getCodeEditor(getCurrentLang(),process);
  ((Process)process).setEditor(this);
  processor=ProcessorUtilities.getProcessor(process,process.getProperty(),process.getContextManager().getDefaultContext());
  if (processor instanceof IJavaBreakpointListener) {
    JDIDebugModel.addJavaBreakpointListener((IJavaBreakpointListener)processor);
  }
  processor.setProcessorStates(IProcessor.STATES_EDIT);
  if (codeEditor instanceof ISyntaxCheckableEditor) {
    processor.setSyntaxCheckableEditor((ISyntaxCheckableEditor)codeEditor);
  }
  if (useCodeView) {
    try {
      IEditorInput editorInput=createFileEditorInput();
      if (!(process.getProperty().getItem() instanceof ProcessItem)) {
        editorInput=new JobletCodeEditInput();
      }
      int index=addPage(codeEditor,editorInput);
      if (getCurrentLang() == ECodeLanguage.PERL) {
        if (GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerPerlService.class)) {
          IDesignerPerlService service=(IDesignerPerlService)GlobalServiceRegister.getDefault().getService(IDesignerPerlService.class);
          service.setSyntaxValidationPreference(true);
        }
      }
      setPageText(index,"String_Node_Str");
    }
 catch (    PartInitException pie) {
      ExceptionHandler.process(pie);
    }
  }
  if (DesignerPlugin.getDefault().getPreferenceStore().getBoolean(TalendDesignerPrefConstants.GENERATE_CODE_WHEN_OPEN_JOB)) {
    generateCode();
  }
}