Examples of lookupOrCreateCatalog()


Examples of org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog()

   */
  protected Control createContents(Composite parent) {
    // we create a working copy of the 'User Settings' for the Catalog
    // that we can modify
    CatalogSet tempCatalogSet = new CatalogSet();
    workingUserCatalog = tempCatalogSet.lookupOrCreateCatalog("working", ""); //$NON-NLS-1$ //$NON-NLS-2$

    // TODO: add entries from the nested catalogs as well
    workingUserCatalog.addEntriesFromCatalog(userCatalog);
    workingUserCatalog.addListener(this);
    noDefaultAndApplyButton();
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog()

      IFile file = dialog.getFile();
      if (file != null) {
        String fileName = file.getLocation().toFile().toURI().toString();
        try {
          CatalogSet tempResourceSet = new CatalogSet();
          ICatalog newCatalog = tempResourceSet.lookupOrCreateCatalog("temp", fileName); //$NON-NLS-1$
          workingUserCatalog.addEntriesFromCatalog(newCatalog);
        }
        catch (Exception e) {
          // TODO... give error message
        }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog()

          userCatalog = referencedCatalog;
        }
      }
    }
    CatalogSet tempCatalogSet = new CatalogSet();
    workingUserCatalog = tempCatalogSet.lookupOrCreateCatalog("working", ""); //$NON-NLS-1$ //$NON-NLS-2$
    workingUserCatalog.addEntriesFromCatalog(userCatalog);

  }

  public boolean performFinish() {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog()

        }
      }
    }

    CatalogSet tempCatalogSet = new CatalogSet();
    workingUserCatalog = tempCatalogSet.lookupOrCreateCatalog("working", ""); //$NON-NLS-1$ //$NON-NLS-2$
    workingUserCatalog.addEntriesFromCatalog(userCatalog);
  }
 
  public boolean canFinish() {
    return importPage.isPageComplete();
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog()

    IFile file = importPage.getFile();
    if (file != null) {
      String fileName = file.getLocation().toFile().toURI().toString();
      try {
        CatalogSet tempResourceSet = new CatalogSet();
        ICatalog newCatalog = tempResourceSet.lookupOrCreateCatalog("temp", fileName); //$NON-NLS-1$
       
        workingUserCatalog.addEntriesFromCatalog(newCatalog);
        userCatalog.clear();
        userCatalog.addEntriesFromCatalog(workingUserCatalog);
        userCatalog.save();
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.