📄 utils.java
字号:
package TreeJuxtaposer;import java.io.File;public class Utils { public final static String nexus = "nexus"; public final static String newick = "nh"; public final static String tre = "tre"; // second nexus file type (from MacClade/PAUP?) public final static String nexus_file_description = "nexus file ( .nexus, .tre )"; public final static String newick_file_description = "newick file ( .nh )"; // the generic option (*) will load trees with newick filter /* * Get the extension of a file. */ public static String getExtension(File f) { String ext = null; String s = f.getName(); int i = s.lastIndexOf('.'); if (i > 0 && i < s.length() - 1) { ext = s.substring(i+1).toLowerCase(); } return ext; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -