自己在使用eclipse 使用jface 开发应用的时候,出现 The hierarchy of the type xxxxx is inconsistent的错误提示。
经过百度后,这个错误是指当这个类的继承类的jar没有导入或者继承类依赖的jar没有导入引起的。
所以我查了一下,使用jface需要导入的完整的jar如下:
org.eclipse.jface.text_3.5.2.r352_v20091118-0800.jar
org.eclipse.jface_3.5.2.M20100120-0800.jarorg.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar
org.eclipse.text_3.5.0.v20090513-2000.jar
org.eclipse.core.commands_3.5.0.I20090525-2000.jar
org.eclipse.core.runtime_3.5.0.v20090525.jar
org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.Jar
org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar
org.eclipse.osgi_3.5.2.R35x_v20100126.jar