Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29175/src/net/sourceforge/bprocessor/gui/attrview
Modified Files:
GenericPanel.java
Log Message:
avoids creating parameterblock in entity when not needed
Index: GenericPanel.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/GenericPanel.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** GenericPanel.java 10 Aug 2007 09:26:57 -0000 1.41
--- GenericPanel.java 18 Oct 2007 08:46:34 -0000 1.42
***************
*** 91,100 ****
}
! private void generateContentFor(Parametric param) {
! attributes = param.getAttributes();
generateContent(attributes, content);
! if (param instanceof Entity) {
! Entity paramEnt = (Entity)param;
! generateContent(paramEnt.getParameters().getAttributes(), content);
}
}
--- 91,102 ----
}
! private void generateContentFor(Parametric parametric) {
! attributes = parametric.getAttributes();
generateContent(attributes, content);
! if (parametric instanceof Entity) {
! Entity entity = (Entity) parametric;
! if (entity.getParameters() != null) {
! generateContent(entity.getParameters().getAttributes(), content);
! }
}
}
|