private org.eclipse.wst.jsdt.core.formatter.CodeFormatter newCodeFormatter()
     throws InvalidPropertyFile {
   modifiedMonitor = propertiesProvider.getModifiedMonitor();
   codeFormatter =
       org.eclipse.wst.jsdt.core.ToolFactory.createCodeFormatter(propertiesProvider.get());
   return codeFormatter;
 }
  protected IScanner getScanner(IJavaScriptUnit unit) {
    if (unit.equals(fCuCache)) return fScannerCache;

    fCuCache = unit;
    IJavaScriptProject project = unit.getJavaScriptProject();
    String sourceLevel = project.getOption(JavaScriptCore.COMPILER_SOURCE, true);
    String complianceLevel = project.getOption(JavaScriptCore.COMPILER_COMPLIANCE, true);
    fScannerCache = ToolFactory.createScanner(false, false, false, sourceLevel, complianceLevel);
    return fScannerCache;
  }