Browse Source

fix:删除无用方法

newui
kerry 2 years ago
parent
commit
4205af5198
  1. 11
      designer-base/src/main/java/com/fr/design/file/MultiTemplateTabMenuFactory.java

11
designer-base/src/main/java/com/fr/design/file/MultiTemplateTabMenuFactory.java

@ -7,11 +7,9 @@ import com.fr.design.gui.imenu.UIScrollPopUpMenu;
import com.fr.design.i18n.Toolkit;
import com.fr.design.mainframe.JTemplate;
import com.fr.design.utils.TemplateUtils;
import com.fr.file.FILE;
import com.fr.general.IOUtils;
import com.fr.stable.StringUtils;
import com.fr.stable.collections.CollectionUtils;
import com.fr.third.javax.annotation.Nonnull;
import javax.swing.BorderFactory;
import javax.swing.Icon;
@ -113,15 +111,6 @@ public class MultiTemplateTabMenuFactory {
}
private void closeAndFreeLock(@Nonnull JTemplate<?, ?> template) {
FILE file = template.getEditingFILE();
// 只有是环境内的文件,才执行释放锁
if (file != null && file.isEnvFile()) {
// release lock
TemplateResourceManager.getResource().closeTemplate(file.getPath());
}
}
/**
* 美观用
*/

Loading…
Cancel
Save