Program: 62386
Project: 62386
Buggy source:
@Override public void initialize(URL url,ResourceBundle rb){
  tooltipTimeFixService.fix();
  AwesomeDude.setIcon(htmlPro,AwesomeIcon.HTML5);
  AwesomeDude.setIcon(pdfPro,AwesomeIcon.FILE_PDF_ALT);
  AwesomeDude.setIcon(ebookPro,AwesomeIcon.BOOK);
  AwesomeDude.setIcon(docbookPro,AwesomeIcon.CODE);
  AwesomeDude.setIcon(browserPro,AwesomeIcon.FLASH);
  AwesomeDude.setIcon(workingDirButton,AwesomeIcon.FOLDER_ALT,"String_Node_Str");
  AwesomeDude.setIcon(panelShowHideMenuButton,AwesomeIcon.COLUMNS,"String_Node_Str");
  AwesomeDude.setIcon(refreshLabel,AwesomeIcon.REFRESH,"String_Node_Str");
  AwesomeDude.setIcon(goUpLabel,AwesomeIcon.LEVEL_UP,"String_Node_Str");
  AwesomeDude.setIcon(goHomeLabel,AwesomeIcon.HOME,"String_Node_Str");
  leftButton.setGraphic(AwesomeDude.createIconLabel(AwesomeIcon.ELLIPSIS_H,"String_Node_Str"));
  ContextMenu htmlProMenu=new ContextMenu();
  htmlProMenu.getStyleClass().add("String_Node_Str");
  htmlPro.setContextMenu(htmlProMenu);
  htmlPro.setOnMouseClicked(event -> {
    htmlProMenu.show(htmlPro,event.getScreenX(),50);
  }
);
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generateHtml();
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generateHtml(true);
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").click(event -> {
    this.cutCopy(lastRendered.getValue());
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").click(event -> {
    previewEngine.executeScript("String_Node_Str");
  }
));
  ContextMenu pdfProMenu=new ContextMenu();
  pdfProMenu.getStyleClass().add("String_Node_Str");
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generatePdf();
  }
));
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generatePdf(true);
  }
));
  pdfPro.setContextMenu(pdfProMenu);
  pdfPro.setOnMouseClicked(event -> {
    pdfProMenu.show(pdfPro,event.getScreenX(),50);
  }
);
  ContextMenu docbookProMenu=new ContextMenu();
  docbookProMenu.getStyleClass().add("String_Node_Str");
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertDocbook();
  }
));
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertDocbook(true);
  }
));
  docbookPro.setContextMenu(docbookProMenu);
  docbookPro.setOnMouseClicked(event -> {
    docbookProMenu.show(docbookPro,event.getScreenX(),50);
  }
);
  ContextMenu ebookProMenu=new ContextMenu();
  ebookProMenu.getStyleClass().add("String_Node_Str");
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertMobi();
  }
)).add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertMobi(true);
  }
)).build());
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertEpub();
  }
)).add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertEpub(true);
  }
)).build());
  ebookPro.setOnMouseClicked(event -> {
    ebookProMenu.show(ebookPro,event.getScreenX(),50);
  }
);
  ebookPro.setContextMenu(ebookProMenu);
  browserPro.setOnMouseClicked(event -> {
    if (event.getButton() == MouseButton.PRIMARY)     this.externalBrowse();
  }
);
  port=server.getEmbeddedServletContainer().getPort();
  loadConfigurations();
  loadRecentFileList();
  loadShortCuts();
  recentListView.setItems(recentFiles);
  recentFiles.addListener((ListChangeListener<String>)c -> {
    recentListView.visibleProperty().setValue(c.getList().size() > 0);
    recentListView.getSelectionModel().selectFirst();
  }
);
  recentListView.setOnMouseClicked(event -> {
    if (event.getClickCount() > 1) {
      openRecentListFile(event);
    }
  }
);
  treeView.setCellFactory(param -> {
    TreeCell<Item> cell=new TextFieldTreeCell<Item>();
    cell.setOnDragDetected(event -> {
      Dragboard db=cell.startDragAndDrop(TransferMode.ANY);
      ClipboardContent content=new ClipboardContent();
      content.putFiles(Arrays.asList(cell.getTreeItem().getValue().getPath().toFile()));
      db.setContent(content);
    }
);
    return cell;
  }
);
  lastRendered.addListener(lastRenderedChangeListener);
  mathjaxView=new WebView();
  mathjaxView.setVisible(false);
  rootAnchor.getChildren().add(mathjaxView);
  WebEngine mathjaxEngine=mathjaxView.getEngine();
  mathjaxEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    JSObject window=(JSObject)mathjaxEngine.executeScript("String_Node_Str");
    if (window.getMember("String_Node_Str").equals("String_Node_Str"))     window.setMember("String_Node_Str",this);
  }
);
  mathjaxEngine.load(String.format("String_Node_Str",port));
  previewEngine=previewView.getEngine();
  previewEngine.load(String.format("String_Node_Str",port));
  previewEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    if (state2 == Worker.State.SUCCEEDED) {
      JSObject window=(JSObject)previewEngine.executeScript("String_Node_Str");
      if (window.getMember("String_Node_Str").equals("String_Node_Str")) {
        window.setMember("String_Node_Str",this);
      }
    }
  }
);
  previewEngine.getLoadWorker().exceptionProperty().addListener((ov,t,t1) -> {
    logger.info(t1.getMessage(),t1);
  }
);
  if (Objects.nonNull(config.getWorkingDirectory())) {
    Path path=Paths.get(config.getWorkingDirectory());
    Optional<Path> optional=Files.notExists(path) ? Optional.empty() : Optional.of(path);
    directoryService.setWorkingDirectory(optional);
  }
  Path workDir=directoryService.getWorkingDirectory().orElse(userHome);
  fileBrowser.browse(treeView,workDir);
  openFileTreeItem.setOnAction(event -> {
    ObservableList<TreeItem<Item>> selectedItems=treeView.getSelectionModel().getSelectedItems();
    selectedItems.stream().map(e -> e.getValue()).map(e -> e.getPath()).filter(path -> {
      if (selectedItems.size() == 1)       return true;
      return !Files.isDirectory(path);
    }
).forEach(directoryService.getOpenFileConsumer()::accept);
  }
);
  removePathItem.setOnAction(event -> {
    ObservableList<TreeItem<Item>> selectedItems=treeView.getSelectionModel().getSelectedItems();
    AlertHelper.deleteAlert().ifPresent(button -> {
      if (button == ButtonType.YES)       selectedItems.stream().map(e -> e.getValue()).map(e -> e.getPath()).forEach(IOHelper::deleteIfExists);
    }
);
  }
);
  openFolderTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toString());
  }
);
  openFolderListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toString());
  }
);
  openFileListItem.setOnAction(this::openRecentListFile);
  copyPathTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.cutCopy(path.toString());
  }
);
  copyPathListItem.setOnAction(event -> {
    this.cutCopy(recentListView.getSelectionModel().getSelectedItem());
  }
);
  copyTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.copyFile(path);
  }
);
  copyListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    this.copyFile(path);
  }
);
  treeView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
  treeView.setOnMouseClicked(event -> {
    TreeItem<Item> selectedItem=treeView.getSelectionModel().getSelectedItem();
    if (Objects.isNull(selectedItem))     return;
    Path selectedPath=selectedItem.getValue().getPath();
    if (event.getButton() == MouseButton.PRIMARY)     if (event.getClickCount() == 2)     directoryService.getOpenFileConsumer().accept(selectedPath);
  }
);
  treeView.getSelectionModel().getSelectedIndices().addListener((ListChangeListener<? super Integer>)p -> {
    boolean selectedAnyFolder=((ObservableList<Integer>)p.getList()).stream().anyMatch(index -> {
      TreeItem<Item> item=treeView.getTreeItem(index);
      Path itemPath=item.getValue().getPath();
      boolean isFile=itemPath.toFile().isFile();
      return !isFile;
    }
);
    if (selectedAnyFolder) {
      removePathItem.setDisable(true);
      renameFile.setDisable(true);
      createFile.setDisable(false);
    }
 else {
      removePathItem.setDisable(false);
      renameFile.setDisable(false);
      createFile.setDisable(true);
    }
  }
);
  previewView.setContextMenuEnabled(false);
  previewEngine.setOnAlert(event -> {
    if ("String_Node_Str".equals(event.getData())) {
      if (Objects.nonNull(lastRendered.getValue()))       lastRenderedChangeListener.changed(null,null,lastRendered.getValue());
    }
  }
);
  ContextMenu previewContextMenu=new ContextMenu(MenuItemBuilt.item("String_Node_Str").click(event -> {
    WebHistory history=previewEngine.getHistory();
    if (history.getCurrentIndex() != 0)     history.go(-1);
  }
),MenuItemBuilt.item("String_Node_Str").click(event -> {
    WebHistory history=previewEngine.getHistory();
    if (history.getCurrentIndex() + 1 != history.getEntries().size())     history.go(+1);
  }
),new SeparatorMenuItem(),MenuItemBuilt.item("String_Node_Str").click(event -> {
    DocumentFragmentImpl selectionDom=(DocumentFragmentImpl)previewEngine.executeScript("String_Node_Str");
    ClipboardContent content=new ClipboardContent();
    content.putHtml(XMLHelper.nodeToString(selectionDom,true));
    clipboard.setContent(content);
  }
),MenuItemBuilt.item("String_Node_Str").click(event -> {
    String selection=(String)previewEngine.executeScript("String_Node_Str");
    ClipboardContent content=new ClipboardContent();
    content.putString(selection);
    clipboard.setContent(content);
  }
),MenuItemBuilt.item("String_Node_Str").click(event -> {
    DocumentFragmentImpl selectionDom=(DocumentFragmentImpl)previewEngine.executeScript("String_Node_Str");
    ClipboardContent content=new ClipboardContent();
    content.putString(XMLHelper.nodeToString(selectionDom,true));
    clipboard.setContent(content);
  }
),new SeparatorMenuItem(),MenuItemBuilt.item("String_Node_Str").click(event -> {
    previewEngine.executeScript("String_Node_Str");
  }
));
  previewContextMenu.setAutoHide(true);
  previewView.setOnMouseClicked(event -> {
    if (event.getButton() == MouseButton.SECONDARY) {
      previewContextMenu.show(previewView,event.getScreenX(),event.getScreenY());
    }
 else {
      previewContextMenu.hide();
    }
  }
);
  newDoc(null);
}

Fixed version (ground truth):
@Override public void initialize(URL url,ResourceBundle rb){
  tooltipTimeFixService.fix();
  AwesomeDude.setIcon(htmlPro,AwesomeIcon.HTML5);
  AwesomeDude.setIcon(pdfPro,AwesomeIcon.FILE_PDF_ALT);
  AwesomeDude.setIcon(ebookPro,AwesomeIcon.BOOK);
  AwesomeDude.setIcon(docbookPro,AwesomeIcon.CODE);
  AwesomeDude.setIcon(browserPro,AwesomeIcon.FLASH);
  AwesomeDude.setIcon(workingDirButton,AwesomeIcon.FOLDER_ALT,"String_Node_Str");
  AwesomeDude.setIcon(panelShowHideMenuButton,AwesomeIcon.COLUMNS,"String_Node_Str");
  AwesomeDude.setIcon(refreshLabel,AwesomeIcon.REFRESH,"String_Node_Str");
  AwesomeDude.setIcon(goUpLabel,AwesomeIcon.LEVEL_UP,"String_Node_Str");
  AwesomeDude.setIcon(goHomeLabel,AwesomeIcon.HOME,"String_Node_Str");
  leftButton.setGraphic(AwesomeDude.createIconLabel(AwesomeIcon.ELLIPSIS_H,"String_Node_Str"));
  ContextMenu htmlProMenu=new ContextMenu();
  htmlProMenu.getStyleClass().add("String_Node_Str");
  htmlPro.setContextMenu(htmlProMenu);
  htmlPro.setOnMouseClicked(event -> {
    htmlProMenu.show(htmlPro,event.getScreenX(),50);
  }
);
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generateHtml();
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generateHtml(true);
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").click(event -> {
    this.cutCopy(lastRendered.getValue());
  }
));
  htmlProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").tip("String_Node_Str").click(event -> {
    previewEngine.executeScript("String_Node_Str");
  }
));
  ContextMenu pdfProMenu=new ContextMenu();
  pdfProMenu.getStyleClass().add("String_Node_Str");
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generatePdf();
  }
));
  pdfProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.generatePdf(true);
  }
));
  pdfPro.setContextMenu(pdfProMenu);
  pdfPro.setOnMouseClicked(event -> {
    pdfProMenu.show(pdfPro,event.getScreenX(),50);
  }
);
  ContextMenu docbookProMenu=new ContextMenu();
  docbookProMenu.getStyleClass().add("String_Node_Str");
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertDocbook();
  }
));
  docbookProMenu.getItems().add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertDocbook(true);
  }
));
  docbookPro.setContextMenu(docbookProMenu);
  docbookPro.setOnMouseClicked(event -> {
    docbookProMenu.show(docbookPro,event.getScreenX(),50);
  }
);
  ContextMenu ebookProMenu=new ContextMenu();
  ebookProMenu.getStyleClass().add("String_Node_Str");
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertMobi();
  }
)).add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertMobi(true);
  }
)).build());
  ebookProMenu.getItems().add(MenuBuilt.name("String_Node_Str").add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertEpub();
  }
)).add(MenuItemBuilt.item("String_Node_Str").click(event -> {
    this.convertEpub(true);
  }
)).build());
  ebookPro.setOnMouseClicked(event -> {
    ebookProMenu.show(ebookPro,event.getScreenX(),50);
  }
);
  ebookPro.setContextMenu(ebookProMenu);
  browserPro.setOnMouseClicked(event -> {
    if (event.getButton() == MouseButton.PRIMARY)     this.externalBrowse();
  }
);
  port=server.getEmbeddedServletContainer().getPort();
  loadConfigurations();
  loadRecentFileList();
  loadShortCuts();
  recentListView.setItems(recentFiles);
  recentFiles.addListener((ListChangeListener<String>)c -> {
    recentListView.visibleProperty().setValue(c.getList().size() > 0);
    recentListView.getSelectionModel().selectFirst();
  }
);
  recentListView.setOnMouseClicked(event -> {
    if (event.getClickCount() > 1) {
      openRecentListFile(event);
    }
  }
);
  treeView.setCellFactory(param -> {
    TreeCell<Item> cell=new TextFieldTreeCell<Item>();
    cell.setOnDragDetected(event -> {
      Dragboard db=cell.startDragAndDrop(TransferMode.ANY);
      ClipboardContent content=new ClipboardContent();
      content.putFiles(Arrays.asList(cell.getTreeItem().getValue().getPath().toFile()));
      db.setContent(content);
    }
);
    return cell;
  }
);
  lastRendered.addListener(lastRenderedChangeListener);
  mathjaxView=new WebView();
  mathjaxView.setVisible(false);
  rootAnchor.getChildren().add(mathjaxView);
  WebEngine mathjaxEngine=mathjaxView.getEngine();
  mathjaxEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    JSObject window=(JSObject)mathjaxEngine.executeScript("String_Node_Str");
    if (window.getMember("String_Node_Str").equals("String_Node_Str"))     window.setMember("String_Node_Str",this);
  }
);
  mathjaxEngine.load(String.format("String_Node_Str",port));
  previewEngine=previewView.getEngine();
  previewEngine.load(String.format("String_Node_Str",port));
  previewEngine.getLoadWorker().stateProperty().addListener((observableValue1,state,state2) -> {
    if (state2 == Worker.State.SUCCEEDED) {
      JSObject window=(JSObject)previewEngine.executeScript("String_Node_Str");
      if (window.getMember("String_Node_Str").equals("String_Node_Str")) {
        window.setMember("String_Node_Str",this);
      }
    }
  }
);
  previewEngine.getLoadWorker().exceptionProperty().addListener((ov,t,t1) -> {
    logger.info(t1.getMessage(),t1);
  }
);
  if (Objects.nonNull(config.getWorkingDirectory())) {
    Path path=Paths.get(config.getWorkingDirectory());
    Optional<Path> optional=Files.notExists(path) ? Optional.empty() : Optional.of(path);
    directoryService.setWorkingDirectory(optional);
  }
  Path workDir=directoryService.getWorkingDirectory().orElse(userHome);
  fileBrowser.browse(treeView,workDir);
  openFileTreeItem.setOnAction(event -> {
    ObservableList<TreeItem<Item>> selectedItems=treeView.getSelectionModel().getSelectedItems();
    selectedItems.stream().map(e -> e.getValue()).map(e -> e.getPath()).filter(path -> {
      if (selectedItems.size() == 1)       return true;
      return !Files.isDirectory(path);
    }
).forEach(directoryService.getOpenFileConsumer()::accept);
  }
);
  removePathItem.setOnAction(event -> {
    ObservableList<TreeItem<Item>> selectedItems=treeView.getSelectionModel().getSelectedItems();
    AlertHelper.deleteAlert().ifPresent(button -> {
      if (button == ButtonType.YES)       selectedItems.stream().map(e -> e.getValue()).map(e -> e.getPath()).forEach(IOHelper::deleteIfExists);
    }
);
  }
);
  openFolderTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toString());
  }
);
  openFolderListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    path=Files.isDirectory(path) ? path : path.getParent();
    if (Objects.nonNull(path))     getHostServices().showDocument(path.toString());
  }
);
  openFileListItem.setOnAction(this::openRecentListFile);
  copyPathTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.cutCopy(path.toString());
  }
);
  copyPathListItem.setOnAction(event -> {
    this.cutCopy(recentListView.getSelectionModel().getSelectedItem());
  }
);
  copyTreeItem.setOnAction(event -> {
    Path path=tabService.getSelectedTabPath();
    this.copyFile(path);
  }
);
  copyListItem.setOnAction(event -> {
    Path path=Paths.get(recentListView.getSelectionModel().getSelectedItem());
    this.copyFile(path);
  }
);
  treeView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
  treeView.setOnMouseClicked(event -> {
    TreeItem<Item> selectedItem=treeView.getSelectionModel().getSelectedItem();
    if (Objects.isNull(selectedItem))     return;
    Path selectedPath=selectedItem.getValue().getPath();
    if (event.getButton() == MouseButton.PRIMARY)     if (event.getClickCount() == 2)     directoryService.getOpenFileConsumer().accept(selectedPath);
  }
);
  treeView.getSelectionModel().getSelectedIndices().addListener((ListChangeListener<? super Integer>)p -> {
    boolean selectedAnyFolder=((ObservableList<Integer>)p.getList()).stream().anyMatch(index -> {
      TreeItem<Item> item=treeView.getTreeItem(index);
      Path itemPath=item.getValue().getPath();
      boolean isFile=itemPath.toFile().isFile();
      return !isFile;
    }
);
    if (selectedAnyFolder) {
      removePathItem.setDisable(true);
      renameFile.setDisable(true);
      createFile.setDisable(false);
    }
 else {
      removePathItem.setDisable(false);
      renameFile.setDisable(false);
      createFile.setDisable(true);
    }
  }
);
  previewView.setContextMenuEnabled(false);
  previewEngine.setOnAlert(event -> {
    if ("String_Node_Str".equals(event.getData())) {
      if (Objects.nonNull(lastRendered.getValue()))       lastRenderedChangeListener.changed(null,null,lastRendered.getValue());
    }
  }
);
  ContextMenu previewContextMenu=new ContextMenu(MenuItemBuilt.item("String_Node_Str").click(event -> {
    WebHistory history=previewEngine.getHistory();
    if (history.getCurrentIndex() != 0)     history.go(-1);
  }
),MenuItemBuilt.item("String_Node_Str").click(event -> {
    WebHistory history=previewEngine.getHistory();
    if (history.getCurrentIndex() + 1 != history.getEntries().size())     history.go(+1);
  }
),new SeparatorMenuItem(),MenuItemBuilt.item("String_Node_Str").click(event -> {
    DocumentFragmentImpl selectionDom=(DocumentFragmentImpl)previewEngine.executeScript("String_Node_Str");
    ClipboardContent content=new ClipboardContent();
    content.putHtml(XMLHelper.nodeToString(selectionDom,true));
    clipboard.setContent(content);
  }
),MenuItemBuilt.item("String_Node_Str").click(event -> {
    String selection=(String)previewEngine.executeScript("String_Node_Str");
    ClipboardContent content=new ClipboardContent();
    content.putString(selection);
    clipboard.setContent(content);
  }
),MenuItemBuilt.item("String_Node_Str").click(event -> {
    DocumentFragmentImpl selectionDom=(DocumentFragmentImpl)previewEngine.executeScript("String_Node_Str");
    ClipboardContent content=new ClipboardContent();
    content.putString(XMLHelper.nodeToString(selectionDom,true));
    clipboard.setContent(content);
  }
),new SeparatorMenuItem(),MenuItemBuilt.item("String_Node_Str").click(event -> {
    previewEngine.executeScript("String_Node_Str");
  }
));
  previewContextMenu.setAutoHide(true);
  previewView.setOnMouseClicked(event -> {
    if (event.getButton() == MouseButton.SECONDARY) {
      previewContextMenu.show(previewView,event.getScreenX(),event.getScreenY());
    }
 else {
      previewContextMenu.hide();
    }
  }
);
  tabService.initializeTabChangeListener(tabPane);
  newDoc(null);
}