|
|
|
@ -158,19 +158,16 @@ public class CellWidgetPropertyPane extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
setCellWidget(cellWidget, cellElement); |
|
|
|
|
} else { |
|
|
|
|
ReportActionUtils.actionIterateWithCellSelection(finalCS, tplEC, new ReportActionUtils.IterAction() { |
|
|
|
|
public void dealWith(CellElement editCellElement) { |
|
|
|
|
// p:最后把这个cellEditorDef设置到CellGUIAttr.
|
|
|
|
|
TemplateCellElement templateCellElement = (TemplateCellElement) editCellElement; |
|
|
|
|
try { |
|
|
|
|
setCellWidget((Widget) cellWidget.clone(), templateCellElement); |
|
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error("InternalError: " + e.getMessage()); |
|
|
|
|
} |
|
|
|
|
ReportActionUtils.actionIterateWithCellSelection(finalCS, tplEC, editCellElement -> { |
|
|
|
|
// p:最后把这个cellEditorDef设置到CellGUIAttr.
|
|
|
|
|
TemplateCellElement templateCellElement = (TemplateCellElement) editCellElement; |
|
|
|
|
try { |
|
|
|
|
setCellWidget((Widget) cellWidget.clone(), templateCellElement); |
|
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error("InternalError: " + e.getMessage()); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (DesignerContext.getDesignerFrame().getSelectedJTemplate() != null) { |
|
|
|
|
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); |
|
|
|
|
} |
|
|
|
|