//Edeb("NumberFormatException "+e.getMessage()); // NOI18N
return;
}
//action.setAddAction(n1, n3, n4);
//diffActions.add(action);
differences.add(new Difference(Difference.ADD, n1, 0, n3, n4));
} else if ((index = elements.indexOf('d')) >= 0) {
//DiffAction action = new DiffAction();
commaIndex = elements.lastIndexOf(',', index);
try {
if (commaIndex < 0) {
n1 = Integer.parseInt(elements.substring(0, index));
n2 = n1;
} else {
nStr = elements.substring(0, commaIndex);
if (checkEmpty(nStr, elements)) return;
n1 = Integer.parseInt(nStr);
nStr = elements.substring(commaIndex+1, index);
if (checkEmpty(nStr, elements)) return;
n2 = Integer.parseInt(nStr);
}
nStr = elements.substring(index+1, elements.length());
if (checkEmpty(nStr, elements)) return;
n3 = Integer.parseInt(nStr);
} catch (NumberFormatException e) {
/*
if (this.stderrListener != null) {
String[] debugOut = { "NumberFormatException "+e.getMessage() }; // NOI18N
stderrListener.match(debugOut);
}
*/
//Edeb("NumberFormatException "+e.getMessage()); // NOI18N
return;
}
//action.setDeleteAction(n1, n2, n3);
//diffActions.add(action);
differences.add(new Difference(Difference.DELETE, n1, n2, n3, 0));
} else if ((index = elements.indexOf('c')) >= 0) {
//DiffAction action = new DiffAction();
commaIndex = elements.lastIndexOf(',', index);
try {
if (commaIndex < 0) {
n1 = Integer.parseInt(elements.substring(0, index));
n2 = n1;
} else {
nStr = elements.substring(0, commaIndex);
if (checkEmpty(nStr, elements)) return;
n1 = Integer.parseInt(nStr);
nStr = elements.substring(commaIndex+1, index);
if (checkEmpty(nStr, elements)) return;
n2 = Integer.parseInt(nStr);
}
index++;
commaIndex = elements.indexOf(',', index);
if (commaIndex < 0) {
nStr = elements.substring(index, elements.length());
if (checkEmpty(nStr, elements)) return;
n3 = Integer.parseInt(nStr);
n4 = n3;
} else {
nStr = elements.substring(index, commaIndex);
if (checkEmpty(nStr, elements)) return;
n3 = Integer.parseInt(nStr);
nStr = elements.substring(commaIndex+1, elements.length());
if (nStr == null || nStr.length() == 0) n4 = n3;
else n4 = Integer.parseInt(nStr);
}
} catch (NumberFormatException e) {
/*
if (this.stderrListener != null) {
String[] debugOut = { "NumberFormatException "+e.getMessage() }; // NOI18N
stderrListener.match(debugOut);
}
*/
//Edeb("NumberFormatException "+e.getMessage()); // NOI18N
return;
}
//action.setChangeAction(n1, n2, n3, n4);
//diffActions.add(action);
differences.add(new Difference(Difference.CHANGE, n1, n2, n3, n4));
}
}