-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3161 from ControlSystemStudio/sar
SAR
- Loading branch information
Showing
32 changed files
with
362 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/RestoreMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (C) 2024 European Spallation Source ERIC. | ||
*/ | ||
|
||
package org.phoebus.applications.saveandrestore.ui; | ||
|
||
import org.phoebus.applications.saveandrestore.Messages; | ||
|
||
public enum RestoreMode { | ||
|
||
/** | ||
* Classic mode: read data from IOC | ||
*/ | ||
CLIENT_RESTORE(Messages.restoreFromClient), | ||
|
||
/** | ||
* Read PV data from archiver | ||
*/ | ||
SERVICE_RESTORE(Messages.restoreFromService); | ||
|
||
private final String name; | ||
|
||
RestoreMode(final String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String toString(){ | ||
return name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ | |
* @author <a href="mailto:[email protected]">Genie Jhang</a> | ||
*/ | ||
|
||
public class SnapshotNewTagDialog extends Dialog<Pair<String, String>> { | ||
public class SnapshotNewTagDialog extends Dialog<String> { | ||
|
||
private final TextInputControl tagNameTextField; | ||
|
||
|
@@ -81,21 +81,15 @@ public SnapshotNewTagDialog(List<Node> nodes) { | |
gridPane.setPadding(new Insets(12, 8, 3, 8)); | ||
|
||
Label tagNameLabel = new Label(Messages.tagNameLabel); | ||
Label tagCommentLabel = new Label(Messages.tagCommentLabel); | ||
|
||
GridPane.setHalignment(tagNameLabel, HPos.RIGHT); | ||
GridPane.setHalignment(tagCommentLabel, HPos.RIGHT); | ||
|
||
tagNameTextField = new TextField(); | ||
TextField tagCommentTextField = new TextField(); | ||
// TextField tagCommentTextField = new TextField(); | ||
|
||
tagNameTextField.setMinWidth(400); | ||
tagCommentTextField.setMinWidth(400); | ||
|
||
gridPane.add(tagNameLabel, 0, 0); | ||
gridPane.add(tagCommentLabel, 0, 1); | ||
gridPane.add(tagNameTextField, 1, 0); | ||
gridPane.add(tagCommentTextField, 1, 1); | ||
|
||
getDialogPane().setContent(gridPane); | ||
|
||
|
@@ -117,7 +111,7 @@ public SnapshotNewTagDialog(List<Node> nodes) { | |
setResultConverter(dialogButton -> { | ||
if (dialogButton == saveTagButton) { | ||
|
||
return new Pair<>(tagNameTextField.getText(), tagCommentTextField.getText()); | ||
return tagNameTextField.getText(); | ||
} | ||
|
||
return null; | ||
|
Oops, something went wrong.