Package org.eclipse.jst.jsf.common.ui.internal.logging

Examples of org.eclipse.jst.jsf.common.ui.internal.logging.Logger


          // nothing to do when IOException throwed in closing files.
        }
      }

      // set up logging for this plugin and everthing under it.
      _log = new Logger(this.getBundle(), _resourceBundle);

      // NOTE: add in any other plugin code statup HERE!!!!

      // log.CommonPlugin=Web Application Development Common Plugin
      // initialized on eclipse version {0}.
View Full Code Here


   
    String template = creationProvider.getTemplate();
    if (template != null){
     
      final String nodeStr = prepareNode(template);//(String)template.getTemplate();
      final Logger logger = PDPlugin.getLogger(PaletteElementTemplateHelper.class);
      try {
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setNamespaceAware(true);
        factory.setValidating(false);
        DocumentBuilder builder = factory.newDocumentBuilder();
        Document doc = builder.parse(new ByteArrayInputStream( nodeStr.getBytes()));
        Node beginNode = doc.getFirstChild();
        Node templateNode = beginNode.cloneNode(true);//model.getDocument().importNode(beginNode, true);
        Node[] templateNodes = applyPrefixes(model, templateNode.getChildNodes(), model.getDocument());
        return templateNodes;
      } catch (ParserConfigurationException e) {
          logger.error(e);
      } catch (SAXException e) {
                logger.error(e);
      } catch (IOException e) {
                logger.error(e);
      } catch (Exception e){
                logger.error(e);
      }
    }
    return null;
  }
View Full Code Here

          org.w3c.dom.stylesheets.StyleSheet ss = ssl.item(i);

          try {
            traverser.apply((ICSSNode) ss);
          } catch (ClassCastException ex) {
            Logger log = PDPlugin
                .getLogger(CSSStyleDeclaration.class);
            log.error("Error.CSSUtil.0", ex); //$NON-NLS-1$
            // FIXME: should this continue to be processed?
          }
        }
        c = traverser.getClassNames();
      }
View Full Code Here

      for (int i = 0, numStyles = styleSheets.size(); i < numStyles; i++) {
        StyleSheet ss = (StyleSheet) styleSheets.get(i);
        try {
          query.apply((ICSSNode) ss);
        } catch (ClassCastException ex) {
          Logger log = PDPlugin.getLogger(CSSStyleDeclaration.class);
          log.error("Error.CSSUtil.0", ex); //$NON-NLS-1$
          // FIXME: should this continue to be processed?
        }
      }
    }
    CSSStyleDeclaration declare = query.getDeclaration();
View Full Code Here

    // FIXME: when do we need to apply the user agent style sheet?
    try {
      getUserAgentDefaultStyleSheet(element);
    } catch (UnsupportedEncodingException e) {
      Logger log = PDPlugin.getLogger(CSSStyleDeclaration.class);
      log.error("Error.CSSUtil.1", e); //$NON-NLS-1$
    } catch (IOException e) {
      Logger log = PDPlugin.getLogger(CSSStyleDeclaration.class);
      log.error("Error.CSSUtil.2", e); //$NON-NLS-1$
    }
    if (_userAgentDefault != null) {
      try {
        query.apply((ICSSNode) _userAgentDefault);
      } catch (ClassCastException ex) {
        Logger log = PDPlugin.getLogger(CSSStyleDeclaration.class);
        log.error("Error.CSSUtil.3", ex); //$NON-NLS-1$
      }
    }
    CSSStyleDeclaration declare = query.getDeclaration();
    return declare;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.common.ui.internal.logging.Logger

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.