|
|
|
@ -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()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 美观用 |
|
|
|
|
*/ |
|
|
|
|