Examples of JSCodeFormatterFacade


Examples of krasa.formatter.eclipse.JSCodeFormatterFacade

        this.settings = settings;

        notifier = new Notifier(project);
        eclipseCodeFormatterJava = new EclipseCodeFormatter(settings, project, original, new JavaCodeFormatterFacade(
                settings.getPathToConfigFileJava()));
        eclipseCodeFormatterJs = new EclipseCodeFormatter(settings, project, original, new JSCodeFormatterFacade(
                settings.getPathToConfigFileJS()));
    }
View Full Code Here

Examples of krasa.formatter.eclipse.JSCodeFormatterFacade

  }

  private void formatWithEclipse(PsiFile psiFile, int startOffset, int endOffset) throws FileDoesNotExistsException {
    if (FileUtils.isJavaScript(psiFile)) {
      if (eclipseCodeFormatterJs == null) {
        eclipseCodeFormatterJs = new EclipseCodeFormatter(settings, new JSCodeFormatterFacade(
            settings.getJSProperties()));
      }
      eclipseCodeFormatterJs.format(psiFile, startOffset, endOffset);
    } else {
      eclipseCodeFormatterJava.format(psiFile, startOffset, endOffset);
View Full Code Here

Examples of krasa.formatter.eclipse.JSCodeFormatterFacade

  private Settings settings;
  private JSCodeFormatterFacade jsCodeFormatterFacade;

  public JSCommentsFormatterProcessor(Settings settings) {
    this.settings = settings;
    jsCodeFormatterFacade = new JSCodeFormatterFacade(settings.getJSProperties());
  }
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.