}
if (property.equals("fetchExists")) { //$NON-NLS-1$
if (node instanceof RemoteNode) {
String configName = ((RemoteNode) node).getObject();
RemoteConfig rconfig;
try {
rconfig = new RemoteConfig(
node.getRepository().getConfig(), configName);
} catch (URISyntaxException e2) {
return false;
}
// we need to have a fetch ref spec and a fetch URI
return !rconfig.getFetchRefSpecs().isEmpty()
&& !rconfig.getURIs().isEmpty();
}
}
if (property.equals("pushExists")) { //$NON-NLS-1$
if (node instanceof RemoteNode) {
String configName = ((RemoteNode) node).getObject();
RemoteConfig rconfig;
try {
rconfig = new RemoteConfig(
node.getRepository().getConfig(), configName);
} catch (URISyntaxException e2) {
return false;
}
// we need to have at least a push ref spec and any URI
return !rconfig.getPushRefSpecs().isEmpty()
&& (!rconfig.getPushURIs().isEmpty() || !rconfig
.getURIs().isEmpty());
}
}
if (property.equals("canStash")) { //$NON-NLS-1$
Repository rep = node.getRepository();