|
|
|
@ -394,9 +394,12 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
|
|
|
|
|
|
|
|
|
|
private boolean isCurrentEditing(String path) { |
|
|
|
|
JTemplate<?, ?> jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (JTemplate.isValid(jt)) { |
|
|
|
|
String editing = jt.getEditingFILE().getPath(); |
|
|
|
|
return ComparatorUtils.equals(editing, path); |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 按钮状态改变 |
|
|
|
@ -594,9 +597,9 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
|
|
|
|
|
confirmCloseAndShowVcsNewPane(jTemplate, path); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
showVcsNewPane(path); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
showVcsNewPane(path); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void confirmCloseAndShowVcsNewPane(JTemplate<?, ?> specifiedTemplate, String path) { |
|
|
|
|