Threshold represents threshold values for a pv. It provides two values, one for positive threshold and
diff --git a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/Utilities.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/Utilities.java
similarity index 96%
rename from app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/Utilities.java
rename to app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/Utilities.java
index 3e9a0dc8d0..a14d0799e5 100644
--- a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/Utilities.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/Utilities.java
@@ -15,77 +15,17 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-package org.phoebus.applications.saveandrestore.common;
+package org.phoebus.applications.saveandrestore.ui;
-import org.epics.util.array.ArrayBoolean;
-import org.epics.util.array.ArrayByte;
-import org.epics.util.array.ArrayDouble;
-import org.epics.util.array.ArrayFloat;
-import org.epics.util.array.ArrayInteger;
-import org.epics.util.array.ArrayLong;
-import org.epics.util.array.ArrayShort;
-import org.epics.util.array.ArrayUByte;
-import org.epics.util.array.ArrayUInteger;
-import org.epics.util.array.ArrayULong;
-import org.epics.util.array.ArrayUShort;
-import org.epics.util.array.ListBoolean;
-import org.epics.util.array.ListLong;
-import org.epics.util.array.ListNumber;
-import org.epics.util.array.ListUInteger;
-import org.epics.util.array.ListULong;
-import org.epics.util.number.UByte;
-import org.epics.util.number.UInteger;
-import org.epics.util.number.ULong;
-import org.epics.util.number.UShort;
-import org.epics.util.number.UnsignedConversions;
+import org.epics.util.array.*;
+import org.epics.util.number.*;
import org.epics.util.text.NumberFormats;
-import org.epics.vtype.Alarm;
-import org.epics.vtype.AlarmSeverity;
-import org.epics.vtype.AlarmStatus;
-import org.epics.vtype.Array;
-import org.epics.vtype.Display;
-import org.epics.vtype.EnumDisplay;
-import org.epics.vtype.SimpleValueFormat;
-import org.epics.vtype.Time;
-import org.epics.vtype.VBoolean;
-import org.epics.vtype.VBooleanArray;
-import org.epics.vtype.VByte;
-import org.epics.vtype.VByteArray;
-import org.epics.vtype.VDouble;
-import org.epics.vtype.VDoubleArray;
-import org.epics.vtype.VEnum;
-import org.epics.vtype.VEnumArray;
-import org.epics.vtype.VFloat;
-import org.epics.vtype.VFloatArray;
-import org.epics.vtype.VInt;
-import org.epics.vtype.VIntArray;
-import org.epics.vtype.VLong;
-import org.epics.vtype.VLongArray;
-import org.epics.vtype.VNumber;
-import org.epics.vtype.VNumberArray;
-import org.epics.vtype.VShort;
-import org.epics.vtype.VShortArray;
-import org.epics.vtype.VString;
-import org.epics.vtype.VStringArray;
-import org.epics.vtype.VType;
-import org.epics.vtype.VUByte;
-import org.epics.vtype.VUByteArray;
-import org.epics.vtype.VUInt;
-import org.epics.vtype.VUIntArray;
-import org.epics.vtype.VULong;
-import org.epics.vtype.VULongArray;
-import org.epics.vtype.VUShort;
-import org.epics.vtype.VUShortArray;
-import org.epics.vtype.ValueFormat;
+import org.epics.vtype.*;
import org.phoebus.core.vtypes.VTypeHelper;
import java.math.BigInteger;
import java.text.NumberFormat;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Objects;
-import java.util.Optional;
+import java.util.*;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
@@ -99,7 +39,7 @@
public final class Utilities {
/**
- * VTypeComparison is the result of comparison of two {@link org.epics.vtype.VType} values. The {@link #string} field
+ * VTypeComparison is the result of comparison of two {@link VType} values. The {@link #string} field
* provides the textual representation of the comparison and the {@link #valuesEqual} provides information whether
* the values are equal (0), the first value is greater than second (1), or the first value is less than second
* (-1). This only applies to scalar values. In case of array values the comparison can only result in 0 or 1.
diff --git a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VDisconnectedData.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VDisconnectedData.java
similarity index 96%
rename from app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VDisconnectedData.java
rename to app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VDisconnectedData.java
index c1e248dcee..73a15ee278 100644
--- a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VDisconnectedData.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VDisconnectedData.java
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-package org.phoebus.applications.saveandrestore.common;
+package org.phoebus.applications.saveandrestore.ui;
import org.epics.vtype.VType;
diff --git a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VNoData.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VNoData.java
similarity index 88%
rename from app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VNoData.java
rename to app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VNoData.java
index fc5c12a3a9..9ea6640c87 100644
--- a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VNoData.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VNoData.java
@@ -15,16 +15,15 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-package org.phoebus.applications.saveandrestore.common;
-
-import java.io.Serializable;
-
+package org.phoebus.applications.saveandrestore.ui;
import org.epics.vtype.VType;
+import java.io.Serializable;
+
/**
*
- * VNoData represents a {@link org.epics.vtype.VType} without any known value, while not being disconnected.
+ * VNoData represents a {@link VType} without any known value, while not being disconnected.
*
* @author Jaka Bobnar
*
diff --git a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VTypePair.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VTypePair.java
similarity index 93%
rename from app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VTypePair.java
rename to app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VTypePair.java
index ad916b45ea..a94c234206 100644
--- a/app/save-and-restore/common/src/main/java/org/phoebus/applications/saveandrestore/common/VTypePair.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/VTypePair.java
@@ -15,10 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-package org.phoebus.applications.saveandrestore.common;
+package org.phoebus.applications.saveandrestore.ui;
import org.epics.vtype.VType;
-import org.phoebus.applications.saveandrestore.common.Threshold;
import java.util.Optional;
diff --git a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/BaseSnapshotTableViewController.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/BaseSnapshotTableViewController.java
index 2433705706..d362a367ad 100644
--- a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/BaseSnapshotTableViewController.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/BaseSnapshotTableViewController.java
@@ -33,8 +33,8 @@
import org.epics.vtype.VType;
import org.phoebus.applications.saveandrestore.Messages;
import org.phoebus.applications.saveandrestore.SaveAndRestoreApplication;
-import org.phoebus.applications.saveandrestore.common.VTypePair;
import org.phoebus.applications.saveandrestore.model.Snapshot;
+import org.phoebus.applications.saveandrestore.ui.VTypePair;
import org.phoebus.core.types.TimeStampedProcessVariable;
import org.phoebus.framework.selection.SelectionService;
import org.phoebus.ui.application.ContextMenuHelper;
diff --git a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/CompareSnapshotsTableViewController.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/CompareSnapshotsTableViewController.java
index af637ab5f3..e94276dcae 100644
--- a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/CompareSnapshotsTableViewController.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/CompareSnapshotsTableViewController.java
@@ -23,10 +23,9 @@
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.TableColumn;
-import org.epics.vtype.VType;
-import org.phoebus.applications.saveandrestore.common.Utilities;
-import org.phoebus.applications.saveandrestore.common.VTypePair;
import org.phoebus.applications.saveandrestore.model.Snapshot;
+import org.phoebus.applications.saveandrestore.ui.Utilities;
+import org.phoebus.applications.saveandrestore.ui.VTypePair;
import java.util.List;
diff --git a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SaveAndRestorePV.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SaveAndRestorePV.java
index 6f2fddd53a..450247cac7 100644
--- a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SaveAndRestorePV.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SaveAndRestorePV.java
@@ -20,8 +20,8 @@
package org.phoebus.applications.saveandrestore.ui.snapshot;
import org.epics.vtype.VType;
-import org.phoebus.applications.saveandrestore.common.VDisconnectedData;
-import org.phoebus.applications.saveandrestore.common.VNoData;
+import org.phoebus.applications.saveandrestore.ui.VDisconnectedData;
+import org.phoebus.applications.saveandrestore.ui.VNoData;
import org.phoebus.pv.PV;
import org.phoebus.pv.PVPool;
diff --git a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SelectionTableColumn.java b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SelectionTableColumn.java
index 68599c3666..f95292d334 100644
--- a/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SelectionTableColumn.java
+++ b/app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/snapshot/SelectionTableColumn.java
@@ -19,13 +19,11 @@
package org.phoebus.applications.saveandrestore.ui.snapshot;
+
import javafx.scene.control.*;
import javafx.scene.control.cell.CheckBoxTableCell;
import javafx.scene.input.MouseButton;
-import org.phoebus.applications.saveandrestore.common.VNoData;
-
-import java.util.logging.Level;
-import java.util.logging.Logger;
+import org.phoebus.applications.saveandrestore.ui.VNoData;
/**
* SelectionTableColumn is the table column for the first column in the table, which displays
@@ -33,27 +31,25 @@
*
* @author Jaka Bobnar
*/
-public class SelectionTableColumn extends TooltipTableColumnVTypeCellEditor is an editor type for {@link org.epics.vtype.VType} or {@link VTypePair}, which allows editing the
+ * VTypeCellEditor is an editor type for {@link org.epics.vtype.VType} or {@link org.phoebus.applications.saveandrestore.ui.VTypePair}, which allows editing the
* value as a string.
*
- * @param null.
- */
- private Map- * Once all PVs have been successfully connected, the persisted values in the snapshot are written in an - * synchronous manner, i.e. the call to the write operation on a PV will wait for completion before a write - * operation on the next PV is invoked. - *
- * - * @param snapshotId The unique id of a snapshot, which can be copied to the clipboard in the save-and-restore UI. - * @param connectTimeout The timeout in ms when connecting to the PVs. If not all PVs are connected after - *connectTimeout ms, an exception is thrown.
- * @param writeTimeout The timeout i ms to wait for a single write operation to complete.
- * @param abortOnFail Determines if write of PV values should be aborted when a write failure occurs, e.g.
- * PV is disconnected or read-only.
- * @param rollBack Determines if restored PVs should be restored to the original state if a write failure occurs.
- * @return A {@link RestoreReport} holding data that can be used to analyze the outcome of the process.
- * @throws Exception In either of these following cases:
- * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - *
- * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ -package org.phoebus.applications.saveandrestore.service; - -import org.phoebus.framework.nls.NLS; - -public class Messages { - - public static String compositeSnapshotConsistencyCheckFailed; - public static String copyOrMoveNotAllowedBody; - public static String createNodeFailed; - public static String createCompositeSnapshotFailed; - public static String createConfigurationFailed; - public static String deleteFilterFailed; - public static String updateConfigurationFailed; - public static String updateCompositeSnapshotFailed; - public static String saveFilterFailed; - public static String searchFailed; - public static String saveSnapshotFailed; - public static String tagAddFailed; - public static String updateNodeFailed; - - static - { - NLS.initializeMessages(Messages.class); - } - - private Messages() - { - // Prevent instantiation - } - -} diff --git a/app/save-and-restore/service/src/main/resources/client_preferences.properties b/app/save-and-restore/service/src/main/resources/client_preferences.properties deleted file mode 100644 index 8e58e2b1b5..0000000000 --- a/app/save-and-restore/service/src/main/resources/client_preferences.properties +++ /dev/null @@ -1,30 +0,0 @@ -# -# Copyright (C) 2020 European Spallation Source ERIC. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# - -# ----------------------------------------------- -# Package org.phoebus.applications.saveandrestore -# ----------------------------------------------- - -# The URL to the save-and-restore service -jmasar.service.url=http://localhost:8080/save-restore - -# Read timeout (in ms) used by the Jersey client -httpClient.readTimeout=1000 - -# Connect timeout in (ms) used by the Jersey client -httpClient.connectTimeout=1000 \ No newline at end of file diff --git a/app/save-and-restore/service/src/main/resources/org/phoebus/applications/saveandrestore/service/messages.properties b/app/save-and-restore/service/src/main/resources/org/phoebus/applications/saveandrestore/service/messages.properties deleted file mode 100644 index 4eef2ff376..0000000000 --- a/app/save-and-restore/service/src/main/resources/org/phoebus/applications/saveandrestore/service/messages.properties +++ /dev/null @@ -1,19 +0,0 @@ -compositeSnapshotConsistencyCheckFailed=Failed to check consistency for composite snapshot -copyOrMoveNotAllowedBody=Selection cannot be moved/copied to the specified target node. -createCompositeSnapshotFailed=Failed to create composite snapshot -createConfigurationFailed=Failed to create configuration -createNodeFailed=Failed to create new node -deleteFilterFailed=Failed to delete filter -saveFilterFailed=Failed to save filter -saveSnapshotFailed=Failed to save snapshot -searchFailed=Search failed -tagAddFailed=Failed to add tag -tagDeleteFailed=Failed to delete tag -updateConfigurationFailed=Failed to update configuration -updateCompositeSnapshotFailed=Failed to update composite snapshot -updateNodeFailed=Failed to update node - - - - -