Package org.pentaho.reporting.designer.core.editor.expressions

Examples of org.pentaho.reporting.designer.core.editor.expressions.ExpressionChooserDialog$AddAction


      return;
    }

    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final ExpressionChooserDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new ExpressionChooserDialog((JDialog) window);
    }
    else if (window instanceof JFrame)
    {
      dialog = new ExpressionChooserDialog((JFrame) window);
    }
    else
    {
      dialog = new ExpressionChooserDialog();
    }

    final Expression expression = dialog.performSelect();
    if (expression == null)
    {
      return;
    }
    final AbstractReportDefinition definition = activeContext.getReportDefinition();
View Full Code Here


      return;
    }

    final Component parent = getReportDesignerContext().getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    final ExpressionChooserDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new ExpressionChooserDialog((JDialog) window);
    }
    else if (window instanceof JFrame)
    {
      dialog = new ExpressionChooserDialog((JFrame) window);
    }
    else
    {
      dialog = new ExpressionChooserDialog();
    }

    dialog.pack();
    SwingUtil.centerDialogInParent(dialog);
    final Expression expression = dialog.performSelect();
    if (expression == null)
    {
      return;
    }
    final AbstractReportDefinition definition = activeContext.getReportDefinition();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.editor.expressions.ExpressionChooserDialog$AddAction

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.