commands.addElement(newCommand);
}
buffer = new StringBuffer();
- } else if (t.getType() == Token.GROUP) {
- // We don't append the group token because it may be misinterpreted
- //groupBuffer.append(t.getValue());
- String newGroup = groupBuffer.toString().trim();
- if (!newGroup.equals("")) { //$NON-NLS-1$
- groups.addElement(newGroup);
- //Groups have precedence over commands, so the preceding commands are erased
- commands.clear();
- }
- groupBuffer = new StringBuffer();
} else {
// We append the tokens to the buffer until it's a separator or group.
buffer.append(t.getValue());