Examples of actionPerformed()


Examples of org.pentaho.reporting.designer.core.actions.elements.EditCrosstabAction.actionPerformed()

    CrosstabGroup crosstabGroup = new CrosstabGroup();

    EditCrosstabAction action = new NonEditingCrosstabAction(crosstabGroup);
    action.setReportDesignerContext(rdc);
    action.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "Edit"));
    Assert.assertFalse(rdc.getActiveContext().getUndo().isRedoPossible());
    Assert.assertTrue(rdc.getActiveContext().getUndo().isUndoPossible());
    Assert.assertEquals(crosstabGroup.getObjectID(), element.getRootGroup().getBody().getGroup().getObjectID());

    rdc.getActiveContext().getUndo().undo(rdc.getActiveContext());
View Full Code Here

Examples of org.pentaho.reporting.designer.core.actions.elements.InsertCrosstabGroupAction.actionPerformed()

        subReport.setQuery(queryName);

        // Invoke Crosstab dialog
        final InsertCrosstabGroupAction crosstabAction = new InsertCrosstabGroupAction();
        crosstabAction.setReportDesignerContext(designerContext);
        crosstabAction.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, ""));
      }

      dragContext.getRenderContext().getSelectionModel().setSelectedElements(new Object[]{subReport});
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.actions.global.DeleteAction.actionPerformed()

        // Delete data-source from structure panel
        reportDesignerContext.getActiveContext().getSelectionModel().setSelectedElements(new Object[]{theSelectedDataFactory});

        final DeleteAction deleteAction = new DeleteAction();
        deleteAction.setReportDesignerContext(reportDesignerContext);
        deleteAction.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, ""));

        // Delete data-source from the Select data-source dialog
        availableDataSourcesModel.remove(theSelectedDataFactory);
      }
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.actions.global.QuitAction.actionPerformed()

     */
    public void windowClosing(final WindowEvent e)
    {
      final QuitAction quitAction = new QuitAction();
      quitAction.setReportDesignerContext(context);
      quitAction.actionPerformed(new ActionEvent(this, 0, "quit", 0)); // NON-NLS
    }
  }

  private class ReportTabActivationHandler implements ChangeListener, PropertyChangeListener
  {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.actions.report.CloseReportAction.actionPerformed()

      return;
    }

    final CloseReportAction cra = new CloseReportAction(tab);
    cra.setReportDesignerContext(getContext());
    cra.actionPerformed(e);
  }

  public String getTitle()
  {
    return label.getText();
View Full Code Here

Examples of org.pentaho.reporting.designer.core.actions.report.EditQueryAction.actionPerformed()

      // Edit data-source from structure panel
      reportDesignerContext.getActiveContext().getSelectionModel().setSelectedElements(new Object[]{dataFactory});

      final EditQueryAction editQueryAction = new EditQueryAction();
      editQueryAction.setReportDesignerContext(reportDesignerContext);
      editQueryAction.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, ""));

      final int idx = availableDataSourcesModel.indexOf(dataFactory);
      if (idx == -1)
      {
        throw new IllegalStateException("DataSource Model is out of sync with the GUI");
View Full Code Here

Examples of org.sleuthkit.autopsy.directorytree.ExternalViewerAction.actionPerformed()

                final ExternalViewerAction externalViewerAction = new ExternalViewerAction("Open in External Viewer", new FileNode(getFile().getAbstractFile()));

                externalViewer.setDisable(externalViewerAction.isEnabled() == false);
                externalViewer.setOnAction((ActionEvent t) -> {
                    SwingUtilities.invokeLater(() -> {
                        externalViewerAction.actionPerformed(null);
                    });
                });
                menuItems.add(externalViewer);

                Collection<? extends ContextMenuActionsProvider> menuProviders = Lookup.getDefault().lookupAll(ContextMenuActionsProvider.class);
View Full Code Here

Examples of org.sodbeans.io.CommandLineListener.actionPerformed()

    private void throwEventToListeners(CommandLineEvent event) {
        Iterator<CommandLineListener> it = this.listeners.iterator();
        while(it.hasNext()) {
            CommandLineListener listener = it.next();
            listener.actionPerformed(event);
        }
    }

    public void setSpeechBlocking(boolean block) {
        this.speechBlock = block;
View Full Code Here

Examples of org.woped.editor.action.WoPeDAction.actionPerformed()

    }

    public void quit()
    {
        WoPeDAction action = ActionFactory.getStaticAction(ActionFactory.ACTIONID_EXIT);
        action.actionPerformed(new ViewEvent(this, AbstractViewEvent.VIEWEVENTTYPE_GUI, AbstractViewEvent.EXIT));
        setExtendedState(NORMAL);
    }

    public Component getComponent()
    {
View Full Code Here

Examples of org.woped.qualanalysis.simulation.TokenGameBarListener.actionPerformed()

          // Adaptor from view event produced by toolbar button to the legacy
          // action id of the token game bar controller. Generate "listener" for these
          // and forward to the token game bar controller
          int tgbAction = createTgbActionFromViewEvent(event.getOrder());
          TokenGameBarListener listener = new TokenGameBarListener(tgbAction,tgbController);
          listener.actionPerformed(null);
        }
        else
          LoggerManager.error(Constants.EDITOR_LOGGER,
              "Tokengame controls used while tokengame was inactive");
        break;       
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.