private void reloadFile() {

		// Save the current slider position so we can restore after the reload.
		int savedSliderPos = slider.getValue();

		try {
			reader.reload();
			slider.setMaximum(reader.getFileSize());
		}
		catch (IOException e) {
			Msg.error(this, "Error reading file size", e);
		}

		// If scroll locking is not on, then we want to tail the file, so just move to the bottom.
		if (!toolbar.isScrollLockOn()) {
			FVEvent endEvt = new FVEvent(EventType.SCROLL_END, true);
			eventListener.send(endEvt);
			return;
		}

		// Otherwise, just adjust the view to the file position.
		long filePos = slider.getFilePosition(savedSliderPos);
		updateViewToFilePos(filePos);
	}
Reloads the file. When this happens we maintain the position of the slider, unless the
scroll lock capability is turned OFF; in that case we will display new text that is
appended to the file (if the user is also at the bottom of the file).
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/ui/FileViewer.java