Examples of ActionFactory


Examples of org.apache.wicket.security.actions.ActionFactory

    protected void onDestroy()
    {
      StrategyFactory factory = getStrategyFactory();
      if (factory != null)
        factory.destroy();
      ActionFactory factory2 = getActionFactory();
      if (factory2 != null)
        factory2.destroy();
    }
View Full Code Here

Examples of org.eclipse.ui.actions.ActionFactory

  @Override
  protected void makeActions(IWorkbenchWindow window) {

    this.window = window;
    ActionFactory actionsToCreate[] = new ActionFactory[] { ActionFactory.NEW_WIZARD_DROP_DOWN,
        ActionFactory.NEW,
        ActionFactory.IMPORT,
        ActionFactory.EXPORT,
        ActionFactory.SAVE,
        ActionFactory.SAVE_ALL,
View Full Code Here

Examples of org.eclipse.ui.actions.ActionFactory

     * Set the cut, copy and paste actions into the global action handler.
     */
    private void setupActions() {
        Iterator actionKeys = actionMap.keySet().iterator();
        while (actionKeys.hasNext()) {
            ActionFactory key = (ActionFactory) actionKeys.next();
            IAction action = (IAction) actionMap.get(key);
            if (action != null) {
                IAction origAction =
                        actionBars.getGlobalActionHandler(key.getId());
                origActionMap.put(key, origAction);
                actionBars.setGlobalActionHandler(key.getId(), action);
            }
        }

        actionBars.updateActionBars();
    }
View Full Code Here

Examples of org.eclipse.ui.actions.ActionFactory

     * Restore the original global action handlers for cut, copy and paste.
     */
    private void restoreActions() {
        Iterator actionKeys = origActionMap.keySet().iterator();
        while (actionKeys.hasNext()) {
            ActionFactory key = (ActionFactory) actionKeys.next();
            IAction action = (IAction) origActionMap.get(key);
            if (action != null) {
                actionBars.setGlobalActionHandler(key.getId(), action);
            }
        }
        actionBars.updateActionBars();
    }
View Full Code Here

Examples of org.jfree.report.modules.gui.swing.common.ActionFactory

  public static ActionFactory createActionFactory(Configuration config)
  {
    final String factoryClass = config.getConfigProperty(ACTION_FACTORY_CONFIG_KEY);
    Object maybeFactory = ObjectUtilities.loadAndInstantiate
        (factoryClass, PreviewPane.class, ActionFactory.class);
    ActionFactory actionFactory;
    if (maybeFactory != null)
    {
      actionFactory = (ActionFactory) maybeFactory;
    }
    else
View Full Code Here

Examples of org.jfree.report.modules.gui.swing.common.ActionFactory

  {
    HashMap actions = new HashMap();

    final Configuration configuration = swingGuiContext.getConfiguration();
    final ActionCategory[] categories = loadCategories(swingGuiContext);
    final ActionFactory factory = PreviewPaneUtilities.createActionFactory(configuration);

    for (int i = 0; i < categories.length; i++)
    {
      final ActionCategory category = categories[i];
      actions.put(category,
          factory.getActions(swingGuiContext, category.getName()));
    }
    return actions;
  }
View Full Code Here

Examples of org.jfree.report.modules.gui.swing.common.ActionFactory

  public static ActionFactory createActionFactory(final Configuration config)
  {
    final String factoryClass = config.getConfigProperty(ACTION_FACTORY_CONFIG_KEY);
    final Object maybeFactory = ObjectUtilities.loadAndInstantiate
        (factoryClass, PreviewPane.class, ActionFactory.class);
    final ActionFactory actionFactory;
    if (maybeFactory != null)
    {
      actionFactory = (ActionFactory) maybeFactory;
    }
    else
View Full Code Here

Examples of org.jfree.report.modules.gui.swing.common.ActionFactory

  {
    final HashMap actions = new HashMap();

    final Configuration configuration = swingGuiContext.getConfiguration();
    final ActionCategory[] categories = loadCategories(swingGuiContext);
    final ActionFactory factory = PreviewPaneUtilities.createActionFactory(configuration);

    for (int i = 0; i < categories.length; i++)
    {
      final ActionCategory category = categories[i];
      actions.put(category,
          factory.getActions(swingGuiContext, category.getName()));
    }
    return actions;
  }
View Full Code Here

Examples of org.jfree.report.modules.gui.swing.common.ActionFactory

  public static ActionFactory createActionFactory(Configuration config)
  {
    final String factoryClass = config.getConfigProperty(ACTION_FACTORY_CONFIG_KEY);
    Object maybeFactory = ObjectUtilities.loadAndInstantiate
        (factoryClass, PreviewPane.class, ActionFactory.class);
    ActionFactory actionFactory;
    if (maybeFactory != null)
    {
      actionFactory = (ActionFactory) maybeFactory;
    }
    else
View Full Code Here

Examples of org.jfree.report.modules.gui.swing.common.ActionFactory

  {
    HashMap actions = new HashMap();

    final Configuration configuration = swingGuiContext.getConfiguration();
    final ActionCategory[] categories = loadCategories(swingGuiContext);
    final ActionFactory factory = PreviewPaneUtilities.createActionFactory(configuration);

    for (int i = 0; i < categories.length; i++)
    {
      final ActionCategory category = categories[i];
      actions.put(category,
          factory.getActions(swingGuiContext, category.getName()));
    }
    return actions;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.