我创建了一个简单的 Xtext 项目,我想生成一些规范文件。使用ANTTLR工具,我将根据Xtext项目的规范文件生成一些其他文件。我创建了一个插件,它使用规范文件并使用 ANTLR 解析器自动生成我需要的其他文件。我的问题是我是否可以将此插件与 Xtext 编辑器集成?更具体地说,如果一个用户想要使用该插件,它将看到 Xtext 编辑器,然后它将创建规范文件,最后,通过按按钮将使用 ANTLR 工具生成文件(最后一步已经完成。)有人有什么想法吗?
只是一个简单的问题:我需要向 Eclipse 插件项目添加 Maven 依赖项。该项目没有 POM 文件,因此我将其转换为 Maven 文件。现在我有plugin.xml 文件和pom.xml 文件。POM包含我需要满足的依赖关系,但它被忽略了;我的意思是,我无法解析引用该导入的源代码中的导入。
你能帮助我吗?蒂
我读到了有关 Tycho 插件的信息,但在线配置不起作用。
我使用“AspectJ 开发工具”插件设置了 Eclipse。我正在尝试调试一些使用 AspectJ 的代码并逐步执行它,但它无法匹配源代码行,因为 AspectJ 在编译时添加了额外的内容。似乎没有人抱怨这似乎是一个重大缺陷(无法调试!),所以我希望我只需要调整一些东西即可使其工作。我究竟做错了什么?
我正在尝试改变我的工作方式,这样我就不会在坐在电脑前 8 个小时后感到头疼,所以我想在 Eclipse 中玩转颜色,看看它是否有帮助。
我听说过这个 Eclipse Color Theme 插件的好评。
我通过 Eclipse Marketplace 安装,将 .xml 文件主题放入硬盘驱动器上 eclipse 目录中的“dropins”目录中,选择 window->prefrences->general->apperence->??? “颜色主题”在哪里?它只是不在那里!
有人知道可能是什么问题吗?我正在运行 Eclipse Juno EE 和另一个插件 EGit。
手动安装?我已经重新安装了颜色主题插件两次了!
[解决方案] 我刚刚通过另一篇文章的帮助发现了这个问题。我没有以管理员身份运行,因为我的 Program Files 目录受到保护。答案:始终以管理员身份或在 Linux 系统 SUDO 上运行 Eclipse。由于缺乏权限,我的文件未安装。
我使用带有参数的新命令创建了 eclipse-rcp 项目的plugin.xml。
ArrayList<parameterization> parameters = new ArrayList<parameterization>();
IParameter iparam;
//get the command from plugin.xml
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
ICommandService cmdService = (ICommandService)window.getService(ICommandService.class);
Command cmd = cmdService.getCommand("org.ipiel.demo.commands.click");
//get the parameter
iparam = cmd.getParameter("org.ipiel.demo.commands.click.paramenter1");
Parameterization params = new Parameterization(iparam, "commandValue");
parameters.add(params);
//build the parameterized command
ParameterizedCommand pc = new ParameterizedCommand(cmd, parameters.toArray(new Parameterization[parameters.size()]));
//execute the command
IHandlerService handlerService = (IHandlerService)window.getService(IHandlerService.class);
handlerService.executeCommand(pc, null);
Run Code Online (Sandbox Code Playgroud)
我尝试了这个例子来传递参数并且它有效。
本示例中的问题是我只能传递 String 类型的参数。(因为参数化)
我想传递哈希映射的参数,并且通常传递任何对象。
我试过这段代码
IServiceLocator serviceLocator = PlatformUI.getWorkbench();
ICommandService commandService = (ICommandService) serviceLocator.getService(ICommandService.class);
ExecutionEvent executionEvent = new ExecutionEvent(cmd, …Run Code Online (Sandbox Code Playgroud) 下面的代码表明:
1) 复合时 HOVER 被完全忽略。如何启用?
2) 跟踪 ENTER/EXIT,但是当鼠标进入子控件区域时,父复合材料会收到 EXIT 事件。如何使复合体的中间区域成为复合体的一部分?
public class TryHover {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
Composite composite = new Composite(shell, SWT.BORDER);
composite.setLayout(new GridLayout(1, false));
Label label1 = new Label(composite, SWT.BORDER);
label1.setText("Label 1");
Label label2 = new Label(composite, SWT.BORDER);
label2.setText("Label 2");
composite.addListener(SWT.MouseEnter, new Listener() {
@Override
public void handleEvent(Event event) {
System.out.println("ENTER");
}
});
composite.addListener(SWT.MouseExit, new Listener() {
@Override
public void handleEvent(Event event) { …Run Code Online (Sandbox Code Playgroud) 我正在使用Eclipse for PHP Developers版本,并且我正在尝试找到如何在 Eclipse 中启用自动换行功能,因为我有长行的大代码。
有没有可用的插件或者 Eclipse 有自己的自动换行功能?
我的 Eclipse 详细信息:

我不知道该怎么做,所以如果你指导我,我会很感激。
谢谢。
我使用的是 Eclipse Mars 4.5.2。当我的应用程序运行覆盖率测试时(到目前为止有 317 个测试方法),当它即将完成时(大约运行 274 个方法),我收到错误,但找不到解决方案。
首先是一个弹出窗口,内容如下:
无覆盖数据
本次报道会话期间未收集任何报道数据。
请不要从 Eclipse 手动终止 Java 进程。
第二个弹出窗口:
“com.mountainminds.eclemma.internal.core.launching.AgentServer”遇到问题。转储覆盖日期时出错(代码 5013)。
[详细信息:] 转储覆盖率数据时出错(代码 5013)。连接重置
然后控制台日志如下:
Java 运行时环境检测到致命错误:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) 在 pc=0x000000005f9b96af,pid=2024,tid=3772
JRE 版本:Java(TM) SE 运行时环境 (8.0_66-b18)(内部版本 1.8.0_66-b18) Java VM:Java HotSpot(TM) 64 位服务器 VM(25.66-b18 混合模式 windows-amd64 压缩 oops) 有问题框架:V [jvm.dll + 0x4b96af]
无法写入核心转储。Windows 客户端版本默认不启用小型转储
包含更多信息的错误报告文件保存为:X:\xxxxx\hs_err_pid2024.log
编译重放数据保存为:X:\xxxxx\replay_pid2024.log
如果您想提交错误报告,请访问: http: //bugreport.java.com/bugreport/crash.jsp
我已经被这个问题困扰了几个星期,正如我所说,我找不到任何解决方案,只能在四五年前的 EclEmma 网站上找到类似的错误报告。
我尝试为 JUnit 设置以下 JVM 参数-Xms2g -Xmx2g:
我的测试没有任何数据库连接、服务器连接或网络连接。他们也不发出任何 HTTP 请求。
我尝试重新安装 EclEmma 插件以及重新安装 Eclipse。问题仍然存在。
我无法从“安装新软件”和 Eclipse Marketplace 中安装 Subclipse。
当我尝试安装 Subclipse 4.2.3 时,我得到了以下信息:

对于第三个选项“显示原始错误并构建我自己的解决方案”,我收到以下错误:
Cannot complete the install because of a conflicting dependency.
Software being installed: Subclipse 4.2.3.201707071932 (org.tigris.subversion.subclipse.feature.group 4.2.3.201707071932)
Software currently installed: Subversion Client Adapter (Required) 1.10.3 (org.tigris.subversion.clientadapter.feature.feature.group 1.10.3)
Only one of the following can be installed at once:
Subversion Client Adapter 1.10.3 (org.tigris.subversion.clientadapter 1.10.3)
Subversion Client Adapter 1.9.4.2 (org.tigris.subversion.clientadapter 1.9.4.2)
Cannot satisfy dependency:
From: Subversion Client Adapter (Required) 1.10.3 (org.tigris.subversion.clientadapter.feature.feature.group 1.10.3)
To: org.tigris.subversion.clientadapter [1.10.3]
Cannot satisfy dependency:
From: Subclipse 4.2.3.201707071932 (org.tigris.subversion.subclipse.feature.group …Run Code Online (Sandbox Code Playgroud) 在 Eclipse 中打开报表设计视角时出现此异常。
org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.birt.report.designer.ui.ide was unable to load class org.eclipse.birt.report.designer.ui.editors.ReportEditorProxy.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:282)
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:230)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:322)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:300)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPart(CompatibilityEditor.java:66)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:338)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:1001)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:411)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:333)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1015)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:781)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:752)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:746)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) …Run Code Online (Sandbox Code Playgroud) eclipse-plugin ×10
eclipse ×6
java ×4
eclipse-rcp ×2
aspectj ×1
birt ×1
color-scheme ×1
editor ×1
line ×1
maven ×1
mouseevent ×1
plugin.xml ×1
pom.xml ×1
subclipse ×1
swt ×1
testing ×1
word-wrap ×1
xtext ×1