Skip to content

Commit

Permalink
Some code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
georgweiss committed Sep 25, 2024
1 parent 25e73cd commit 1b15515
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import javafx.scene.control.ButtonType;
import javafx.scene.control.CheckBox;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Dialog;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.control.Menu;
Expand Down Expand Up @@ -86,7 +85,6 @@
import org.phoebus.ui.dialog.DialogHelper;
import org.phoebus.ui.dialog.ExceptionDetailsErrorDialog;
import org.phoebus.ui.javafx.ImageCache;
import org.phoebus.ui.time.DateTimePane;

import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.MultivaluedMap;
Expand All @@ -97,7 +95,6 @@
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.text.MessageFormat;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand Down Expand Up @@ -129,15 +126,19 @@ public class SaveAndRestoreController extends SaveAndRestoreBaseController
@FXML
protected SplitPane splitPane;

@SuppressWarnings("unused")
@FXML
private ProgressIndicator progressIndicator;

@SuppressWarnings("unused")
@FXML
private ComboBox<Filter> filtersComboBox;

@SuppressWarnings("unused")
@FXML
private Button searchButton;

@SuppressWarnings("unused")
@FXML
private CheckBox enableFilterCheckBox;

Expand All @@ -161,6 +162,7 @@ public class SaveAndRestoreController extends SaveAndRestoreBaseController

private static final Logger logger = Logger.getLogger(SaveAndRestoreController.class.getName());

@SuppressWarnings("unused")
@FXML
private Tooltip filterToolTip;

Expand Down Expand Up @@ -284,7 +286,7 @@ public void loadTreeData() {

JobManager.schedule("Load save-and-restore tree data", monitor -> {
Node rootNode = saveAndRestoreService.getRootNode();
if(rootNode == null){ // Service off-line or not reachable
if (rootNode == null) { // Service off-line or not reachable
treeInitializationCountDownLatch.countDown();
errorPane.visibleProperty().set(true);
return;
Expand Down Expand Up @@ -1441,7 +1443,7 @@ public boolean checkTaggable() {
}

/**
* Determines if comparing snapshots is possible, which is the case if all of the following holds true:
* Determines if comparing snapshots is possible, which is the case if all the following holds true:
* <ul>
* <li>The active tab must be a {@link org.phoebus.applications.saveandrestore.ui.snapshot.SnapshotTab}</li>
* <li>The active {@link org.phoebus.applications.saveandrestore.ui.snapshot.SnapshotTab} must not show an unsaved snapshot.</li>
Expand Down

0 comments on commit 1b15515

Please sign in to comment.