diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-03-16 14:55:07 -0400 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-03-16 14:55:07 -0400 |
commit | b20cd4223b4ffc03e334627a82ca4eff9738912c (patch) | |
tree | a7119f540e36eeb431eab8f97d096cdc45d14cc4 /src | |
parent | 5c4cd6d206e195d0c5efce747e8670f8e77cb59c (diff) |
Moved project to Maven.
Diffstat (limited to 'src')
-rwxr-xr-x | src/org/unitConverter/UnitsDatabase.java (renamed from src/unitConverter/UnitsDatabase.java) | 18 | ||||
-rwxr-xr-x | src/org/unitConverter/converterGUI/DelegateListModel.java (renamed from src/unitConverter/converterGUI/DelegateListModel.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/converterGUI/FilterComparator.java (renamed from src/unitConverter/converterGUI/FilterComparator.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/converterGUI/GridBagBuilder.java (renamed from src/unitConverter/converterGUI/GridBagBuilder.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/converterGUI/UnitConverterGUI.java (renamed from src/unitConverter/converterGUI/UnitConverterGUI.java) | 18 | ||||
-rw-r--r-- | src/org/unitConverter/converterGUI/package-info.java (renamed from src/unitConverter/converterGUI/package-info.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/dimension/BaseDimension.java (renamed from src/unitConverter/dimension/BaseDimension.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/dimension/OtherBaseDimension.java (renamed from src/unitConverter/dimension/OtherBaseDimension.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/dimension/SIBaseDimension.java (renamed from src/unitConverter/dimension/SIBaseDimension.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/dimension/StandardDimensions.java (renamed from src/unitConverter/dimension/StandardDimensions.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/dimension/UnitDimension.java (renamed from src/unitConverter/dimension/UnitDimension.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/dimension/UnitDimensionTest.java (renamed from src/unitConverter/dimension/UnitDimensionTest.java) | 24 | ||||
-rwxr-xr-x | src/org/unitConverter/dimension/package-info.java (renamed from src/unitConverter/dimension/package-info.java) | 2 | ||||
-rw-r--r-- | src/org/unitConverter/package-info.java (renamed from src/unitConverter/package-info.java) | 2 | ||||
-rw-r--r-- | src/org/unitConverter/unit/AbstractUnit.java (renamed from src/unitConverter/unit/AbstractUnit.java) | 4 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/BaseUnit.java (renamed from src/unitConverter/unit/BaseUnit.java) | 4 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/DefaultUnitPrefix.java (renamed from src/unitConverter/unit/DefaultUnitPrefix.java) | 2 | ||||
-rw-r--r-- | src/org/unitConverter/unit/LinearUnit.java (renamed from src/unitConverter/unit/LinearUnit.java) | 4 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/NonlinearUnits.java (renamed from src/unitConverter/unit/NonlinearUnits.java) | 2 | ||||
-rw-r--r-- | src/org/unitConverter/unit/SI.java (renamed from src/unitConverter/unit/SI.java) | 6 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/SIPrefix.java (renamed from src/unitConverter/unit/SIPrefix.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/Unit.java (renamed from src/unitConverter/unit/Unit.java) | 4 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/UnitPrefix.java (renamed from src/unitConverter/unit/UnitPrefix.java) | 2 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/UnitSystem.java (renamed from src/unitConverter/unit/UnitSystem.java) | 4 | ||||
-rwxr-xr-x | src/org/unitConverter/unit/UnitTest.java (renamed from src/unitConverter/unit/UnitTest.java) | 9 | ||||
-rw-r--r-- | src/org/unitConverter/unit/package-info.java (renamed from src/unitConverter/unit/package-info.java) | 2 |
26 files changed, 63 insertions, 64 deletions
diff --git a/src/unitConverter/UnitsDatabase.java b/src/org/unitConverter/UnitsDatabase.java index 9f5a6a2..4d41735 100755 --- a/src/unitConverter/UnitsDatabase.java +++ b/src/org/unitConverter/UnitsDatabase.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter; +package org.unitConverter; import java.io.BufferedReader; import java.io.File; @@ -27,14 +27,14 @@ import java.util.Map; import java.util.Objects; import java.util.Set; -import unitConverter.dimension.UnitDimension; -import unitConverter.unit.AbstractUnit; -import unitConverter.unit.BaseUnit; -import unitConverter.unit.DefaultUnitPrefix; -import unitConverter.unit.LinearUnit; -import unitConverter.unit.SI; -import unitConverter.unit.Unit; -import unitConverter.unit.UnitPrefix; +import org.unitConverter.dimension.UnitDimension; +import org.unitConverter.unit.AbstractUnit; +import org.unitConverter.unit.BaseUnit; +import org.unitConverter.unit.DefaultUnitPrefix; +import org.unitConverter.unit.LinearUnit; +import org.unitConverter.unit.SI; +import org.unitConverter.unit.Unit; +import org.unitConverter.unit.UnitPrefix; /** * A database of units and prefixes, and their names. diff --git a/src/unitConverter/converterGUI/DelegateListModel.java b/src/org/unitConverter/converterGUI/DelegateListModel.java index 0e9b342..e375126 100755 --- a/src/unitConverter/converterGUI/DelegateListModel.java +++ b/src/org/unitConverter/converterGUI/DelegateListModel.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.converterGUI; +package org.unitConverter.converterGUI; import java.util.Collection; import java.util.Iterator; diff --git a/src/unitConverter/converterGUI/FilterComparator.java b/src/org/unitConverter/converterGUI/FilterComparator.java index 27ec3ab..bebc2df 100755 --- a/src/unitConverter/converterGUI/FilterComparator.java +++ b/src/org/unitConverter/converterGUI/FilterComparator.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-package unitConverter.converterGUI;
+package org.unitConverter.converterGUI;
import java.util.Comparator;
import java.util.Objects;
diff --git a/src/unitConverter/converterGUI/GridBagBuilder.java b/src/org/unitConverter/converterGUI/GridBagBuilder.java index e036677..f1229b2 100755 --- a/src/unitConverter/converterGUI/GridBagBuilder.java +++ b/src/org/unitConverter/converterGUI/GridBagBuilder.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.converterGUI; +package org.unitConverter.converterGUI; import java.awt.GridBagConstraints; import java.awt.Insets; diff --git a/src/unitConverter/converterGUI/UnitConverterGUI.java b/src/org/unitConverter/converterGUI/UnitConverterGUI.java index cf78ea8..a70e971 100755 --- a/src/unitConverter/converterGUI/UnitConverterGUI.java +++ b/src/org/unitConverter/converterGUI/UnitConverterGUI.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.converterGUI; +package org.unitConverter.converterGUI; import java.awt.BorderLayout; import java.awt.GridLayout; @@ -44,14 +44,14 @@ import javax.swing.JTextField; import javax.swing.ListModel; import javax.swing.ListSelectionModel; -import unitConverter.UnitsDatabase; -import unitConverter.dimension.StandardDimensions; -import unitConverter.dimension.UnitDimension; -import unitConverter.unit.AbstractUnit; -import unitConverter.unit.NonlinearUnits; -import unitConverter.unit.SI; -import unitConverter.unit.Unit; -import unitConverter.unit.UnitPrefix; +import org.unitConverter.UnitsDatabase; +import org.unitConverter.dimension.StandardDimensions; +import org.unitConverter.dimension.UnitDimension; +import org.unitConverter.unit.AbstractUnit; +import org.unitConverter.unit.NonlinearUnits; +import org.unitConverter.unit.SI; +import org.unitConverter.unit.Unit; +import org.unitConverter.unit.UnitPrefix; /** * @author Adrien Hopkins diff --git a/src/unitConverter/converterGUI/package-info.java b/src/org/unitConverter/converterGUI/package-info.java index 9f7fa57..d899f97 100644 --- a/src/unitConverter/converterGUI/package-info.java +++ b/src/org/unitConverter/converterGUI/package-info.java @@ -20,4 +20,4 @@ * @author Adrien Hopkins * @since 2019-01-25 */ -package unitConverter.converterGUI;
\ No newline at end of file +package org.unitConverter.converterGUI;
\ No newline at end of file diff --git a/src/unitConverter/dimension/BaseDimension.java b/src/org/unitConverter/dimension/BaseDimension.java index 0c09dce..5e3ddad 100755 --- a/src/unitConverter/dimension/BaseDimension.java +++ b/src/org/unitConverter/dimension/BaseDimension.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.dimension; +package org.unitConverter.dimension; /** * A base dimension that makes up {@code UnitDimension} objects. diff --git a/src/unitConverter/dimension/OtherBaseDimension.java b/src/org/unitConverter/dimension/OtherBaseDimension.java index 8c6d25d..8aea2b9 100755 --- a/src/unitConverter/dimension/OtherBaseDimension.java +++ b/src/org/unitConverter/dimension/OtherBaseDimension.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.dimension; +package org.unitConverter.dimension; import java.util.Objects; diff --git a/src/unitConverter/dimension/SIBaseDimension.java b/src/org/unitConverter/dimension/SIBaseDimension.java index 928d8d6..c459963 100755 --- a/src/unitConverter/dimension/SIBaseDimension.java +++ b/src/org/unitConverter/dimension/SIBaseDimension.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-package unitConverter.dimension;
+package org.unitConverter.dimension;
import java.util.Objects;
diff --git a/src/unitConverter/dimension/StandardDimensions.java b/src/org/unitConverter/dimension/StandardDimensions.java index b3edb7d..4b1b814 100755 --- a/src/unitConverter/dimension/StandardDimensions.java +++ b/src/org/unitConverter/dimension/StandardDimensions.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-package unitConverter.dimension;
+package org.unitConverter.dimension;
/**
* All of the dimensions that are used by the SI.
diff --git a/src/unitConverter/dimension/UnitDimension.java b/src/org/unitConverter/dimension/UnitDimension.java index 40e5bbc..dbeaeff 100755 --- a/src/unitConverter/dimension/UnitDimension.java +++ b/src/org/unitConverter/dimension/UnitDimension.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-package unitConverter.dimension;
+package org.unitConverter.dimension;
import java.util.ArrayList;
import java.util.HashMap;
diff --git a/src/unitConverter/dimension/UnitDimensionTest.java b/src/org/unitConverter/dimension/UnitDimensionTest.java index 86db1b8..3b09610 100755 --- a/src/unitConverter/dimension/UnitDimensionTest.java +++ b/src/org/unitConverter/dimension/UnitDimensionTest.java @@ -14,20 +14,20 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.dimension; +package org.unitConverter.dimension; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static unitConverter.dimension.StandardDimensions.AREA; -import static unitConverter.dimension.StandardDimensions.ENERGY; -import static unitConverter.dimension.StandardDimensions.LENGTH; -import static unitConverter.dimension.StandardDimensions.MASS; -import static unitConverter.dimension.StandardDimensions.MASS_DENSITY; -import static unitConverter.dimension.StandardDimensions.QUANTITY; -import static unitConverter.dimension.StandardDimensions.TIME; -import static unitConverter.dimension.StandardDimensions.VOLUME; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.unitConverter.dimension.StandardDimensions.AREA; +import static org.unitConverter.dimension.StandardDimensions.ENERGY; +import static org.unitConverter.dimension.StandardDimensions.LENGTH; +import static org.unitConverter.dimension.StandardDimensions.MASS; +import static org.unitConverter.dimension.StandardDimensions.MASS_DENSITY; +import static org.unitConverter.dimension.StandardDimensions.QUANTITY; +import static org.unitConverter.dimension.StandardDimensions.TIME; +import static org.unitConverter.dimension.StandardDimensions.VOLUME; -import org.junit.jupiter.api.Test; +import org.junit.Test; /** * Tests for {@link UnitDimension}. diff --git a/src/unitConverter/dimension/package-info.java b/src/org/unitConverter/dimension/package-info.java index 74895ce..db363df 100755 --- a/src/unitConverter/dimension/package-info.java +++ b/src/org/unitConverter/dimension/package-info.java @@ -20,4 +20,4 @@ * @author Adrien Hopkins * @since 2018-12-22 */ -package unitConverter.dimension;
\ No newline at end of file +package org.unitConverter.dimension;
\ No newline at end of file diff --git a/src/unitConverter/package-info.java b/src/org/unitConverter/package-info.java index e2f7ff7..4f51ad0 100644 --- a/src/unitConverter/package-info.java +++ b/src/org/unitConverter/package-info.java @@ -20,4 +20,4 @@ * @author Adrien Hopkins * @since 2019-01-25 */ -package unitConverter;
\ No newline at end of file +package org.unitConverter;
\ No newline at end of file diff --git a/src/unitConverter/unit/AbstractUnit.java b/src/org/unitConverter/unit/AbstractUnit.java index 24814e8..6088960 100644 --- a/src/unitConverter/unit/AbstractUnit.java +++ b/src/org/unitConverter/unit/AbstractUnit.java @@ -14,11 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; import java.util.Objects; -import unitConverter.dimension.UnitDimension; +import org.unitConverter.dimension.UnitDimension; /** * The default abstract implementation of the {@code Unit} interface. diff --git a/src/unitConverter/unit/BaseUnit.java b/src/org/unitConverter/unit/BaseUnit.java index fe36c45..1f0c825 100755 --- a/src/unitConverter/unit/BaseUnit.java +++ b/src/org/unitConverter/unit/BaseUnit.java @@ -14,11 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; import java.util.Objects; -import unitConverter.dimension.UnitDimension; +import org.unitConverter.dimension.UnitDimension; /** * A unit that is the base for its dimension. It does not have to be for a base dimension, so units like the Newton and diff --git a/src/unitConverter/unit/DefaultUnitPrefix.java b/src/org/unitConverter/unit/DefaultUnitPrefix.java index d19161b..c0e8dcc 100755 --- a/src/unitConverter/unit/DefaultUnitPrefix.java +++ b/src/org/unitConverter/unit/DefaultUnitPrefix.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; import java.util.Objects; diff --git a/src/unitConverter/unit/LinearUnit.java b/src/org/unitConverter/unit/LinearUnit.java index b786b3b..ab46f1e 100644 --- a/src/unitConverter/unit/LinearUnit.java +++ b/src/org/unitConverter/unit/LinearUnit.java @@ -14,11 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; import java.util.Objects; -import unitConverter.dimension.UnitDimension; +import org.unitConverter.dimension.UnitDimension; /** * A unit that is equal to a certain number multiplied by its base. diff --git a/src/unitConverter/unit/NonlinearUnits.java b/src/org/unitConverter/unit/NonlinearUnits.java index ec1874c..e47c28f 100755 --- a/src/unitConverter/unit/NonlinearUnits.java +++ b/src/org/unitConverter/unit/NonlinearUnits.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; /** * Some major nonlinear units. diff --git a/src/unitConverter/unit/SI.java b/src/org/unitConverter/unit/SI.java index 54eb4c5..46e6ff1 100644 --- a/src/unitConverter/unit/SI.java +++ b/src/org/unitConverter/unit/SI.java @@ -14,14 +14,14 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; import java.util.HashSet; import java.util.Objects; import java.util.Set; -import unitConverter.dimension.StandardDimensions; -import unitConverter.dimension.UnitDimension; +import org.unitConverter.dimension.StandardDimensions; +import org.unitConverter.dimension.UnitDimension; /** * The SI, which holds all SI units diff --git a/src/unitConverter/unit/SIPrefix.java b/src/org/unitConverter/unit/SIPrefix.java index 54625fb..31d7ff2 100755 --- a/src/unitConverter/unit/SIPrefix.java +++ b/src/org/unitConverter/unit/SIPrefix.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; /** * The SI prefixes. diff --git a/src/unitConverter/unit/Unit.java b/src/org/unitConverter/unit/Unit.java index 54f1423..86fc5a2 100755 --- a/src/unitConverter/unit/Unit.java +++ b/src/org/unitConverter/unit/Unit.java @@ -14,11 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; import java.util.Objects; -import unitConverter.dimension.UnitDimension; +import org.unitConverter.dimension.UnitDimension; /** * A unit that has an associated base unit, and can convert a value expressed in it to and from that base. diff --git a/src/unitConverter/unit/UnitPrefix.java b/src/org/unitConverter/unit/UnitPrefix.java index a0c1b7c..289e60f 100755 --- a/src/unitConverter/unit/UnitPrefix.java +++ b/src/org/unitConverter/unit/UnitPrefix.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; /** * A prefix that can be attached onto the front of any unit, which multiplies it by a certain value diff --git a/src/unitConverter/unit/UnitSystem.java b/src/org/unitConverter/unit/UnitSystem.java index ce8c249..550eff6 100755 --- a/src/unitConverter/unit/UnitSystem.java +++ b/src/org/unitConverter/unit/UnitSystem.java @@ -14,11 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; import java.util.Objects; -import unitConverter.dimension.UnitDimension; +import org.unitConverter.dimension.UnitDimension; /** * A system of units. Each unit should be aware of its system. diff --git a/src/unitConverter/unit/UnitTest.java b/src/org/unitConverter/unit/UnitTest.java index c3237eb..931cc57 100755 --- a/src/unitConverter/unit/UnitTest.java +++ b/src/org/unitConverter/unit/UnitTest.java @@ -14,13 +14,12 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -package unitConverter.unit; +package org.unitConverter.unit; -import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.Assert.assertEquals; -import org.junit.jupiter.api.Test; - -import unitConverter.dimension.StandardDimensions; +import org.junit.Test; +import org.unitConverter.dimension.StandardDimensions; /** * Testing the various Unit classes diff --git a/src/unitConverter/unit/package-info.java b/src/org/unitConverter/unit/package-info.java index b5deb0c..c4493ae 100644 --- a/src/unitConverter/unit/package-info.java +++ b/src/org/unitConverter/unit/package-info.java @@ -20,4 +20,4 @@ * @author Adrien Hopkins * @since 2019-01-25 */ -package unitConverter.unit;
\ No newline at end of file +package org.unitConverter.unit;
\ No newline at end of file |