boolean firstEdit = originalWorkingSet == null;
// save the original working set values for restoration when selection
// dialog is cancelled.
if (firstEdit) {
originalWorkingSet = new WorkingSet(editWorkingSet.getName(),
editWorkingSet.getLabel(), editWorkingSet.getElements());
} else {
editedWorkingSets.remove(editWorkingSet);
}
dialog.create();