diff --git a/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java b/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java index 8629c60d48..5ed04136c9 100644 --- a/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java +++ b/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java @@ -14,10 +14,11 @@ import java.util.HashMap; */ public abstract class AbstractHyperLinkPane extends FurtherBasicBeanPane { private HashMap hyperLinkEditorMap; + private boolean needRenamePane = false; protected ReportletParameterViewPane parameterViewPane; - public AbstractHyperLinkPane(HashMap hyperLinkEditorMap) { + public AbstractHyperLinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) { this.hyperLinkEditorMap = hyperLinkEditorMap; } @@ -47,7 +48,7 @@ public abstract class AbstractHyperLinkPane extends FurtherBasicBeanPane { } protected boolean needRenamePane(){ - return false; + return needRenamePane; } } diff --git a/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java b/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java index 51d8069ec7..24fac1482f 100644 --- a/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java +++ b/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java @@ -25,8 +25,8 @@ public class ReportletHyperlinkPane extends AbstractHyperLinkPane { this.initComponents(); } - public WebHyperlinkPane(HashMap hyperLinkEditorMap) { - super(hyperLinkEditorMap); + public WebHyperlinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) { + super(hyperLinkEditorMap, needRenamePane); this.initComponents(); } diff --git a/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java b/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java index 31ef732547..a449c89de1 100644 --- a/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java +++ b/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java @@ -36,8 +36,8 @@ public class JavaScriptImplPane extends AbstractHyperLinkPane { this(new String[0]); } - public JavaScriptImplPane(HashMap hyperLinkEditorMap) { - super(hyperLinkEditorMap); + public JavaScriptImplPane(HashMap hyperLinkEditorMap, boolean needRenamePane) { + super(hyperLinkEditorMap, needRenamePane); this.defaultArgs = new String[0]; initComponents(); } diff --git a/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java b/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java index fda398d499..bc07199ba2 100644 --- a/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java +++ b/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java @@ -19,11 +19,11 @@ public class ParameterJavaScriptPane extends AbstractHyperLinkPane constructor = null; try { - constructor = creator.getUpdatePane().getConstructor(HashMap.class); - return constructor.newInstance(plot.getHyperLinkEditorMap()); + constructor = creator.getUpdatePane().getConstructor(HashMap.class, boolean.class); + return constructor.newInstance(plot.getHyperLinkEditorMap(), false); } catch (InstantiationException e) { throw new RuntimeException(e); diff --git a/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java b/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java index 828fbaf1ff..3007f31e63 100644 --- a/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java +++ b/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java @@ -35,8 +35,8 @@ public class ChartUIMenuNameableCreator extends UIMenuNameableCreator { public BasicBeanPane getPane() { try { if (hyperLinkEditorMap != null) { - Constructor constructor = paneClazz.getConstructor(Plot.class); - return constructor.newInstance(hyperLinkEditorMap); + Constructor constructor = paneClazz.getConstructor(HashMap.class, boolean.class); + return constructor.newInstance(hyperLinkEditorMap,true); } } catch (Exception e) { return super.getPane();