Package org.tuba.data.xml

Examples of org.tuba.data.xml.XMLProvider


    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);
    XMLArtefact artefact = ReferenceManager.getInstance().generateArtefact(
        ooDocument, reference);
    Assert.assertNotNull(artefact);
View Full Code Here


    artefact.setContext("test/"); //$NON-NLS-1$
    return artefact;
  }

  private XMLReference createReference() {
    XMLProvider provider = new XMLProvider(
        "providerID", "artefactID"); //$NON-NLS-1$//$NON-NLS-2$
    return new XMLReference(provider);
  }
View Full Code Here

      throws IntegrationException {
    boolean hasChanged = false;
    PluginManager pluginManager = PluginManager.getInstance();
    List<XMLArtefactOperation> operations = reference.getOperations();
   
    XMLProvider xmlProvider = reference.getProvider();
    if (xmlProvider == null) {
      // TODO externalize
      String message = "there is no provider"; //$NON-NLS-1$
      showError(message);
      throw new MissingProviderException();
    }
    String id = xmlProvider.getId();
    MetaProvider provider = pluginManager.getProvider(id);
    if (provider == null) {
      // TODO externalize
      String message = "can't insantiate provider '" + id + "'"; //$NON-NLS-1$ //$NON-NLS-2$
      showError(message);
View Full Code Here

    for (ArtefactLocation location : artefactLocations) {
      String providerID = location.getProviderID();
      String artefactID = location.getArtefactID();
      if (providerID == null || artefactID == null)
        continue;
      XMLProvider provider = new XMLProvider(providerID,
          artefactID);
      XMLReference reference = new XMLReference(provider);
      IntegrationDialog dialog = new IntegrationDialog(PlatformUI
          .getWorkbench().getActiveWorkbenchWindow().getShell(),
          document);
View Full Code Here

    for (ArtefactLocation location : artefactLocations) {
      String providerID = location.getProviderID();
      String artefactID = location.getArtefactID();
      if (providerID == null || artefactID == null)
        continue;
      XMLProvider provider = new XMLProvider(providerID, artefactID);
      XMLReference reference = new XMLReference(provider);
//      IntegrationDialog dialog = new IntegrationDialog();


//      for (MetaArtefactOperation operation : dialog.getOperations()) {
View Full Code Here

TOP

Related Classes of org.tuba.data.xml.XMLProvider

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.