Skip to content

Commit

Permalink
Task#463 Update of the BeanDisciplineTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ngat_di authored and ngat_di committed Oct 11, 2023
1 parent 4049a2b commit e4c5a4a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public void testGetAndSet() {

// Create an expected list of users
EList<String> expectedUsers = new BasicEList<>();
expectedUsers.add(USER);
assertEquals(expectedUsers, beanDiscipline.getUsers());
expectedUsers.add(USER);

beanDiscipline.addUser(USER);
// Check if the actualUsers list contains the added user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,27 @@
import org.eclipse.swt.widgets.Text;

/**
* CustomDialog class extends the Dialog class to create a custom dialog.
* Allows user interaction to modify a list of users.
* CustomDialog is a custom dialog that extends the Dialog class, allowing user interaction to modify a list of users.
* The dialog provides options to add, remove, update, and rearrange users in the list. It also notifies the parent application
* of user changes using a callback mechanism.
*
* This dialog is primarily used to interact with and manage a list of features displayed to the user, enabling them to make necessary modifications.
*
* This dialog includes the following features:
* - Adding a new feature to the list
* - Removing an existing feature from the list
* - Updating an existing feature in the list
* - Moving a feature up or down in the list
*
* The dialog is configured to have a specified size and is centered on the screen for user convenience.
*
* Usage:
* 1. Create an instance of CustomDialog, providing the parent shell, initial features to display, and a callback for feature updates.
* 2. Open the dialog using the open() method.
*
* @author ngat_di
*/

public class CustomDialog extends Dialog {

// Fields
Expand Down

0 comments on commit e4c5a4a

Please sign in to comment.