From 138133c95ea0bb04a2b7b702d72e880f7fd22c9a Mon Sep 17 00:00:00 2001 From: hippietrail Date: Mon, 20 Jan 2025 23:12:12 +0800 Subject: [PATCH 1/2] correct past & continuous forms of "to input" --- .../Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java | 2 +- Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java | 2 +- .../java/docking/widgets/textfield/FloatingPointTextField.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java b/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java index 09fa1a8a15..8635b8c370 100644 --- a/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java +++ b/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -//With a user-inputed base address, this script will add a reference on the current switch table entry to corresponding code +//With a user-input base address, this script will add a reference on the current switch table entry to corresponding code //Make sure your table entry is defined data (db,dw,etc). //@category ARM diff --git a/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java b/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java index f6d24e929a..a8aeb2826e 100644 --- a/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java +++ b/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// Example script for showing how to use the "AskValues" script method for inputing multiple values +// Example script for showing how to use the "AskValues" script method for inputting multiple values // @category Examples import ghidra.app.script.GhidraScript; import ghidra.features.base.values.GhidraValuesMap; diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java index 2d317a50bd..a1c8b8390a 100644 --- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java +++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java @@ -19,7 +19,7 @@ import javax.swing.JTextField; import javax.swing.text.*; /** - * A simple text field for inputing floating point numbers. The field is continuously validated so + * A simple text field for inputting floating point numbers. The field is continuously validated so * that only valid characters and values can be entered. If the text is blank or contains only "-", * ".", or "-.", the value is considered to be 0. You can optionally set a min and max value. In * order for the continuous validation to work, the max must be a non-negative number and the min From b73cdad6fe6d1e61ee1aee527a889167b68cb550 Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Tue, 21 Jan 2025 07:23:40 -0500 Subject: [PATCH 2/2] GP-0: Certify --- .../ghidra_scripts/AddSingleReferenceInSwitchTable.java | 5 ++--- .../Base/ghidra_scripts/AskValuesExampleScript.java | 4 ++-- .../docking/widgets/textfield/FloatingPointTextField.java | 7 ++++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java b/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java index 8635b8c370..dad18aa347 100644 --- a/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java +++ b/Ghidra/Features/Base/ghidra_scripts/AddSingleReferenceInSwitchTable.java @@ -1,13 +1,12 @@ /* ### * IP: GHIDRA - * REVIEWED: YES * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java b/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java index a8aeb2826e..6bd6778584 100644 --- a/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java +++ b/Ghidra/Features/Base/ghidra_scripts/AskValuesExampleScript.java @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java index a1c8b8390a..68a9913db6 100644 --- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java +++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -41,7 +41,8 @@ public class FloatingPointTextField extends JTextField { /** * Constructs a new FloatingPointTextField initialized with the given value. - * @param columns the number of columns for determining the preferred width + * @param columns the number of columns for determining the preferred width + * @param initialValue the initial value */ public FloatingPointTextField(int columns, double initialValue) { this(columns);