我希望能够在Zend Studio for Eclipse中快速查找文件,而无需通过几十个文件夹和数百个文件的树视图进行路由.
我真正追求的是在我输入时过滤文件名的东西.想想Mac上的聚光灯,或Vista中开始菜单上的过滤器.
eclipse eclipse-plugin keyboard-shortcuts zend-studio text-search
我想为Eclipse插件创建一个自动安装程序(即不通过"Update Manager").我的场景很简单:用户关闭Eclipse,将下载的JAR放入dropins文件夹,启动Eclipse,其余过程自动完成.
在较旧的Eclipse版本中,在P2时代之前,Eclipse(仍然有)一个类InstallCommand可以用来将pluings安装到当前运行的平台中.
虽然这在Eclipse 3.4和3.5中仍然有效,但它表现不正常:最明显的是,以这种方式安装的插件无法自动卸载(它变暗).
JavaDoc声称InstallCommand已弃用,应替换为P2替代方案.但是,我找不到合适的工具.有一个P2导向器,但它是为从命令行作为单独的应用程序运行而构建的.可以从Eclipse中调用它,但它实际上并没有被删除.例如,进度监控和错误报告效果不佳.
有人知道一个很好的选择吗?
谢谢,Zviki
我正在编写一个Eclipse插件,它使用JDT AST ASTParser来解析方法.我在该方法中寻找创建特定类型的对象.
当我找到a时ClassInstanceCreation,我会调用getType()它来查看实例化的类型.我想确保那里处理的完全解析类型是我认为的那个,所以我告诉结果Type对象resolveBinding().我得null回去,即使没有编译错误,即使我叫setResolveBindings(true)上我ASTParser.我给了我的ASTParser(via setSource())ICompilationUnit包含我的方法,因此解析器可以访问整个工作区上下文.
final IMethod method = ...;
final ASTParser parser = ASTParser.newParser(AST.JLS3);
parser.setResolveBindings(true);
parser.setSource(method.getCompilationUnit());
parser.setSourceRange(method.getSourceRange().getOffset(), method.getSourceRange().getLength());
parser.setKind(ASTParser.K_CLASS_BODY_DECLARATIONS);
final TypeDeclaration astRoot = (TypeDeclaration) parser.createAST(null);
final ClassInstanceCreation classInstanceCreation = walkAstAndFindMyExpression(astRoot);
final Type instantiatedType = classInstanceCreation.getType();
System.out.println("BINDING: " + instantiatedType.resolveBinding());
Run Code Online (Sandbox Code Playgroud)
为什么要resolveBinding()回来null?我怎样才能获得绑定信息?
我想知道是否有一个Eclipse的插件可以执行一些java表达式?
例如,我想找到SimpleDateFormat的正确模式,我可以创建新的类,然后我在其中初始化几个格式化程序,在编译和执行后,我将看到一个结果,但我希望能够在这个插件中编写那些格式化程序在没有新类的情况下查看并查看执行后的结果.
谢谢
编辑:根据Derby社区,Eclipse插件不会在Derby项目中自动维护或自动构建.
但是还有人还在使用这个插件吗?因为如果是这样,他/她是否有一个发布实际构建的地方 - 哪些(希望)会在Eclipse Juno下运行?
或者,如果这是一个真正的死胡同,还有什么选择?
原来的问题
运用
问题
当尝试添加新的derby性质时(右键单击java项目 - >"Apache Derby" - >"Add Apache Derby nature")我只收到以下消息:
Apache Derby Ui Plug-in
Error adding Derby jars to the project:
org.eclipse.ui.internal.WorkbenchWindow cannot be cast to
org.eclipse.jface.window.ApplicationWindow
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
我正在使用Eclipse v21.10.1-569685和JDK版本1.7.0_13-b20当我下载新的更新(帮助 - >安装新软件)后,Eclipse要求我重新启动软件,但我遇到了这个错误:
!SESSION 2013-04-10 06:49:45.348 -----------------------------------------------
eclipse.buildId=v21.1.0-569685
java.version=1.7.0_13
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.android.ide.eclipse.adt.package.product
!ENTRY org.eclipse.osgi 2 0 2013-04-10 06:49:47.671
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-04-10 06:49:47.671
!MESSAGE Bundle reference:file:plugins/org.eclipse.e4.ui.workbench.addons.swt_0.10.1.v20120827-151636.jar was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.addons.swt 2 0 2013-04-10 06:49:47.672
!MESSAGE Missing required bundle org.eclipse.e4.ui.model.workbench_0.9.1.
!SUBENTRY …Run Code Online (Sandbox Code Playgroud) 对于其中一个副产品,我希望操纵eclipse中编辑器上显示的行号.基本上对于几行,我希望按以下顺序显示:
1
2
3
3_1
3_2
3_3
4
and so..
Run Code Online (Sandbox Code Playgroud)
哪个类处理行号.我试着查看源代码并发现MarkerField但是它不是很有帮助.这甚至可能吗?
我正在使用随附的Eclipse-Groovy插件的最新版本(2.8.0)groovy-all-2.1.5.jar.我将Guice添加到我的Groovy项目中,当我从Eclipse内部运行它们时,我在控制台输出中收到以下错误:
Caught: java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
at net.me.myapp.utils.restclient.RestClient.<init>(RestClient.groovy:57)
at net.me.myapp.inject.UserServiceClientModule.configure(UserServiceClientModule.groovy:34)
at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
at com.google.inject.Guice.createInjector(Guice.java:95)
at com.google.inject.Guice.createInjector(Guice.java:72)
at com.google.inject.Guice.createInjector(Guice.java:62)
at net.me.myapp.UserServiceClient.<init>(UserServiceClient.groovy:37)
at net.me.myapp.UserServiceClient.main(UserServiceClient.groovy:45)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
... 12 more
Run Code Online (Sandbox Code Playgroud)
根据这个答案,因为ShortTypeHandling直到2.3.x才添加.所以我现在想附加groovy-all-2.3.3.jar到我的Eclipse项目的类路径.
问题是我似乎没有编辑权限来更改库在Groovy Libraries库中使用的库.当我手动将2.3.3 JAR添加到我的构建路径时,我收到以下错误:
Caught: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
Caused by: groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-all is loaded in version 2.1.5 and you are trying to load version 2.3.3
Run Code Online (Sandbox Code Playgroud)
我有什么选择?
我一直在寻找一种方法来更改Eclipse中java.util.logging.Logger的日志输出颜色。因为我还没有真正找到解决颜色变化并将其与Logger类结合的解决方案,所以我想在这里记录我的解决方案。
eclipse-plugin ×10
eclipse ×8
java ×5
android ×1
buildpath ×1
compilation ×1
derby ×1
eclipse-jdt ×1
eclipse-juno ×1
groovy ×1
installation ×1
logging ×1
p2 ×1
text-search ×1
zend-studio ×1