@ -106,6 +106,9 @@ public class CellWidgetPropertyPane extends BasicPane {
final CellSelection finalCS = ( CellSelection ) ePane . getSelection ( ) ;
final CellSelection finalCS = ( CellSelection ) ePane . getSelection ( ) ;
final TemplateElementCase tplEC = ePane . getEditingElementCase ( ) ;
final TemplateElementCase tplEC = ePane . getEditingElementCase ( ) ;
final Widget cellWidget = cellEditorDefPane . update ( ) ;
final Widget cellWidget = cellEditorDefPane . update ( ) ;
if ( cellWidget = = null ) {
return ;
}
if ( finalCS . isSelectedOneCell ( ePane ) ) {
if ( finalCS . isSelectedOneCell ( ePane ) ) {
if ( tplEC . getTemplateCellElement ( cellElement . getColumn ( ) , cellElement . getRow ( ) ) = = null ) { //cellElement未加入到report中时要添加进去
if ( tplEC . getTemplateCellElement ( cellElement . getColumn ( ) , cellElement . getRow ( ) ) = = null ) { //cellElement未加入到report中时要添加进去
tplEC . addCellElement ( cellElement ) ;
tplEC . addCellElement ( cellElement ) ;
@ -141,6 +144,9 @@ public class CellWidgetPropertyPane extends BasicPane {
final CellSelection finalCS = ( CellSelection ) selection ;
final CellSelection finalCS = ( CellSelection ) selection ;
final TemplateElementCase tplEC = ePane . getEditingElementCase ( ) ;
final TemplateElementCase tplEC = ePane . getEditingElementCase ( ) ;
final Widget cellWidget = cellEditorDefPane . update ( ) ;
final Widget cellWidget = cellEditorDefPane . update ( ) ;
if ( cellWidget = = null ) {
return ;
}
if ( finalCS . isSelectedOneCell ( ePane ) ) {
if ( finalCS . isSelectedOneCell ( ePane ) ) {
if ( tplEC . getTemplateCellElement ( cellElement . getColumn ( ) , cellElement . getRow ( ) ) = = null ) { //cellElement未加入到report中时要添加进去
if ( tplEC . getTemplateCellElement ( cellElement . getColumn ( ) , cellElement . getRow ( ) ) = = null ) { //cellElement未加入到report中时要添加进去
tplEC . addCellElement ( cellElement ) ;
tplEC . addCellElement ( cellElement ) ;