public WorkspaceSetting createWorkspace(int context) {
FrameWorkspace ws = new FrameWorkspace();
ws.list = new LinkedList();
for (int i = 0; i < getProjectComboBox().getItemCount(); i++) {
DocumentFrame frame = (DocumentFrame)getProjectComboBox().getItemAt(i);
ws.list.add(frame.createWorkspace(context));
}
ws.selectedIndex = getProjectComboBox().getSelectedIndex();
return ws;
}