Examples of INextCatalog


Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

  {
    String result = null;
    INextCatalog[] nextCatalogs = getNextCatalogs();
    for (int i = 0; i < nextCatalogs.length; i++)
    {
      INextCatalog nextCatalog = nextCatalogs[i];
      ICatalog catalog = nextCatalog.getReferencedCatalog();
      if (catalog != null)
      {
        switch (entryType)
        {
        case ICatalogEntry.ENTRY_TYPE_PUBLIC:
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

      else if (object instanceof IRewriteEntry) {
        IRewriteEntry entry = (IRewriteEntry) object;
        result = entry.getStartString() + "[...] " + XMLCatalogMessages.UI_LABEL_ARROW + " " + entry.getRewritePrefix() + "[...]";
      }
      else if (object instanceof INextCatalog) {
        INextCatalog nextCatalog = (INextCatalog) object;
        // result = nextCatalog.getCatalogLocation();
        result = URIUtils.convertURIToLocation(nextCatalog.getCatalogLocation());
        if (nextCatalog.getCatalogLocation().startsWith("file:")) {
          result += " (" + XMLCatalogMessages.UI_LABEL_FILE_SYSTEM_RESOURCE + ")";
        }
        else if (nextCatalog.getCatalogLocation().startsWith("platform:")) {
          result += " (" + XMLCatalogMessages.UI_LABEL_PLATFORM_RESOURCE + ")";
        }
      }
      else if (object instanceof IDelegateCatalog) {
        IDelegateCatalog nextCatalog = (IDelegateCatalog) object;
        // result = nextCatalog.getCatalogLocation();
        result = nextCatalog.getStartString() + " " + XMLCatalogMessages.UI_LABEL_ARROW + " " + URIUtils.convertURIToLocation(nextCatalog.getCatalogLocation());
        if (nextCatalog.getCatalogLocation().startsWith("file:")) {
          result += " (" + XMLCatalogMessages.UI_LABEL_FILE_SYSTEM_RESOURCE + ")";
        }
        else if (nextCatalog.getCatalogLocation().startsWith("platform:")) {
          result += " (" + XMLCatalogMessages.UI_LABEL_PLATFORM_RESOURCE + ")";
        }
      }
      result = TextProcessor.process(result);
      return result != null ? result : object.toString();
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

  public XMLCatalogPreferencePage() {
    defaultCatalog = XMLCorePlugin.getDefault().getDefaultXMLCatalog();
    INextCatalog[] nextCatalogs = defaultCatalog.getNextCatalogs();
    for (int i = 0; i < nextCatalogs.length; i++) {
      INextCatalog catalog = nextCatalogs[i];
      ICatalog referencedCatalog = catalog.getReferencedCatalog();
      if (referencedCatalog != null) {
        if (XMLCorePlugin.SYSTEM_CATALOG_ID.equals(referencedCatalog.getId())) {
          systemCatalog = referencedCatalog;
        }
        else if (XMLCorePlugin.USER_CATALOG_ID.equals(referencedCatalog.getId())) {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

  {
    String result = null;
    INextCatalog[] nextCatalogs = getNextCatalogs();
    for (int i = 0; i < nextCatalogs.length; i++)
    {
      INextCatalog nextCatalog = nextCatalogs[i];
      ICatalog catalog = nextCatalog.getReferencedCatalog();
      if (catalog != null)
      {
        switch (entryType)
        {
        case ICatalogEntry.ENTRY_TYPE_PUBLIC:
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

    ImageDescriptor descriptor = XMLEditorPluginImageHelper.getInstance().getImageDescriptor(XMLEditorPluginImages.IMG_WIZBAN_GENERATEXML);
    setDefaultPageImageDescriptor(descriptor);
    ICatalog defaultCatalog = XMLCorePlugin.getDefault().getDefaultXMLCatalog();
    INextCatalog[] nextCatalogs = defaultCatalog.getNextCatalogs();
    for (int i = 0; i < nextCatalogs.length; i++) {
      INextCatalog catalog = nextCatalogs[i];
      ICatalog referencedCatalog = catalog.getReferencedCatalog();
      if (referencedCatalog != null) {
        if (XMLCorePlugin.USER_CATALOG_ID.equals(referencedCatalog.getId())) {
          userCatalog = referencedCatalog;
        }
      }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

    HashMap systemCatalogURIs = new HashMap();
    ICatalog systemCatalog = null;
    ICatalog defaultCatalog = XMLCorePlugin.getDefault().getDefaultXMLCatalog();
    INextCatalog[] nextCatalogs = defaultCatalog.getNextCatalogs();
    for (int i = 0; i < nextCatalogs.length; i++) {
      INextCatalog catalog = nextCatalogs[i];
      ICatalog referencedCatalog = catalog.getReferencedCatalog();
      if (referencedCatalog != null) {
        if (XMLCorePlugin.SYSTEM_CATALOG_ID.equals(referencedCatalog.getId())) {
          systemCatalog = referencedCatalog;
        }
      }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

    ImageDescriptor descriptor = XMLEditorPluginImageHelper.getInstance().getImageDescriptor(XMLEditorPluginImages.IMG_WIZBAN_GENERATEXML);
    setDefaultPageImageDescriptor(descriptor);
    ICatalog defaultCatalog = XMLCorePlugin.getDefault().getDefaultXMLCatalog();
    INextCatalog[] nextCatalogs = defaultCatalog.getNextCatalogs();
    for (int i = 0; i < nextCatalogs.length; i++) {
      INextCatalog catalog = nextCatalogs[i];
      ICatalog referencedCatalog = catalog.getReferencedCatalog();
      if (referencedCatalog != null) {
        if (XMLCorePlugin.USER_CATALOG_ID.equals(referencedCatalog.getId())) {
          userCatalog = referencedCatalog;
        }
      }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

      if (location == null || location.equals("")) //$NON-NLS-1$
      {
        Logger.log(Logger.ERROR, XMLCoreMessages.Catalog_next_catalog_location_uri_not_set);
        continue;
      }
      INextCatalog nextCatalog = new NextCatalog();
    String resolvedPath = resolvePath(location);
      nextCatalog.setCatalogLocation(resolvedPath);
    String id = childElement.getAttribute(OASISCatalogConstants.ATTR_ID);
    if (id != null && !id.equals("")) //$NON-NLS-1$
      {
      nextCatalog.setId(id);
      }
      catalog.addCatalogElement(nextCatalog);
    }
  }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

    addBuiltInNamespaces(list);
    ICatalog defaultCatalog = XMLCorePlugin.getDefault().getDefaultXMLCatalog();
    INextCatalog[] nextCatalogs = defaultCatalog.getNextCatalogs();
    for (int i = 0; i < nextCatalogs.length; i++) {
      INextCatalog catalog = nextCatalogs[i];
      ICatalog referencedCatalog = catalog.getReferencedCatalog();
      if (referencedCatalog != null) {
        if (XMLCorePlugin.USER_CATALOG_ID.equals(referencedCatalog.getId())) {
          ICatalog userCatalog = referencedCatalog;
          addCatalogMapToList(userCatalog, list);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.catalog.provisional.INextCatalog

    INextCatalog[] nextCatalogs = catalog.getNextCatalogs();
    Element childElement = null;
   //dw String attrValue = null;
    for (int i = 0; i < nextCatalogs.length; i++)
    {
      INextCatalog delegate = nextCatalogs[i];
      childElement = parent.getOwnerDocument().createElement(OASISCatalogConstants.TAG_NEXT_CATALOG);
      if (childElement != null)
      {
        parent.appendChild(childElement);
        String location = delegate.getCatalogLocation();
        if (location != null)
        {
          childElement.setAttribute(OASISCatalogConstants.ATTR_CATALOG, location);
        }
        setAttributes(delegate, childElement);
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.