IMemento[] workingSetChildren = workingSetMem
.getChildren(IWorkbenchConstants.TAG_WORKING_SET);
List workingSetList = new ArrayList(
workingSetChildren.length);
for (int i = 0; i < workingSetChildren.length; i++) {
IWorkingSet set = getWorkbenchWindow().getWorkbench()
.getWorkingSetManager().getWorkingSet(
workingSetChildren[i].getID());
if (set != null) {
workingSetList.add(set);
}
}
workingSets = (IWorkingSet[]) workingSetList
.toArray(new IWorkingSet[workingSetList.size()]);
}
aggregateWorkingSetId = memento.getString(ATT_AGGREGATE_WORKING_SET_ID);
IWorkingSet setWithId = window.getWorkbench().getWorkingSetManager().getWorkingSet(aggregateWorkingSetId);
// check to see if the set has already been made and assign it if it has
if (setWithId instanceof AggregateWorkingSet) {
aggregateWorkingSet = (AggregateWorkingSet) setWithId;
}