diff --git a/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/AsmCodeGenerator.java b/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/AsmCodeGenerator.java index d5fc224f7464..608c1a0bad59 100644 --- a/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/AsmCodeGenerator.java +++ b/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/AsmCodeGenerator.java @@ -59,6 +59,7 @@ public class AsmCodeGenerator { public static final String CREATE_COMPONENTS_METHOD_NAME = "createUIComponents"; public static final String LOAD_LABEL_TEXT_METHOD = "$$$loadLabelText$$$"; public static final String LOAD_BUTTON_TEXT_METHOD = "$$$loadButtonText$$$"; + public static final String GET_FONT_METHOD_NAME = "$$$getFont$$$"; private static final Type ourButtonGroupType = Type.getType(ButtonGroup.class); private static final Type ourBorderFactoryType = Type.getType(BorderFactory.class); diff --git a/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/FontPropertyCodeGenerator.java b/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/FontPropertyCodeGenerator.java index 909288010cca..a001a021212e 100644 --- a/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/FontPropertyCodeGenerator.java +++ b/java/compiler/forms-compiler/src/com/intellij/uiDesigner/compiler/FontPropertyCodeGenerator.java @@ -102,7 +102,7 @@ public class FontPropertyCodeGenerator extends PropertyCodeGenerator { } public static Method createGetFontMethod() { - return new Method("getFont" + System.currentTimeMillis(), ourFontType, + return new Method(AsmCodeGenerator.GET_FONT_METHOD_NAME, ourFontType, new Type[]{ourStringType, Type.INT_TYPE, Type.INT_TYPE, ourFontType}); } diff --git a/plugins/ui-designer/src/com/intellij/uiDesigner/make/FormSourceCodeGenerator.java b/plugins/ui-designer/src/com/intellij/uiDesigner/make/FormSourceCodeGenerator.java index 274c397248eb..669ebd378db5 100644 --- a/plugins/ui-designer/src/com/intellij/uiDesigner/make/FormSourceCodeGenerator.java +++ b/plugins/ui-designer/src/com/intellij/uiDesigner/make/FormSourceCodeGenerator.java @@ -1035,7 +1035,7 @@ public final class FormSourceCodeGenerator { } else { if (myGetFontMethod == null) { - myGetFontMethod = "getFont" + System.currentTimeMillis(); + myGetFontMethod = AsmCodeGenerator.GET_FONT_METHOD_NAME; } startMethodCall("this", myGetFontMethod);