public void createActions(DialogComponentProvider provider) {
		DockingAction terminateCheckoutAction =
			new DockingAction("Terminate Checkout", "Checkouts Panel", false) {
				@Override
				public void actionPerformed(ActionContext context) {

					CheckoutsActionContext checkoutsContext = (CheckoutsActionContext) context;
					int[] rows = checkoutsContext.getSelectedRows();
					terminateCheckout(rows);
				}

				@Override
				public boolean isEnabledForContext(ActionContext context) {

					// user will be null for private projects with local versioning
					if (user != null && !user.isAdmin()) {
						return false;
					}

					if (!(context instanceof CheckoutsActionContext)) {
						return false;
					}

					CheckoutsActionContext checkoutsContext = (CheckoutsActionContext) context;
					int[] rows = checkoutsContext.getSelectedRows();
					return rows.length > 0;
				}
			};
		terminateCheckoutAction.setDescription("Terminates the selected Checkout");
		terminateCheckoutAction
				.setPopupMenuData(new MenuData(new String[] { "Terminate Checkout" }, "AAA"));

		provider.addAction(terminateCheckoutAction);
	}
Constructor
@param parent parent dialog
@param tool tool to get project data for adding a listener
@param user user that is logged in
@param domainFile domain file to view checkouts
@param checkouts the checkouts to show
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/CheckoutsPanel.java