|
|
@ -277,19 +277,19 @@ public class Designer extends BaseDesigner { |
|
|
|
) { |
|
|
|
) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void upButtonClickEvent() { |
|
|
|
protected void upButtonClickEvent() { |
|
|
|
JTemplate<?, ?> jt = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
JTemplate<?, ?> jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
if (jt == null) { |
|
|
|
if (jt == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
WebPreviewUtils.preview(jt); |
|
|
|
if (DesignerEnvManager.getEnvManager().getVcsConfigManager().isVcsEnable() && saveButton.isEnabled()) { |
|
|
|
if (DesignerEnvManager.getEnvManager().getVcsConfigManager().isVcsEnable()) { |
|
|
|
|
|
|
|
VcsHelper.dealWithVcs(jt); |
|
|
|
VcsHelper.dealWithVcs(jt); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
WebPreviewUtils.preview(jt); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void downButtonClickEvent() { |
|
|
|
protected void downButtonClickEvent() { |
|
|
|
final JTemplate<?, ?> jt = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
final JTemplate<?, ?> jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
if (jt == null) { |
|
|
|
if (jt == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|