Package org.pentaho.reporting.engine.classic.core.designtime

Examples of org.pentaho.reporting.engine.classic.core.designtime.DataSourcePlugin.canHandle()


    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(StaticDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    // this editor only creates, never modifies
    assertFalse(editor.canHandle(new ExternalDataFactory()));
  }

}
View Full Code Here


      return;
    }

    final DataSourcePlugin dataSourcePlugin = metadata.createEditor();
    final DataFactory storedFactory = dataFactory.derive();
    if (dataSourcePlugin.canHandle(dataFactory))
    {
      final ReportRenderContext activeContext = getActiveContext();
      final AbstractReportDefinition report = activeContext.getReportDefinition();
      final boolean editingActiveQuery = contains(report.getQuery(), dataFactory.getQueryNames());
View Full Code Here

      {
        throw new IllegalStateException("DataSource Model is out of sync with the GUI");
      }

      final DataSourcePlugin dataSourcePlugin = metadata.createEditor();
      if (dataSourcePlugin.canHandle(dataFactory))
      {
        final DataFactory editedDataFactory = dataSourcePlugin.performEdit
            (new ParameterEditorDesignTimeContext(), dataFactory, null);
        if (editedDataFactory == null)
        {
View Full Code Here

    }

    final ReportRenderContext activeContext = getActiveContext();
    final DataSourcePlugin dataSourcePlugin = metadata.createEditor();
    final DataFactory storedFactory = dataFactory.derive();
    if (dataSourcePlugin.canHandle(dataFactory))
    {
      final DataFactory editedDataFactory = dataSourcePlugin.performEdit
          (new ReportDesignerDesignTimeContext(getReportDesignerContext()), dataFactory, null);
      if (editedDataFactory == null)
      {
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.