Examples of loadDocument()


Examples of org.teiid.query.mapping.xml.MappingLoader.loadDocument()

        if ( istream == null ) {
            throw new IllegalStateException( "File " + filename //$NON-NLS-1$
                + " is not in the application's classpath." ); //$NON-NLS-1$
        }
        MappingLoader loader= new MappingLoader();
        return loader.loadDocument(istream);
    }


    /**
     * <p>Utility to get an input stream to a file in the app's classpath. </p>
View Full Code Here

Examples of org.teiid.query.mapping.xml.MappingLoader.loadDocument()

   
            byte[] bytes = xml.getBytes();
   
            InputStream istream = new ByteArrayInputStream (bytes);
           
            return reader.loadDocument(istream);
    }
           
    /**
     * test of the adjustment XMLPlanner must do to the way
     * namespace declarations are constructed by the modeler
View Full Code Here

Examples of org.teiid.query.mapping.xml.MappingLoader.loadDocument()

    private MappingDocument loadMappingDocument(String xml)
        throws MappingException {
        MappingLoader reader = new MappingLoader();
        byte[] bytes = xml.getBytes();
        InputStream istream = new ByteArrayInputStream(bytes);
        return reader.loadDocument(istream);
    }   
   
    private String saveMappingDocument(MappingDocument doc)
        throws IOException {
        StringWriter sw = new StringWriter();
View Full Code Here

Examples of org.tuba.plugins.IEditorConnector.loadDocument()

    IEditorConnector editorConnector = EditorConnectorManager.getInstance()
        .getEditorConnectorForExtension(file.getFileExtension());
    if (editorConnector == null)
      return null;

    ITutorialDocument document = editorConnector.loadDocument(file);

    if (document == null)
      return null;

    return new Tuple<ITutorialDocument, IEditorConnector>(document,
View Full Code Here

Examples of org.tuba.test.util.OOApplication.loadDocument()

  @Test
  public void generateArtefactTest() throws OfficeApplicationException,
      NOAException, ParseException, IOException {
    OOApplication ooApplication = new OOApplication();
    IDocument document = ooApplication.loadDocument("test/sample.odt"); //$NON-NLS-1$
    OODocument ooDocument = new OODocument(document, new EclipseFile(
        "test/sample.odt")); //$NON-NLS-1$

    XMLProvider provider = new XMLProvider(
        "org.some.provider", "some.artefact"); //$NON-NLS-1$//$NON-NLS-2$
View Full Code Here

Examples of util.SOfficeFactory.loadDocument()

        // get a soffice factory object
        SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());

        try {
            log.println( "creating a chartdocument" );
            XComponent xComp = SOF.loadDocument(
                             utils.getFullTestURL("TransparencyChart.sxs"));
            xChartDoc = (XChartDocument)
                UnoRuntime.queryInterface(XChartDocument.class,xComp);
        } catch (com.sun.star.uno.Exception e) {
            // Some exception occures.FAILED
View Full Code Here

Examples of util.SOfficeFactory.loadDocument()

        // get a soffice factory object
        SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());

        try {
            log.println( "creating a chartdocument" );
            XComponent xComp = SOF.loadDocument(
                             utils.getFullTestURL("TransparencyChart.sxs"));
            xChartDoc = (XChartDocument)
                UnoRuntime.queryInterface(XChartDocument.class,xComp);
        } catch (com.sun.star.uno.Exception e) {
            // Some exception occures.FAILED
View Full Code Here

Examples of util.SOfficeFactory.loadDocument()

            String docName = "calcshapes.sxc";
            log.println("Loading a spreadsheetdocument.");
            String url = utils.getFullURL(
                        (String)param.get("TestDocumentPath") + "/" + docName);
            log.println("loading document '" + url + "'");
            xComp = SOF.loadDocument(url);

        } catch (com.sun.star.uno.Exception e) {
            failed(e.getMessage());
            return;
        }
View Full Code Here

Examples of util.SOfficeFactory.loadDocument()

     
            XMultiServiceFactory xMSF = tParam.getMSF();
            SOfficeFactory SOF = null;
            SOF = SOfficeFactory.getFactory( xMSF );
            String docPath = util.utils.getFullTestURL(doc);
            XComponent doc = SOF.loadDocument( docPath );
            XModel model = ( XModel ) UnoRuntime.queryInterface( XModel.class,
                doc );
            oObj  =
                (XInterface)xMSF.createInstanceWithArguments( "drafts.com.sun.star.script.framework.provider.FunctionProvider", new Object[]{ model } );
            provider = ( XFunctionProvider )UnoRuntime.queryInterface( XFunctionProvider.class, oObj );          
View Full Code Here

Examples of util.SOfficeFactory.loadDocument()

     
            XMultiServiceFactory xMSF = tParam.getMSF();
            SOfficeFactory SOF = null;
            SOF = SOfficeFactory.getFactory( xMSF );
            String docPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
            XComponent doc = SOF.loadDocument( docPath );
            XModel model = ( XModel ) UnoRuntime.queryInterface( XModel.class,
                doc );
            XFrame frame = model.getCurrentController().getFrame();
            oObj = ( XInterface )xMSF.createInstanceWithArguments( "com.sun.star.comp.ScriptProtocolHandler", new Object[] { frame } );
           
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.