Tag: eclipse rcp

以编程方式保存Eclipse编辑器

我正在开发一个插件。 单击一个按钮,我想调用Eclipse的save方法或调用Eclipse工具栏上的save按钮。 这样做的方法是什么?

如何在Eclipse RCP中的视图之间进行通信?

在Eclipse RCP中,我使用IPageLayout.addView(…)为Perspective创建视图 但是这种方式我没有对视图的引用。 因此,我不知道如何告诉ViewA更新ViewB。 这里使用的最佳模式是什么?

如何从Java启动给定文件的默认(本机)应用程序?

我正在显示一个文件列表; 即我的Java应用程序(Eclipse RCP)中的xls,doc,pdf,odt等。 当用户单击该文件时,我想启动适当的(根据操作系统认为的)本机应用程序,就像在Windows资源管理器或Finder中一样。 当我在这里时:最好还显示Finder或Explorer用于不同文件类型的相同图标。 是否有一个库或Eclipse插件?

无法在32位JVM上加载64位SWT库(替换SWT文件)

我正在尝试调试此问题,但不确定我需要在哪里替换 Eclipse的SWT jar文件。 当前系统配置: Eclipse Helios 3.6 – 32 Bit JDK 1.6 JVM – 32 Bit Windows 7 – 64 Bit 错误信息: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174) at org.eclipse.swt.internal.C.(C.java:21) at org.eclipse.swt.widgets.Display.(Display.java:138) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:687) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) at de.vogella.rcp.intro.first.Application.start(Application.java:18) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) […]