From bb49f595598983d5d17b33ff9fda8855228ad292 Mon Sep 17 00:00:00 2001 From: xiqiu Date: Thu, 29 Jul 2021 14:08:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?KERNEL-8304=20=20=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B1=A0=E9=80=BB=E8=BE=91=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/data/datapane/connect/JDBCDefPane.java | 1 + 1 file changed, 1 insertion(+) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java index a506fd2b3a..8a9a9779c1 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java @@ -255,6 +255,7 @@ public class JDBCDefPane extends JPanel { this.dbtypeComboBox.setSelectedItem(OTHER_DB); } } + this.jdbcDatabase.setIdentity(jdbcDatabase.getIdentity()); this.driverComboBox.setSelectedItem(jdbcDatabase.getDriver()); this.urlTextField.setText(jdbcDatabase.getURL()); this.userNameTextField.setText(jdbcDatabase.getUser()); From 3383679b7c13d09a99b5018bed60299bba55849d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=B2=B3?= <445798420@qq.com> Date: Mon, 2 Aug 2021 11:01:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?CHART-20134=20=E5=9B=BE=E8=A1=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=88=A4=E6=96=AD=E5=A2=9E=E5=8A=A0=E5=AF=B9=E6=96=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/gui/chart/ChartXMLTag.java | 11 +++++++++++ .../java/com/fr/design/ChartTypeInterfaceManager.java | 3 ++- .../com/fr/design/chart/fun/ChartTypeUIProvider.java | 5 +++-- .../com/fr/design/mainframe/FormParaWidgetPane.java | 10 ++++++---- 4 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 designer-base/src/main/java/com/fr/design/gui/chart/ChartXMLTag.java diff --git a/designer-base/src/main/java/com/fr/design/gui/chart/ChartXMLTag.java b/designer-base/src/main/java/com/fr/design/gui/chart/ChartXMLTag.java new file mode 100644 index 0000000000..b974287058 --- /dev/null +++ b/designer-base/src/main/java/com/fr/design/gui/chart/ChartXMLTag.java @@ -0,0 +1,11 @@ +package com.fr.design.gui.chart; + +/** + * @author Bjorn + * @version 10.0 + * Created by Bjorn on 2021-08-02 + */ +public class ChartXMLTag { + + public static final String CHART_TYPE_UI_PROVIDER = "ChartTypeUIProvider"; +} diff --git a/designer-chart/src/main/java/com/fr/design/ChartTypeInterfaceManager.java b/designer-chart/src/main/java/com/fr/design/ChartTypeInterfaceManager.java index b50c740a32..a9dcca2a2c 100644 --- a/designer-chart/src/main/java/com/fr/design/ChartTypeInterfaceManager.java +++ b/designer-chart/src/main/java/com/fr/design/ChartTypeInterfaceManager.java @@ -157,7 +157,8 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr @Override public boolean accept(PluginContext context) { - return context.contain(PluginModule.ExtraChartDesign, SpecialLevel.IndependentChartUIProvider.getTagName()); + return context.contain(PluginModule.ExtraChartDesign, SpecialLevel.IndependentChartUIProvider.getTagName()) + || context.contain(PluginModule.ExtraChartDesign, ChartTypeUIProvider.XML_TAG); } }); } diff --git a/designer-chart/src/main/java/com/fr/design/chart/fun/ChartTypeUIProvider.java b/designer-chart/src/main/java/com/fr/design/chart/fun/ChartTypeUIProvider.java index 9db47e4318..1843a18864 100644 --- a/designer-chart/src/main/java/com/fr/design/chart/fun/ChartTypeUIProvider.java +++ b/designer-chart/src/main/java/com/fr/design/chart/fun/ChartTypeUIProvider.java @@ -3,6 +3,7 @@ package com.fr.design.chart.fun; import com.fr.chart.chartattr.Plot; import com.fr.design.beans.BasicBeanPane; import com.fr.design.condition.ConditionAttributesPane; +import com.fr.design.gui.chart.ChartXMLTag; import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.ChartEditPane; @@ -22,8 +23,8 @@ import com.fr.stable.fun.Level; * 自定义 图表类型 界面接口 */ public interface ChartTypeUIProvider extends Level { - - String XML_TAG = "ChartTypeUIProvider"; + + String XML_TAG = ChartXMLTag.CHART_TYPE_UI_PROVIDER; String OLD_TAG = SpecialLevel.IndependentChartUIProvider.getTagName(); diff --git a/designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java b/designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java index b8f3ff6380..09e02ac670 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java @@ -8,6 +8,7 @@ import com.fr.design.designer.beans.events.DesignerEditListener; import com.fr.design.designer.beans.events.DesignerEvent; import com.fr.design.designer.creator.XCreatorUtils; import com.fr.design.fun.FormWidgetOptionProvider; +import com.fr.design.gui.chart.ChartXMLTag; import com.fr.design.gui.core.FormWidgetOption; import com.fr.design.gui.core.UserDefinedWidgetOption; import com.fr.design.gui.core.WidgetOption; @@ -38,20 +39,20 @@ import javax.swing.JComponent; import javax.swing.JPanel; import javax.swing.JSeparator; import javax.swing.SwingConstants; -import java.awt.Cursor; -import java.awt.event.MouseListener; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.awt.BorderLayout; import java.awt.Color; +import java.awt.Cursor; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; /** * @author null @@ -105,7 +106,8 @@ public class FormParaWidgetPane extends JPanel { public boolean accept(PluginContext context) { return context.contain(PluginModule.ExtraDesign, FormWidgetOptionProvider.XML_TAG) - || context.contain(PluginModule.ExtraChartDesign, SpecialLevel.IndependentChartUIProvider.getTagName()); + || context.contain(PluginModule.ExtraChartDesign, SpecialLevel.IndependentChartUIProvider.getTagName()) + || context.contain(PluginModule.ExtraChartDesign, ChartXMLTag.CHART_TYPE_UI_PROVIDER); } }); } @@ -246,7 +248,7 @@ public class FormParaWidgetPane extends JPanel { private JPanel createComponentReuseToolPane() { JPanel jPanel = new JPanel(new BorderLayout(17, 10)); UILabel uiLabel = new UILabel(BaseUtils.readIcon("/com/fr/design/images/form/designer/widget_apply_icon.png")); - uiLabel.setBorder(BorderFactory.createEmptyBorder(5, 0 ,5, 0)); + uiLabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0)); jPanel.addMouseListener(new MouseListener() { @Override public void mouseClicked(MouseEvent e) {