/** * Test if the given attributes implies to handle the related entry as a * binary file (i.e. if the entry has an -merge or a merge=binary attribute) * or if it can be content merged. * * @return <code>true</code> if the entry can be content merged, * <code>false</code> otherwise * @since 4.9 */ public boolean canBeContentMerged() { if (isUnset(Constants.ATTR_MERGE)) { return false; } else if (isCustom(Constants.ATTR_MERGE) && getValue(Constants.ATTR_MERGE) .equals(Constants.ATTR_BUILTIN_BINARY_MERGER)) { return false; } return true; }
} else if (attrs.isUnset("crlf")) {//$NON-NLS-1$ return EolStreamType.DIRECT; // Same as isUnset("text") } else if ("input".equals(attrs.getValue("crlf"))) {//$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.TEXT_LF; // Same as eol=lf String eol = attrs.getValue("eol"); //$NON-NLS-1$ if (eol != null) if ("auto".equals(attrs.getValue("text"))) { //$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.AUTO_LF;
} else if (attrs.isUnset("crlf")) {//$NON-NLS-1$ return EolStreamType.DIRECT; // Same as isUnset("text") } else if ("input".equals(attrs.getValue("crlf"))) {//$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.DIRECT; // Same as eol=lf String eol = attrs.getValue("eol"); //$NON-NLS-1$ if (eol != null) { if ("crlf".equals(eol)) {//$NON-NLS-1$ if ("auto".equals(attrs.getValue("text"))) { //$NON-NLS-1$ //$NON-NLS-2$ EolStreamType basic = getOutputFormat(options); switch (basic) {
/** * Test if the given attributes implies to handle the related entry as a * binary file (i.e. if the entry has an -merge or a merge=binary attribute) * or if it can be content merged. * * @return <code>true</code> if the entry can be content merged, * <code>false</code> otherwise * @since 4.9 */ public boolean canBeContentMerged() { if (isUnset(Constants.ATTR_MERGE)) { return false; } else if (isCustom(Constants.ATTR_MERGE) && getValue(Constants.ATTR_MERGE) .equals(Constants.ATTR_BUILTIN_BINARY_MERGER)) { return false; } return true; }
} else if (attrs.isUnset("crlf")) {//$NON-NLS-1$ return EolStreamType.DIRECT; // Same as isUnset("text") } else if ("input".equals(attrs.getValue("crlf"))) {//$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.TEXT_LF; // Same as eol=lf String eol = attrs.getValue("eol"); //$NON-NLS-1$ if (eol != null) if ("auto".equals(attrs.getValue("text"))) { //$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.AUTO_LF;
} else if (attrs.isUnset("crlf")) {//$NON-NLS-1$ return EolStreamType.DIRECT; } else if ("input".equals(attrs.getValue("crlf"))) {//$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.TEXT_LF; return EolStreamType.DIRECT; String eol = attrs.getValue("eol"); //$NON-NLS-1$ if (eol != null) if ("auto".equals(attrs.getValue("text"))) { //$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.AUTO_LF;
} else if (attrs.isUnset("crlf")) {//$NON-NLS-1$ return EolStreamType.DIRECT; // Same as isUnset("text") } else if ("input".equals(attrs.getValue("crlf"))) {//$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.DIRECT; // Same as eol=lf String eol = attrs.getValue("eol"); //$NON-NLS-1$ if (eol != null) { if ("crlf".equals(eol)) {//$NON-NLS-1$ if ("auto".equals(attrs.getValue("text"))) { //$NON-NLS-1$ //$NON-NLS-2$ EolStreamType basic = getOutputFormat(options); switch (basic) {
} else if (attrs.isUnset("crlf")) {//$NON-NLS-1$ return EolStreamType.DIRECT; } else if ("input".equals(attrs.getValue("crlf"))) {//$NON-NLS-1$ //$NON-NLS-2$ return EolStreamType.DIRECT; return EolStreamType.DIRECT; String eol = attrs.getValue("eol"); //$NON-NLS-1$ if (eol != null && "crlf".equals(eol)) //$NON-NLS-1$ return EolStreamType.TEXT_CRLF; if ("auto".equals(attrs.getValue("text"))) { //$NON-NLS-1$ //$NON-NLS-2$ switch (options.getAutoCRLF()) { case TRUE: