<commit_before>/*
  $Log$
  Revision 1.4  1998/11/09 22:17:28  Giovanni
  Added two items to 'File' JADE menu; one shuts down the Remote
  Management Agent, whereas the othe closes the whole Agent Platform.

  Revision 1.3  1998/10/10 19:37:04  rimassa
  Imported a newer version of JADE GUI from Fabio.

  Revision 1.2  1998/10/04 18:01:41  rimassa
  Added a 'Log:' field to every source file.
*/

package jade.gui;

import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;
import com.sun.java.swing.border.*;

/**
 * The Menu of the GUI
 */
public class AMSMenu extends JMenuBar {

  public AMSMenu () {
    super();

    AMSAbstractAction act;

    JMenu menu = new JMenu ("File");
    JMenuItem tmp;
		
    act = new AddAgentPlatformAction();
    tmp = menu.add(act);
    tmp.setIcon(null);
		
    act = new OpenScriptFileAction();
    tmp = menu.add(act);
    tmp.setIcon(null);
    add(menu);

    tmp = new JMenuItem ("Execute Current Script");
    menu.add(tmp);

    act = new CloseRMAAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new ExitAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new ShutDownAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    add(menu);


    menu = new JMenu ("Actions");

    act = new StartNewAgentAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new StartAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new KillAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new SuspendAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new ResumeAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new PingAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new SnifferAction();<commit_msg>Minor changes to comply with KillAction() new constructor.<commit_after>/*
  $Log$
  Revision 1.5  1998/11/15 23:12:56  rimassa
  Minor changes to comply with KillAction() new constructor.

  Revision 1.4  1998/11/09 22:17:28  Giovanni
  Added two items to 'File' JADE menu; one shuts down the Remote
  Management Agent, whereas the othe closes the whole Agent Platform.

  Revision 1.3  1998/10/10 19:37:04  rimassa
  Imported a newer version of JADE GUI from Fabio.

  Revision 1.2  1998/10/04 18:01:41  rimassa
  Added a 'Log:' field to every source file.
*/

package jade.gui;

import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;
import com.sun.java.swing.border.*;

/**
 * The Menu of the GUI
 */
public class AMSMenu extends JMenuBar {

  public AMSMenu () {
    super();

    AMSAbstractAction act;

    JMenu menu = new JMenu ("File");
    JMenuItem tmp;
		
    act = new AddAgentPlatformAction();
    tmp = menu.add(act);
    tmp.setIcon(null);
		
    act = new OpenScriptFileAction();
    tmp = menu.add(act);
    tmp.setIcon(null);
    add(menu);

    tmp = new JMenuItem ("Execute Current Script");
    menu.add(tmp);

    act = new CloseRMAAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new ExitAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new ShutDownAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    add(menu);


    menu = new JMenu ("Actions");

    act = new StartNewAgentAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new StartAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new KillAction("Kill Selected Items");
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new SuspendAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new ResumeAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new PingAction();
    tmp = menu.add(act);
    tmp.setIcon(null);

    act = new SnifferAction();
{'fraction_non_alphanumeric': 0.13504908463783497, 'fraction_numerical': 0.029716105067657202, 'mean_word_length': 2.7737737737737738, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3918368', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1262, 'n_words': 361}