问题标签 [eclipse]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
28564 浏览

eclipse - 如何使用 Subclipse SVN 插件更新到修订版?

在 subclipse 中,Team > Update 菜单选项执行“svn update -r HEAD”。

我想运行“svn update -r [revision number]”,但找不到可以让我更新到除了 HEAD 版本之外的任何内容的菜单选项。

0 投票
6 回答
9719 浏览

eclipse - org.eclipse.swt.SWTError:未添加项目

当错误“org.eclipse.swt.SWTError: Item not added”再次出现时,有人知道如何恢复永不启动的日食吗?

我正在使用 WebSphere Studio Site Developer (Windows) 5.1.0

.metadata/log 文件中唯一的堆栈跟踪是:

SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 sep 17, 2008 16:39:00.564
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException: org.eclipse.swt.SWTError: Item not added
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at org.eclipse.swt.SWTError.<init>(SWTError.java:82)
at org.eclipse.swt.SWTError.<init>(SWTError.java:71)
at org.eclipse.swt.SWT.error(SWT.java:2358)
at org.eclipse.swt.SWT.error(SWT.java:2262)
at org.eclipse.swt.widgets.Widget.error(Widget.java:385)
at org.eclipse.swt.widgets.Menu.createItem(Menu.java:464)
at org.eclipse.swt.widgets.MenuItem.<init>(MenuItem.java:77)
at org.eclipse.ui.internal.AcceleratorMenu.setAccelerators(AcceleratorMenu.java:177)
at org.eclipse.ui.internal.WWinKeyBindingService.updateAccelerators(WWinKeyBindingService.java:316)
at org.eclipse.ui.internal.WWinKeyBindingService.clear(WWinKeyBindingService.java:175)
at org.eclipse.ui.internal.WWinKeyBindingService.update(WWinKeyBindingService.java:267)
at org.eclipse.ui.internal.WWinKeyBindingService$1.partActivated(WWinKeyBindingService.java:107)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:49)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:47)
at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:1180)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:1833)
at org.eclipse.ui.internal.WorkbenchWindow$7.run(WorkbenchWindow.java:1496)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:1483)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1363)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1263)
at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1223)
at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState(Workbench.java:1093)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:870)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)

0 投票
3 回答
10161 浏览

java - 从 IWorkspaceRoot 和位置字符串获取 IFile

这是一个 Eclipse 问题,您可以假设所有这些 Eclipse 类的 Java 包都是org.eclipse.core.resources.

我想获得与我拥有IFile的位置相对应的位置String

我有封闭的IWorkspaceIWorkspaceRoot。如果我有IPath与上述位置对应的位置,我可以简单地调用IWorkspaceRoot.getFileForLocation(IPath).

我如何IPath从该位置获得对应的String?还是有其他方法可以获得相应的IFile

0 投票
17 回答
128164 浏览

eclipse - 在 Eclipse 中添加 SVN 存储库

我正在尝试将 SVN 存储库添加到 Eclipse。

我已经安装了Subclipse,它似乎工作正常。但是,当我尝试“添加新的 SVN 存储库”时,我输入了这个,例如:

http://svn.python.org/projects/peps/trunk

我明白了:

验证位置时出错:“org.tigris.subversion.javahl.ClientException:RA 层请求失败 svn:‘ http ://svn.python.org/projects/peps/trunk’的选项:无法连接到服务器(http:// /svn.python.org ) " 仍然保留位置吗?

我知道我的 Eclipse 可以连接到 Internet,因为我之前下载了 Subclipse(我不得不更改我的代理设置)。

对于我尝试添加的其他 SVN 位置,我收到了类似的消息。

解决办法是什么?

0 投票
3 回答
2903 浏览

eclipse - Eclipse 3.3.2/MyEclipse doesn't recognize xml as ant files

Using eclipse 3.3.2 with MyEclipse installed. For some reason if a file isn't called build.xml then it isnt' recognised as an ant file. The file association for *.xml includes ant and says "locked by 'Ant Buildfile' content type.

The run-as menu is broken. Even if the editor association works run-as doesn't.

The ant buildfiles in question are correctly formatted. They work fine if you call them build.xml or if you use them anywhere else. Eclipse just won't recognise and thus wont allow you to run them.

0 投票
2 回答
573 浏览

eclipse - eclipse plugin.xml 页面的源代码

我想知道在哪里可以找到 eclipse 用来在 plugin.xml 文件中显示表单的代码。特别是我正在寻找 plugin.xml 的扩展选项卡中使用的表单布局

0 投票
9 回答
36837 浏览

eclipse - 如何在 Eclipse 中直接热键到文件搜索选项卡

当我使用CTRL+H时,我最终会出现在 Java Search 选项卡上。我非常想要一个直接进入文件搜索的快捷方式。那可能吗?

请参阅此处的图片了解我在说什么: 在此处输入图像描述

0 投票
3 回答
995 浏览

eclipse - 调试 Eclipse 应用程序问题:重复启动

我在从 Eclipse 调试 Eclipse 应用程序时遇到问题。当我启动调试配置时,Eclipse 应用程序启动然后反复停止。它显示启动画面,然后消失。这是重启前的最远距离:

我正在使用 Eclipse SDK 3.4.0 版。

这是什么原因造成的?

0 投票
4 回答
10399 浏览

eclipse - How can I import eclipse JDT classes in a project

I want to do the following imports in a class.

How can I import the JDT within Eclipse? Cheers.

0 投票
17 回答
49548 浏览

eclipse - 无法将服务器添加到移动的工作区

我从网上下载了这个工作区,并尝试从全新安装的 Eclipse Ganymede 的 tomcat 服务器上运行它。这个特定的项目带有自己的工作区。

当我选择 Tomcat v6.0 时,我收到一条消息

无法使用所选类型创建服务器

不过,可以使用较旧的 tomcat 版本。

我想我必须重新创建一些配置设置。问题是哪一个?这似乎是一些奇怪的错误,因为创建一个新的动态 Web 项目让我可以为它们两个配置 tomcat