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

Examples of org.pentaho.reporting.engine.classic.core.designtime.DataSourcePlugin


    assertTrue(ClassicEngineBoot.getInstance().getPackageManager().isModuleAvailable(OpenERPDataSourceModule.class.getName()));
  }

  public void testEditorRegistered()
  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(OpenERPDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new OpenERPDataFactory()));
  }
View Full Code Here


    assertTrue(ClassicEngineBoot.getInstance().getPackageManager().isModuleAvailable(ExternalDataSourceModule.class.getName()));
  }

  public void testEditorRegistered()
  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(ExternalDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

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

    assertTrue(ClassicEngineBoot.getInstance().getPackageManager().isModuleAvailable(KettleDataSourceModule.class.getName()));
  }

  public void testEditorRegistered()
  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(KettleDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new KettleDataFactory()));
  }
View Full Code Here

    assertTrue(ClassicEngineBoot.getInstance().getPackageManager().isModuleAvailable(CdaDataSourceModule.class.getName()));
  }

  public void testEditorRegistered()
  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(CdaDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new CdaDataFactory()));
  }
View Full Code Here

    assertTrue(ClassicEngineBoot.getInstance().getPackageManager().isModuleAvailable(ReflectionDataSourceModule.class.getName()));
  }

  public void testEditorRegistered()
  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(NamedStaticDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new NamedStaticDataFactory()));
  }
View Full Code Here

    assertTrue(editor.canHandle(new NamedStaticDataFactory()));
  }

  public void testEditorRegistered2()
  {
    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

    if (metadata.isEditable() == false)
    {
      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());

      final ReportDesignerDesignTimeContext designTimeContext = new ReportDesignerDesignTimeContext(getReportDesignerContext());
      final DataFactory editedDataFactory = dataSourcePlugin.performEdit(designTimeContext, dataFactory, queryName);
      if (editedDataFactory == null)
      {
        return;
      }
View Full Code Here

      putValue(Action.SMALL_ICON, dataSourcePlugin.getIcon(Locale.getDefault(), BeanInfo.ICON_COLOR_32x32));
    }

    public void actionPerformed(final ActionEvent e)
    {
      final DataSourcePlugin editor = dataSourcePlugin.createEditor();
      if (editor == null)
      {
        return;
      }

      final DataFactory dataFactory = editor.performEdit
          (new ParameterEditorDesignTimeContext(), null, null);
      if (dataFactory == null)
      {
        return;
      }
View Full Code Here

      if (idx == -1)
      {
        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)
        {
          return;
        }
View Full Code Here

    {
      return;
    }

    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)
      {
        return;
      }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.designtime.DataSourcePlugin

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.