eclipse-rcp

How to extend the source menu in Eclipse? (or: What is its locationURI?)

孤街醉人 提交于 2019-12-18 07:04:26
问题 I am developing an eclipse plugin and trying to extend the source menu (mainMenubar/Source - visible when editing in the java-editor) in Eclipse 3.7. The documentation says to rely on the org.eclipse.ui.menus -extension point since the older extension points are deprecated. It is a complete secret to me where to obtain reliable locationURIs, but I finally managed to find some plausible URI with the Plugin Spy (following an advice here). So the following should be the extension snippet for the

Eclipse RCP: Target platform - Eclipse vs. Equinox?

微笑、不失礼 提交于 2019-12-18 04:52:47
问题 I'm just starting with OSGi and Eclipse RCP. Could someone explain to me the difference between "Eclipse" and "Equinox" as the target platform, when creating a new eclipse plugin project? I still know that Equinox is Eclipse's implementation of OSGi. I read in some articles that eclipse rcp is also based on Equinox. So where is the difference between the target platform you have to choose in a new Eclipse Plugin Project? Best regards 回答1: It is about the environement in which the module you

Recursively list all files in eclipse workspace programmatically

依然范特西╮ 提交于 2019-12-17 14:28:32
问题 I am getting workspace by calling ResourcesPlugin.getWorkspace().getRoot() . How I can list all files(IFile) recursively in the workspace. 回答1: The root, projects and folders in a workspace all implement the IContainer interface. Call IContainer.members() to get all the resources in the container. Something like: void processContainer(IContainer container) throws CoreException { IResource [] members = container.members(); for (IResource member : members) { if (member instanceof IContainer)

In RCP Eclipse(Neon) Development, how to enable a created perspective

余生颓废 提交于 2019-12-13 22:05:08
问题 I have created the Perceptive Stack and added 2 perspective in Application.e4xmi. Then i have created 2 perspective class in my package and connected them via class URI. Now i am new to rcp development and I want to invoke one of the perspective. First i want to enable the toolbar of perspective of eclipse(as i am willing to extend and use the perspective feature of eclipse). (refer image below) Then I want to see only my perspectives in in the perspective menu. and (Refer image below) My

No Persistence provider for EntityManager in RCP Pulgin Project

旧巷老猫 提交于 2019-12-13 21:31:06
问题 I am getting the No Persistence provider for EntityManager for named X in an RCP Plugin application I am working on. I have used hibernate as ORM and javax.persistence. I am using Derby for my database. All the hibernate Jar and supporting jars i have grouped into a plugin and added to the current project i am woking on. I am at my wits end. Any help would be appreciated. i have as of now looked at different places for answers but not found any. I have placed the Persistence.xml file in the

Eclipse RCP view not coming on the left side on the screen

筅森魡賤 提交于 2019-12-13 21:09:06
问题 After taking cue from this ques. I ended up here but the problem is, view is coming on right hand side of the screen and not occupying the full space. Here is the current screenshot . and the code is public class MonitorView extends CoreView { public MonitorView(final Composite parent) { super(parent); setDisplayName(I18N("Visual Monitoring of iCommand")); // setLayout(new FillLayout()); final Composite composite=GUIToolkit.newComposite(parent, SWT.FILL, new GridData(SWT.TOP,SWT.LEFT,true

RCP e4 buttons group D&D

∥☆過路亽.° 提交于 2019-12-13 19:33:32
问题 I want to implement the Drag and Drop that you can do with the buttons group on eclipse (positioned on the toolbar). The purpose is allowing to drag them to the sides of the main window. it's possible? 来源: https://stackoverflow.com/questions/31385417/rcp-e4-buttons-group-dd

java.lang.OutOfMemoryError even if there is enough RAM available

孤人 提交于 2019-12-13 18:30:08
问题 I am trying to open a file in eclipse programmatically. the associated editor for the file is defined in an external plugin which I don't have control over the source code. I use the code snippet shown below to open the file. However I always got Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-Windows" I tried to increase the memory available for eclipse run configuration, but that didn't help. Any ideas what can cause this? private void openFiles

How to make jdk.nashorn.api.scripting.JSObject visible in plugin [duplicate]

半腔热情 提交于 2019-12-13 17:51:39
问题 This question already has answers here : Access restriction: The type 'Application' is not API (restriction on required library rt.jar) (18 answers) Closed 4 years ago . I have an Eclipse RCP that interacts with java script. Now with Java 8, nashorn is used and code that depended on org.mozilla.javascript (plug-in org.mozilla.javascript_1.7.2.v201005080400.jar) must be changed to use jdk.nashorn.api.scripting. But when i try to use this import in Eclipse, it does not see it import jdk.nashorn

Why does first call to java.io.File.createTempFile(String,String,File) take 5 seconds on Citrix?

℡╲_俬逩灬. 提交于 2019-12-13 15:41:32
问题 While debugging slow startup of an Eclipse RCP app on a Citrix server, I came to find out that java.io.createTempFile(String,String,File) is taking 5 seconds. It does this only on the first execution and only for certain user accounts. Specifically, I am noticing it Citrix anonymous user accounts. I have not tried many other types of accounts, but this behavior is not exhibited with an administrator account. Also, it does not matter if the user has access to write to the given directory or