import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.IFileEditorInput;
想要做一些插件开发练习,想要用这2个类,但是怎么都找不到,不知道在哪个包里,就是无法导入使用。。。
eclipse换了几个版本都不行谁能提示下怎么办呢?不知道该怎么找了。。。。
还望各位多帮帮我这小白。。。。。
------最佳解决方案--------------------
在org.eclipse.ui.ide_3.8.1.v20120828-165804.jar
------其他解决方案--------------------
新建的时候,默认会加上的啊。
------其他解决方案--------------------
新建一个插件工程的时候会加上的啊。
------其他解决方案--------------------
多谢这份,已经加到Plug-in Dependencies里,在工作空间中已经可以看见了,但还是用不了。。。
估计我这小白的够可以了,能再帮指点下么,呵呵
------其他解决方案--------------------
没加啊
------其他解决方案--------------------
你说的用不了是什么意思?先把引用的包删掉就是删除
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.IFileEditorInput;
然后鼠标放在错误的红线上,按ctrl+1,再引入试试。
------其他解决方案--------------------
刚刚真的是犯2了,已经可以用了,呵呵,多谢
现在有个这样的错误,是因为我建的插件项目版本是3.4的,然后我的eclipse是3.6的么
!SESSION 2012-11-28 23:44:42.396 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_10-rc2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Framework arguments: -product org.eclipse.sdk.ide
Command-line arguments: -product org.eclipse.sdk.ide -data F:\Workspaces\eclipse3.6.2/../runtime-EclipseApplication -dev file:F:/Workspaces/eclipse3.6.2/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog
!ENTRY org.eclipse.osgi 2 0 2012-11-28 23:44:46.801
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-11-28 23:44:46.801
!MESSAGE Bundle reference:file:/F:/Workspaces/eclipse3.6.2/LangToolsPlugin/ was not resolved.
!SUBENTRY 2 LangToolsPlugin 2 0 2012-11-28 23:44:46.801
!MESSAGE Missing required bundle org.eclipse.ui.ide.source_3.6.2.
!ENTRY org.eclipse.osgi 2 0 2012-11-28 23:44:46.803
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-11-28 23:44:46.803
!MESSAGE Bundle LangToolsPlugin_1.0.0.qualifier [290] was not resolved.
!SUBENTRY 2 LangToolsPlugin 2 0 2012-11-28 23:44:46.803
!MESSAGE Missing required bundle org.eclipse.ui.ide.source_3.6.2.
------其他解决方案--------------------