访问插件中的资源方式
URL url = Activator.getDefault().getBundle().getEntry("abcd.txt");
URL url = Activator.getDefault().getBundle().getEntry("abcd.txt");
另外还有getResource方法。
使用普通的
File file= new File("abc.txt");
FileReader fr = new FileReader(file);
会报FileNotFoundException异常