Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31606/src/net/sourceforge/bprocessor/model
Modified Files:
Persistence.java
Log Message:
commented out some code that didn't compile
Index: Persistence.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Persistence.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** Persistence.java 11 Oct 2007 10:21:46 -0000 1.46
--- Persistence.java 11 Oct 2007 13:11:45 -0000 1.47
***************
*** 143,152 ****
{
List<Attribute> attributes = new LinkedList<Attribute>();
! for (Object o : document.getGlobal()) {
! if (o instanceof MapElementType) {
! MapElementType elem = (MapElementType)o;
! attributes.add(internalizeKeyValue(elem, mapper));
! }
! }
Collections.sort(attributes, new Attribute.AttributeComparator());
Project.getInstance().getGlobals().setAttributes(attributes);
--- 143,152 ----
{
List<Attribute> attributes = new LinkedList<Attribute>();
! // for (Object o : document.getGlobal()) {
! // if (o instanceof MapElementType) {
! // MapElementType elem = (MapElementType)o;
! // attributes.add(internalizeKeyValue(elem, mapper));
! // }
! // }
Collections.sort(attributes, new Attribute.AttributeComparator());
Project.getInstance().getGlobals().setAttributes(attributes);
***************
*** 799,808 ****
document.setName(Project.getInstance().getName());
! {
! Collection globals = document.getGlobal();
! for (Attribute a : Project.getInstance().getGlobals().getAttributes()) {
! globals.add(externalizeKeyValue(a.getName(), a.getValue(), mapper));
! }
! }
{
Collection cams = document.getCamera();
--- 799,808 ----
document.setName(Project.getInstance().getName());
! // {
! // Collection globals = document.getGlobal();
! // for (Attribute a : Project.getInstance().getGlobals().getAttributes()) {
! // globals.add(externalizeKeyValue(a.getName(), a.getValue(), mapper));
! // }
! // }
{
Collection cams = document.getCamera();
|