protected String applyFormatRules(String value) { return CodeGenUtil.convertFormat(jControlModel.getLeadingTabReplacement(), jControlModel.convertToStandardBraceStyle(), value); }
protected String applyFormatRules(String value) { return CodeGenUtil.convertFormat(jControlModel.getLeadingTabReplacement(), jControlModel.convertToStandardBraceStyle(), value); }
@Override public String getTargetCompilationUnitContents() { if (shouldMerge) { return super.getTargetCompilationUnitContents(); } else { // Ensure that at least the tab conversion and brace style preference are applied to the original emmitter's result. // return CodeGenUtil.convertFormat(jControlModel.getLeadingTabReplacement(), jControlModel.convertToStandardBraceStyle(), compilationUnitContents); } } };
/** * Formats the specified string using the * {@link CodeGenUtil#convertFormat(String, boolean, String)} method. * @param value * @return the formatted String. */ public String applyFormatRules(String value) { // do not crash when control model is not set return getControlModel() == null ? value : CodeGenUtil.convertFormat(getControlModel().getLeadingTabReplacement(), getControlModel().convertToStandardBraceStyle(), value); }
/** * Formats the specified string using the * {@link CodeGenUtil#convertFormat(String, boolean, String)} method. * @param value * @return the formatted String. */ public String applyFormatRules(String value) { // do not crash when control model is not set return getControlModel() == null ? value : CodeGenUtil.convertFormat(getControlModel().getLeadingTabReplacement(), getControlModel().convertToStandardBraceStyle(), value); }
CodeGenUtil.convertFormat(jControlModel.getLeadingTabReplacement(), jControlModel.convertToStandardBraceStyle(), emitterResult); if (targetFileContents != null)
CodeGenUtil.convertFormat(jControlModel.getLeadingTabReplacement(), jControlModel.convertToStandardBraceStyle(), emitterResult); if (targetExists)
CodeGenUtil.convertFormat(jControlModel.getLeadingTabReplacement(), jControlModel.convertToStandardBraceStyle(), emitterResult); if (exists(targetFile))
CodeGenUtil.convertFormat(jControlModel.getLeadingTabReplacement(), jControlModel.convertToStandardBraceStyle(), emitterResult); if (exists(targetFile))