|
|
@ -38,6 +38,9 @@ public class TemplateTool { |
|
|
|
private static Listener<JTemplate> switchListener = new Listener<JTemplate>() { |
|
|
|
private static Listener<JTemplate> switchListener = new Listener<JTemplate>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void on(Event event, JTemplate jTemplate) { |
|
|
|
public void on(Event event, JTemplate jTemplate) { |
|
|
|
|
|
|
|
if (!(jTemplate instanceof JForm)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
JFormType currentType = JFormType.OLD_TYPE; |
|
|
|
JFormType currentType = JFormType.OLD_TYPE; |
|
|
|
if (AdaptiveSwitchUtil.isSwitchJFromIng()) { |
|
|
|
if (AdaptiveSwitchUtil.isSwitchJFromIng()) { |
|
|
|
currentType = DesignerUIModeConfig.getInstance().newUIMode() ? JFormType.NEW_TYPE : JFormType.OLD_TYPE; |
|
|
|
currentType = DesignerUIModeConfig.getInstance().newUIMode() ? JFormType.NEW_TYPE : JFormType.OLD_TYPE; |
|
|
|