Skip to content

Commit

Permalink
Change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
starchypotatocode committed Sep 15, 2024
1 parent 42e0b15 commit 2fdad69
Show file tree
Hide file tree
Showing 145 changed files with 784 additions and 784 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'jacoco'
}

mainClassName = 'seedu.address.Main'
mainClassName = 'hallpointer.address.Main'

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 1 addition & 1 deletion docs/DevOps.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Any warnings or errors will be printed out to the console.

Here are the steps to create a new release.

1. Update the version number in [`MainApp.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/MainApp.java).
1. Update the version number in [`MainApp.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/MainApp.java).
1. Generate a fat JAR file using Gradle (i.e., `gradlew shadowJar`).
1. Tag the repo with the version number. e.g. `v0.1`
1. [Create a new release using GitHub](https://help.github.com/articles/creating-releases/). Upload the JAR file you created.
14 changes: 7 additions & 7 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Given below is a quick overview of main components and how they interact with ea

**Main components of the architecture**

**`Main`** (consisting of classes [`Main`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/Main.java) and [`MainApp`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/MainApp.java)) is in charge of the app launch and shut down.
**`Main`** (consisting of classes [`Main`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/Main.java) and [`MainApp`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/MainApp.java)) is in charge of the app launch and shut down.
* At app launch, it initializes the other components in the correct sequence, and connects them up with each other.
* At shut down, it shuts down the other components and invokes cleanup methods where necessary.

Expand Down Expand Up @@ -67,13 +67,13 @@ The sections below give more details of each component.

### UI component

The **API** of this component is specified in [`Ui.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/ui/Ui.java)
The **API** of this component is specified in [`Ui.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/ui/Ui.java)

<puml src="diagrams/UiClassDiagram.puml" alt="Structure of the UI Component"/>

The UI consists of a `MainWindow` that is made up of parts e.g.`CommandBox`, `ResultDisplay`, `PersonListPanel`, `StatusBarFooter` etc. All these, including the `MainWindow`, inherit from the abstract `UiPart` class which captures the commonalities between classes that represent parts of the visible GUI.

The `UI` component uses the JavaFx UI framework. The layout of these UI parts are defined in matching `.fxml` files that are in the `src/main/resources/view` folder. For example, the layout of the [`MainWindow`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/ui/MainWindow.java) is specified in [`MainWindow.fxml`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/resources/view/MainWindow.fxml)
The `UI` component uses the JavaFx UI framework. The layout of these UI parts are defined in matching `.fxml` files that are in the `src/main/resources/view` folder. For example, the layout of the [`MainWindow`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/ui/MainWindow.java) is specified in [`MainWindow.fxml`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/resources/view/MainWindow.fxml)

The `UI` component,

Expand All @@ -84,7 +84,7 @@ The `UI` component,

### Logic component

**API** : [`Logic.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/logic/Logic.java)
**API** : [`Logic.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/logic/Logic.java)

Here's a (partial) class diagram of the `Logic` component:

Expand Down Expand Up @@ -116,7 +116,7 @@ How the parsing works:
* All `XYZCommandParser` classes (e.g., `AddCommandParser`, `DeleteCommandParser`, ...) inherit from the `Parser` interface so that they can be treated similarly where possible e.g, during testing.

### Model component
**API** : [`Model.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/model/Model.java)
**API** : [`Model.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/model/Model.java)

<puml src="diagrams/ModelClassDiagram.puml" width="450" />

Expand All @@ -139,7 +139,7 @@ The `Model` component,

### Storage component

**API** : [`Storage.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/seedu/address/storage/Storage.java)
**API** : [`Storage.java`](https://github.com/se-edu/addressbook-level3/tree/master/src/main/java/hallpointer/address/storage/Storage.java)

<puml src="diagrams/StorageClassDiagram.puml" width="550" />

Expand All @@ -150,7 +150,7 @@ The `Storage` component,

### Common classes

Classes used by multiple components are in the `seedu.address.commons` package.
Classes used by multiple components are in the `hallpointer.address.commons` package.

--------------------------------------------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/SettingUp.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ If you plan to use Intellij IDEA (highly recommended):
Note: Importing a Gradle project is slightly different from importing a normal Java project.
</box>
1. **Verify the setup**:
1. Run the `seedu.address.Main` and try a few commands.
1. Run the `hallpointer.address.Main` and try a few commands.
1. [Run the tests](Testing.md) to ensure they all pass.

--------------------------------------------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions docs/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ There are two ways to run tests.
This project has three types of tests:

1. *Unit tests* targeting the lowest level methods/classes.<br>
e.g. `seedu.address.commons.StringUtilTest`
e.g. `hallpointer.address.commons.StringUtilTest`
1. *Integration tests* that are checking the integration of multiple code units (those code units are assumed to be working).<br>
e.g. `seedu.address.storage.StorageManagerTest`
e.g. `hallpointer.address.storage.StorageManagerTest`
1. Hybrids of unit and integration tests. These test are checking multiple code units as well as how the are connected together.<br>
e.g. `seedu.address.logic.LogicManagerTest`
e.g. `hallpointer.address.logic.LogicManagerTest`
8 changes: 4 additions & 4 deletions src/main/java/seedu/address/AppParameters.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address;
package hallpointer.address;

import java.nio.file.Path;
import java.nio.file.Paths;
Expand All @@ -7,9 +7,9 @@
import java.util.logging.Logger;

import javafx.application.Application;
import seedu.address.commons.core.LogsCenter;
import seedu.address.commons.util.FileUtil;
import seedu.address.commons.util.ToStringBuilder;
import hallpointer.address.commons.core.LogsCenter;
import hallpointer.address.commons.util.FileUtil;
import hallpointer.address.commons.util.ToStringBuilder;

/**
* Represents the parsed command-line parameters given to the application.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/Main.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package seedu.address;
package hallpointer.address;

import java.util.logging.Logger;

import javafx.application.Application;
import seedu.address.commons.core.LogsCenter;
import hallpointer.address.commons.core.LogsCenter;

/**
* The main entry point to the application.
Expand Down
48 changes: 24 additions & 24 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address;
package hallpointer.address;

import java.io.IOException;
import java.nio.file.Path;
Expand All @@ -7,29 +7,29 @@

import javafx.application.Application;
import javafx.stage.Stage;
import seedu.address.commons.core.Config;
import seedu.address.commons.core.LogsCenter;
import seedu.address.commons.core.Version;
import seedu.address.commons.exceptions.DataLoadingException;
import seedu.address.commons.util.ConfigUtil;
import seedu.address.commons.util.StringUtil;
import seedu.address.logic.Logic;
import seedu.address.logic.LogicManager;
import seedu.address.model.AddressBook;
import seedu.address.model.Model;
import seedu.address.model.ModelManager;
import seedu.address.model.ReadOnlyAddressBook;
import seedu.address.model.ReadOnlyUserPrefs;
import seedu.address.model.UserPrefs;
import seedu.address.model.util.SampleDataUtil;
import seedu.address.storage.AddressBookStorage;
import seedu.address.storage.JsonAddressBookStorage;
import seedu.address.storage.JsonUserPrefsStorage;
import seedu.address.storage.Storage;
import seedu.address.storage.StorageManager;
import seedu.address.storage.UserPrefsStorage;
import seedu.address.ui.Ui;
import seedu.address.ui.UiManager;
import hallpointer.address.commons.core.Config;
import hallpointer.address.commons.core.LogsCenter;
import hallpointer.address.commons.core.Version;
import hallpointer.address.commons.exceptions.DataLoadingException;
import hallpointer.address.commons.util.ConfigUtil;
import hallpointer.address.commons.util.StringUtil;
import hallpointer.address.logic.Logic;
import hallpointer.address.logic.LogicManager;
import hallpointer.address.model.AddressBook;
import hallpointer.address.model.Model;
import hallpointer.address.model.ModelManager;
import hallpointer.address.model.ReadOnlyAddressBook;
import hallpointer.address.model.ReadOnlyUserPrefs;
import hallpointer.address.model.UserPrefs;
import hallpointer.address.model.util.SampleDataUtil;
import hallpointer.address.storage.AddressBookStorage;
import hallpointer.address.storage.JsonAddressBookStorage;
import hallpointer.address.storage.JsonUserPrefsStorage;
import hallpointer.address.storage.Storage;
import hallpointer.address.storage.StorageManager;
import hallpointer.address.storage.UserPrefsStorage;
import hallpointer.address.ui.Ui;
import hallpointer.address.ui.UiManager;

/**
* Runs the application.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/commons/core/Config.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package seedu.address.commons.core;
package hallpointer.address.commons.core;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Objects;
import java.util.logging.Level;

import seedu.address.commons.util.ToStringBuilder;
import hallpointer.address.commons.util.ToStringBuilder;

/**
* Config values used by the app
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/commons/core/GuiSettings.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package seedu.address.commons.core;
package hallpointer.address.commons.core;

import java.awt.Point;
import java.io.Serializable;
import java.util.Objects;

import seedu.address.commons.util.ToStringBuilder;
import hallpointer.address.commons.util.ToStringBuilder;

/**
* A Serializable class that contains the GUI settings.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/commons/core/LogsCenter.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.core;
package hallpointer.address.commons.core;

import static java.util.Objects.requireNonNull;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/commons/core/Version.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.core;
package hallpointer.address.commons.core;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/commons/core/index/Index.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package seedu.address.commons.core.index;
package hallpointer.address.commons.core.index;

import seedu.address.commons.util.ToStringBuilder;
import hallpointer.address.commons.util.ToStringBuilder;

/**
* Represents a zero-based or one-based index.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.exceptions;
package hallpointer.address.commons.exceptions;

/**
* Represents an error during loading of data from a file.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.exceptions;
package hallpointer.address.commons.exceptions;

/**
* Signals that some given data does not fulfill some constraints.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/commons/util/AppUtil.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package seedu.address.commons.util;
package hallpointer.address.commons.util;

import static java.util.Objects.requireNonNull;

import javafx.scene.image.Image;
import seedu.address.MainApp;
import hallpointer.address.MainApp;

/**
* A container for App specific utility functions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.util;
package hallpointer.address.commons.util;

import static java.util.Objects.requireNonNull;

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/seedu/address/commons/util/ConfigUtil.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package seedu.address.commons.util;
package hallpointer.address.commons.util;

import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;

import seedu.address.commons.core.Config;
import seedu.address.commons.exceptions.DataLoadingException;
import hallpointer.address.commons.core.Config;
import hallpointer.address.commons.exceptions.DataLoadingException;

/**
* A class for accessing the Config File.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/commons/util/FileUtil.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.util;
package hallpointer.address.commons.util;

import java.io.IOException;
import java.nio.file.Files;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/seedu/address/commons/util/JsonUtil.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.util;
package hallpointer.address.commons.util;

import static java.util.Objects.requireNonNull;

Expand All @@ -20,8 +20,8 @@
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import seedu.address.commons.core.LogsCenter;
import seedu.address.commons.exceptions.DataLoadingException;
import hallpointer.address.commons.core.LogsCenter;
import hallpointer.address.commons.exceptions.DataLoadingException;

/**
* Converts a Java object instance to JSON and vice versa
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/commons/util/StringUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package seedu.address.commons.util;
package hallpointer.address.commons.util;

import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
import static hallpointer.address.commons.util.AppUtil.checkArgument;

import java.io.PrintWriter;
import java.io.StringWriter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.address.commons.util;
package hallpointer.address.commons.util;

/**
* Builds a string representation of an object that is suitable as the return value of {@link Object#toString()}.
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/seedu/address/logic/Logic.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package seedu.address.logic;
package hallpointer.address.logic;

import java.nio.file.Path;

import javafx.collections.ObservableList;
import seedu.address.commons.core.GuiSettings;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.ReadOnlyAddressBook;
import seedu.address.model.person.Person;
import hallpointer.address.commons.core.GuiSettings;
import hallpointer.address.logic.commands.CommandResult;
import hallpointer.address.logic.commands.exceptions.CommandException;
import hallpointer.address.logic.parser.exceptions.ParseException;
import hallpointer.address.model.ReadOnlyAddressBook;
import hallpointer.address.model.person.Person;

/**
* API of the Logic component
Expand All @@ -26,7 +26,7 @@ public interface Logic {
/**
* Returns the AddressBook.
*
* @see seedu.address.model.Model#getAddressBook()
* @see hallpointer.address.model.Model#getAddressBook()
*/
ReadOnlyAddressBook getAddressBook();

Expand Down
24 changes: 12 additions & 12 deletions src/main/java/seedu/address/logic/LogicManager.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package seedu.address.logic;
package hallpointer.address.logic;

import java.io.IOException;
import java.nio.file.AccessDeniedException;
import java.nio.file.Path;
import java.util.logging.Logger;

import javafx.collections.ObservableList;
import seedu.address.commons.core.GuiSettings;
import seedu.address.commons.core.LogsCenter;
import seedu.address.logic.commands.Command;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.logic.parser.AddressBookParser;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.Model;
import seedu.address.model.ReadOnlyAddressBook;
import seedu.address.model.person.Person;
import seedu.address.storage.Storage;
import hallpointer.address.commons.core.GuiSettings;
import hallpointer.address.commons.core.LogsCenter;
import hallpointer.address.logic.commands.Command;
import hallpointer.address.logic.commands.CommandResult;
import hallpointer.address.logic.commands.exceptions.CommandException;
import hallpointer.address.logic.parser.AddressBookParser;
import hallpointer.address.logic.parser.exceptions.ParseException;
import hallpointer.address.model.Model;
import hallpointer.address.model.ReadOnlyAddressBook;
import hallpointer.address.model.person.Person;
import hallpointer.address.storage.Storage;

/**
* The main LogicManager of the app.
Expand Down
Loading

0 comments on commit 2fdad69

Please sign in to comment.