Package org.jamesii.gui.application.action

Examples of org.jamesii.gui.application.action.ToggleAction


            }
          }
        };

    IAction flatAction =
        new ToggleAction("org.jamesii.logview.toggle", "Flat",
            IconManager.getIcon(IconIdentifier.FLAT_SMALL),
            new String[] { "?last" }, null, null, this) {

          /**
           * The flat icon.
           */
          @SuppressWarnings("unused")
          private final Icon flatIcon = IconManager
              .getIcon(IconIdentifier.FLAT_SMALL);

          /**
           * The hierarchical icon.
           */
          @SuppressWarnings("unused")
          private final Icon hierarchicalIcon = IconManager
              .getIcon(IconIdentifier.HIERARCHICAL_SMALL);

          @Override
          protected void toggleChanged(boolean previousState) {
            /*
             * model.setFlat(!previousState); if (previousState) {
             * this.setLabel("Flat"); this.setIcon(flatIcon); } else {
             * this.setLabel("Hierarchical"); this.setIcon(hierarchicalIcon); }
             */

          }
        };

    flatAction.setEnabled(false);

    Icon exceptionIcon = null;
    exceptionIcon = IconManager.getIcon(IconIdentifier.ERROR_SMALL, null);

    final IAction showThrownAction =
View Full Code Here


    actions.add(new ActionSet("org.jamesii.laf", "Change Look and Feel",
        "org.jamesii.menu.main/org.jamesii.edit?after=org.jamesii.preferences",
        null));

    for (final LookAndFeelInfo info : LafManager.getLookAndFeels()) {
      ToggleAction action =
          new LafChooseAction(
              "org.jamesii.laf." + info.getClassName(),
              null,
              new String[] { "org.jamesii.menu.main/org.jamesii.edit/org.jamesii.laf" },
              info, null);
View Full Code Here

TOP

Related Classes of org.jamesii.gui.application.action.ToggleAction

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.