1) 打开选择的文件所在目录,并选择文件
OpenExplorer
https://github.com/samsonw/OpenExplorer/downloads
将jar包放到eclipse的plugins目录中,重新eclipse
2) 打开Java文件对应的Class文件
A) External Tool Configurations -> Program -> New
B) Name: explorerClass
Location: 绝对路径/explorerClass.bat
Working Directory: ${project_loc}
Arguments: ${resource_loc}
C) explorerClass.bat
@echo off
set fname=%1
set fname=%fname:\src\main\java\=\target\classes\%
set fname=%fname:.java=.class%
echo %fname% > c:/my.lx.txt
explorer /n,/select, %fname%
3) inc文件关联到jsp格式
A) General -> Content Types -> Text -> JSP -> File associations -> Add
B) *.inc