Examples of canHandle()


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

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

    assertTrue(editor.canHandle(new DenormalizedMDXDataFactory(new JndiConnectionProvider())));
  }

  public void testEditorRegistered3()
  {
    DataSourcePlugin editor =
View Full Code Here

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

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

    assertTrue(editor.canHandle(new BandedMDXDataFactory(new JndiConnectionProvider())));
  }

}
View Full Code Here

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

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

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

}
View Full Code Here

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

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

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

}
View Full Code Here

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

    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

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

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

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

}
View Full Code Here

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

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

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

}
View Full Code Here

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

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

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

  public void testEditorRegistered2()
  {
    DataSourcePlugin editor =
View Full Code Here

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

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

      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
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.