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

Examples of org.pentaho.reporting.designer.core.editor.metadata.DocumentMetaDataDialog


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

    try
    {
      final MasterReport report = activeContext.getContextRoot();
      final DocumentBundle bundle = report.getBundle();
      final DocumentMetaData oldMetaData = (DocumentMetaData) bundle.getMetaData().clone();
      final DocumentMetaData result = dialog.performEdit(oldMetaData,
          report.getResourceManager(),
          report.getDefinitionSource());

      if (result == null)
      {
View Full Code Here


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

    SwingUtil.centerDialogInParent(dialog);
    try
    {
      final MasterReport report = activeContext.getMasterReportElement();
      final DocumentBundle bundle = report.getBundle();
      final DocumentMetaData oldMetaData = (DocumentMetaData) bundle.getMetaData().clone();
      final DocumentMetaData result = dialog.performEdit(oldMetaData,
          report.getResourceManager(),
          report.getDefinitionSource());

      if (result == null)
      {
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.editor.metadata.DocumentMetaDataDialog

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.