Package org.tuba.test.util

Examples of org.tuba.test.util.EclipseFile


  @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$
    XMLReference reference = new XMLReference(provider);
View Full Code Here


  @Test
  public void testWriter() throws NOAException, OfficeApplicationException {
    ITextDocument document = (ITextDocument) ooApplication
        .constructNewDocument(IDocument.WRITER);

    OODocument ooDocument = new OODocument(document, new EclipseFile(
        "tmp file")); //$NON-NLS-1$

    String tag = "<aTag/>"; //$NON-NLS-1$
    ConnectorMaster.getInstance().insertTagsIntoDocument(tag, ooDocument);
View Full Code Here

  public void testImpress() throws NOAException, OfficeApplicationException,
      PresentationException {
    IPresentationDocument document = (IPresentationDocument) ooApplication
        .constructNewDocument(IDocument.IMPRESS);

    OODocument ooDocument = new OODocument(document, new EclipseFile(
        "tmp file")); //$NON-NLS-1$

    String tag = "<aTag/>"; //$NON-NLS-1$
    ConnectorMaster.getInstance().insertTagsIntoDocument(tag, ooDocument);
View Full Code Here

TOP

Related Classes of org.tuba.test.util.EclipseFile

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.