Package org.eclipse.wst.xml.core.internal.catalog

Examples of org.eclipse.wst.xml.core.internal.catalog.CatalogSet


   *            the parent for the preference page
   */
  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


    if (rc == Window.OK) {
      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

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

  }
View Full Code Here

          userCatalog = referencedCatalog;
        }
      }
    }

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

  public boolean performFinish() {
    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

    return location;
  }

  public ICatalog getDefaultXMLCatalog() {
    if (catalogSet == null) {
      catalogSet = new CatalogSet();

      defaultCatalogFileStateLocation = getPluginStateLocation(Catalog.DEFAULT_CATALOG_FILE);

      catalogSet.putCatalogPersistenceLocation(DEFAULT_CATALOG_ID, defaultCatalogFileStateLocation);
      catalogSet.putCatalogPersistenceLocation(SYSTEM_CATALOG_ID, getPluginStateLocation(Catalog.SYSTEM_CATALOG_FILE));
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.catalog.CatalogSet

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.