Package org.jwall.app

Examples of org.jwall.app.Action


  public PolicyEditorView(Application app) {
    super(app);
    setLayout(new BorderLayout());

    actions.add(new Action(this, Action.NEW_FILE, "File/New", 10.0d, true,
        true, KeyStroke.getKeyStroke(KeyEvent.VK_N, Toolkit
            .getDefaultToolkit().getMenuShortcutKeyMask())));
    actions.add(new Action(this, Action.LOAD_FILE, "File/Open", 20.0d,
        true, true, KeyStroke.getKeyStroke(KeyEvent.VK_O, Toolkit
            .getDefaultToolkit().getMenuShortcutKeyMask())));

    actions.add(new Action(this, Action.SAVE_FILE, "File/Save", 30.0d,
        true, false, KeyStroke.getKeyStroke(KeyEvent.VK_S, Toolkit
            .getDefaultToolkit().getMenuShortcutKeyMask())));
    actions.add(new Action(this, Action.SAVE_AS_FILE, "File/Save As",
        40.0d, false, false));

    actions.add(new Action(this, CompilerAction.COMPILE_PROFILE,
        "Policy/Compile", 10.0d, true, file != null));

    rtview = new ResourceTreeView();
    ctview = new ClassTreeView();
    ptListView = new ParameterTypeListView();
View Full Code Here


    policyEditorView = new PolicyEditorView(this);

    for (Action act : policyEditorView.getActions())
      registerAction(act);

    registerAction(new Action(this, Action.QUIT, "File/Quit", 100.0d,
        false, true, KeyStroke.getKeyStroke(KeyEvent.VK_Q, Toolkit
            .getDefaultToolkit().getMenuShortcutKeyMask())));// ActionEvent.CTRL_MASK
                                      // )
                                      // )
                                      // );
    registerAction(new Action(this, Action.HELP, "Help/Help", 1.0d, false,
        true, KeyStroke.getKeyStroke("F1")));
    registerAction(new Action(this, Action.ABOUT, "Help/About", 2.0d,
        false, true));

    win.setVisible(true);
    win.setView(policyEditorView);
    win.getContentPane().validate();
View Full Code Here

TOP

Related Classes of org.jwall.app.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.