|
|
|
@ -30,7 +30,6 @@ import com.fr.design.mainframe.alphafine.component.AlphaFinePane;
|
|
|
|
|
import com.fr.design.mainframe.bbs.UserInfoLabel; |
|
|
|
|
import com.fr.design.mainframe.bbs.UserInfoPane; |
|
|
|
|
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus; |
|
|
|
|
import com.fr.design.mainframe.vcs.common.VcsHelper; |
|
|
|
|
import com.fr.design.menu.KeySetUtils; |
|
|
|
|
import com.fr.design.menu.MenuDef; |
|
|
|
|
import com.fr.design.menu.SeparatorDef; |
|
|
|
@ -221,9 +220,6 @@ public class Designer extends BaseDesigner {
|
|
|
|
|
jt.stopEditing(); |
|
|
|
|
jt.saveTemplate(); |
|
|
|
|
jt.requestFocus(); |
|
|
|
|
if (DesignerEnvManager.getEnvManager().getVcsConfigManager().isVcsEnable()) { |
|
|
|
|
VcsHelper.dealWithVcs(jt); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return saveButton; |
|
|
|
@ -277,19 +273,16 @@ public class Designer extends BaseDesigner {
|
|
|
|
|
) { |
|
|
|
|
@Override |
|
|
|
|
protected void upButtonClickEvent() { |
|
|
|
|
JTemplate<?, ?> jt = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
JTemplate<?, ?> jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (jt == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
WebPreviewUtils.preview(jt); |
|
|
|
|
if (DesignerEnvManager.getEnvManager().getVcsConfigManager().isVcsEnable()) { |
|
|
|
|
VcsHelper.dealWithVcs(jt); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void downButtonClickEvent() { |
|
|
|
|
final JTemplate<?, ?> jt = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
final JTemplate<?, ?> jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (jt == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|