/** * Returns autoproperties as a {@link java.util.Map} * where each key is a file name pattern and the corresponding * value is a string in the form of <code>"propName=propValue"</code>. * * @return a {@link java.util.Map} containing autoproperties */ public Map getAutoProperties() { return getConfigFile().getProperties(AUTOPROPS_GROUP); }
/** * Removes a particular autoproperty by specifying a file name * pattern. * * @param pattern a file name pattern * @see #setAutoProperty(String, String) * */ public void deleteAutoProperty(String pattern) { getConfigFile().setPropertyValue(AUTOPROPS_GROUP, pattern, null, !myIsReadonly); }
private String getDefaultSSHCommandLine() { Map tunnels = getConfigFile().getProperties("tunnels"); if (tunnels == null || !tunnels.containsKey("ssh")) { return null; } return (String) tunnels.get("ssh"); }
/** * Removes a particular autoproperty by specifying a file name * pattern. * * @param pattern a file name pattern * @see #setAutoProperty(String, String) * */ public void deleteAutoProperty(String pattern) { getConfigFile().setPropertyValue(AUTOPROPS_GROUP, pattern, null, !myIsReadonly); }
/** * Removes a particular autoproperty by specifying a file name * pattern. * * @param pattern a file name pattern * @see #setAutoProperty(String, String) * */ public void deleteAutoProperty(String pattern) { getConfigFile().setPropertyValue(AUTOPROPS_GROUP, pattern, null, !myIsReadonly); }
/** * Sets an autoproperty - binds a file name pattern with a * string in the form of <code>"propName=propValue"</code>. * * @param pattern a file name pattern (usually containing * wildcards) * @param properties a property for <code>pattern</code> */ public void setAutoProperty(String pattern, String properties) { getConfigFile().setPropertyValue(AUTOPROPS_GROUP, pattern, properties, !myIsReadonly); }
/** * Returns autoproperties as a {@link java.util.Map} * where each key is a file name pattern and the corresponding * value is a string in the form of <code>"propName=propValue"</code>. * * @return a {@link java.util.Map} containing autoproperties */ public Map getAutoProperties() { return getConfigFile().getProperties(AUTOPROPS_GROUP); }
/** * Sets an autoproperty - binds a file name pattern with a * string in the form of <code>"propName=propValue"</code>. * * @param pattern a file name pattern (usually containing * wildcards) * @param properties a property for <code>pattern</code> */ public void setAutoProperty(String pattern, String properties) { getConfigFile().setPropertyValue(AUTOPROPS_GROUP, pattern, properties, !myIsReadonly); }
public String getPropertyValue(String propertyName) { if (propertyName == null) { return null; } String value = getConfigFile().getPropertyValue(SVNKIT_GROUP, propertyName); if (value == null) { value = getConfigFile().getPropertyValue(OLD_SVNKIT_GROUP, propertyName); } return value; }
public void setPropertyValue(String propertyName, String propertyValue) { if (propertyName == null || "".equals(propertyName.trim())) { return; } getConfigFile().setPropertyValue(SVNKIT_GROUP, propertyName, propertyValue, !myIsReadonly); }
/** * Sets an autoproperty - binds a file name pattern with a * string in the form of <code>"propName=propValue"</code>. * * @param pattern a file name pattern (usually containing * wildcards) * @param properties a property for <code>pattern</code> */ public void setAutoProperty(String pattern, String properties) { getConfigFile().setPropertyValue(AUTOPROPS_GROUP, pattern, properties, !myIsReadonly); }
public void setKeepLocks(boolean keep) { getConfigFile().setPropertyValue(MISCELLANY_GROUP, NO_UNLOCK, keep ? YES : NO, !myIsReadonly); }
public String getDiffCommand() { return getConfigFile().getPropertyValue(HELPERS_GROUP, DIFF_CMD); }
public String getTunnelDefinition(String subProtocolName) { if (subProtocolName == null) { return null; } Map tunnels = getConfigFile().getProperties("tunnels"); return (String) tunnels.get(subProtocolName); } }
public ISVNConnector createTunnelConnector(SVNURL url) { String subProtocolName = url.getProtocol().substring("svn+".length()); if (subProtocolName == null) { return null; } Map tunnels = getConfigFile().getProperties("tunnels"); final String tunnel = (String)tunnels.get(subProtocolName); if (tunnel == null) { return null; } return new SVNTunnelConnector(subProtocolName, tunnel); }
public boolean isUseCommitTimes() { String value = getConfigFile().getPropertyValue(MISCELLANY_GROUP, USE_COMMIT_TIMES); return getBooleanValue(value, false); }
public boolean isUseCommitTimes() { String value = getConfigFile().getPropertyValue(MISCELLANY_GROUP, USE_COMMIT_TIMES); return getBooleanValue(value, true); }
public boolean isUseCommitTimes() { String value = getConfigFile().getPropertyValue(MISCELLANY_GROUP, USE_COMMIT_TIMES); return getBooleanValue(value, false); }
public boolean isKeepLocks() { String value = getConfigFile().getPropertyValue(MISCELLANY_GROUP, NO_UNLOCK); return getBooleanValue(value, false); }
public boolean isKeepLocks() { String value = getConfigFile().getPropertyValue(MISCELLANY_GROUP, NO_UNLOCK); return getBooleanValue(value, false); }