|
|
|
@ -501,10 +501,10 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
|
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
String path = DesignerFrameFileDealerPane.getInstance().getSelectedOperation().getFilePath(); |
|
|
|
|
path = StableUtils.pathJoin(ProjectConstants.REPORTLETS_NAME, path); |
|
|
|
|
boolean currentEditing = isCurrentEditing(path); |
|
|
|
|
// 如果模板已经打开了,关掉,避免出现2个同名tab(1个是模板,1个是版本)
|
|
|
|
|
closeOpenedTemplate(path, currentEditing); |
|
|
|
|
if (VcsHelper.getInstance().isLegacyMode()) { |
|
|
|
|
boolean currentEditing = isCurrentEditing(path); |
|
|
|
|
// 如果模板已经打开了,关掉,避免出现2个同名tab(1个是模板,1个是版本)
|
|
|
|
|
closeOpenedTemplate(path, currentEditing); |
|
|
|
|
FileVersionsPanel fileVersionTablePanel = FileVersionsPanel.getInstance(); |
|
|
|
|
fileVersionTablePanel.showFileVersionsPane(); |
|
|
|
|
stateChange(); |
|
|
|
|