提交 95ec173a 编写于 作者: C chenjianqiang

1.增加刷新

2.修复工作空间问题
3.窗体icon
上级 3eadd030
......@@ -176,6 +176,13 @@ public class HostsFrame {
clip.setContents(new StringSelection(fileNameAndPathMap.get(name)), null);
});
nameListMenu.add(itemCopyPath);
//6 刷新
JMenuItem itemReload = new JMenuItem("刷新", getMenuIcon("reload"));
itemReload.addActionListener(itemE -> {
//重新拉取列表
parseHostList();
});
nameListMenu.add(itemReload);
}
/**
......
......@@ -181,7 +181,7 @@ public class FileUtils {
* @param file 文件夹对象
*/
public static void checkDirectory(File file) {
if (!file.exists() && file.isDirectory()) {
if (!file.exists()) {
try {
boolean newFile = file.mkdirs();
} catch (Exception e) {
......
......@@ -11,7 +11,12 @@
]]></description>
<depends>com.intellij.modules.platform</depends>
<extensions defaultExtensionNs="com.intellij">
<toolWindow id="Hosts" anchor="bottom" factoryClass="com.lishihe.hosts.factory.ToolWindowsFactory"
secondary="true" canCloseContents="false"/>
<toolWindow id="Hosts"
anchor="bottom"
factoryClass="com.lishihe.hosts.factory.ToolWindowsFactory"
secondary="true"
canCloseContents="false"
icon="AllIcons.Actions.Annotate"
/>
</extensions>
</idea-plugin>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册