diff --git a/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/formula/widget/SearchWidgetFormulaAction.java b/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/formula/widget/SearchWidgetFormulaAction.java index b82076a3d3..769d608382 100644 --- a/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/formula/widget/SearchWidgetFormulaAction.java +++ b/designer-realize/src/main/java/com/fr/design/actions/replace/action/content/formula/widget/SearchWidgetFormulaAction.java @@ -1,7 +1,6 @@ package com.fr.design.actions.replace.action.content.formula.widget; -import com.fr.base.BaseFormula; -import com.fr.base.Formula; + import com.fr.chart.chartattr.ChartCollection; import com.fr.design.actions.replace.action.content.component.SearchComponentAction; import com.fr.design.actions.replace.action.content.formula.chart.SearchChartCollectionFormulaAction; @@ -13,20 +12,19 @@ import com.fr.design.actions.replace.info.WidgetInfo; import com.fr.design.actions.replace.info.base.ITContent; import com.fr.design.actions.replace.utils.ShowValueUtils; import com.fr.design.mainframe.JTemplate; -import com.fr.design.mainframe.chart.gui.ChangeConfigPane; + import com.fr.form.main.Form; import com.fr.form.ui.ChartEditor; -import com.fr.form.ui.ElementCaseEditor; + import com.fr.form.ui.Label; import com.fr.form.ui.Widget; -import com.fr.form.ui.WidgetTitle; -import com.fr.form.ui.concept.data.ValueInitializer; + import com.fr.form.ui.container.WScaleLayout; import com.fr.form.ui.container.WTitleLayout; import com.fr.form.ui.widget.CRBoundsWidget; import com.fr.main.impl.WorkBook; -import com.fr.report.worksheet.FormElementCase; + import java.util.ArrayList; import java.util.List; diff --git a/designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceNorthPanel.java b/designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceNorthPanel.java index 0fea79f21e..ff5b3c8199 100644 --- a/designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceNorthPanel.java +++ b/designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceNorthPanel.java @@ -97,11 +97,7 @@ public class ITReplaceNorthPanel { matchRadioButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - if (matchRadioButton.isSelected()) { - ITReplaceMainDialog.setMatched(true); - } else { - ITReplaceMainDialog.setMatched(false); - } + ITReplaceMainDialog.setMatched(matchRadioButton.isSelected()); } });