eclipse-rcp

Developing an Eclipse RCP application

空扰寡人 提交于 2019-12-20 10:55:45
问题 It's my first time to develop an RCP application with Eclipse 3.8. My question may seem weird but it is really confusing for me. Where can I put the code for my application? If I create the needed classes for my app where can I use their objects? In the Application.java class? I'm confused, and Internet tutorials focus only on the visual aspect and SWT, not on how to code. 回答1: An eclipse RCP application is basically an eclipse plugin. I suggest starting off with an RCP application based on a

Adding a filter to the Project Explorer in Eclipse

旧巷老猫 提交于 2019-12-20 10:47:23
问题 I want to add a new filter to the Project Explorer, to hide from the user some projects that are created automatically in an Eclipse RCP Application. So far I've found two extension points: org.eclipse.ui.ide.resourceFilters Allows me to filter Navigation org.eclipse.jdt.ui.javaElementFilters Allows me to filter the Java Viewers I expect there is a similar extension point for the Project Explorer, but so far I haven't had any luck getting it. I tried importing org.eclipse.ui.navigator and org

Eclipse RCP plugin + embedded Jetty + JSF

爷,独闯天下 提交于 2019-12-20 10:26:20
问题 I made an RCP plugin with embedded Jetty as following: 1) In plugin.xml -> Dependencies, I have added the following: org.eclipse.equinox.http.jetty org.eclipse.equinox.http.registry org.mortbay.jetty.server javax.servlet 2) In plugin.xml -> Extensions, I have added a Servlet extension point ( org.eclipse.equinox.http.registry.servlet ) class: TemperatureServlet alias:/temperature The TemperatureServlet looks like this: import java.io.IOException; import javax.servlet.ServletException; import

Eclipse Preference store persistance

吃可爱长大的小学妹 提交于 2019-12-20 09:39:53
问题 I have a multiple user/location RCP application that currently utilizes several user configurable options. Some preferences are for specific to the station, some are specific to the user. The options are from a preference store which saves the *.prefs files to "workspace.metadata.plugins\org.eclipse.core.runtime.settings". This would be fine if we were only using a single machine/user. But if a user were to go to another station, then the user would be using whatever preferences were setup

How do I get the XML Dom node of where my cursor is in Eclipse?

白昼怎懂夜的黑 提交于 2019-12-20 06:16:47
问题 How do I get the xml dom node and xpath to where my cursor is in an Eclipse custom XML editor that I am building. It is a textEditor. I am implementing IContentAssistProcessor thus far. 回答1: You can get the position of the cursor in the text editor and you can implement an XML reader that stores the locations of the XML nodes using the SAX Locator. For a mouse event, you could then scan the document and find the best matching node. I am not sure how performant this is but this is where I

Override the dependencies added during running a project as an Eclipse Application

可紊 提交于 2019-12-20 05:53:26
问题 I am trying to write a custom launch configuration while running a plugin project as an eclipse application. I have to run the plugin with limited dependencies. Is it possible to override methods in org.eclipse.pde.launching.EclipseApplicationLaunchConfiguration ? If yes then how do I do it ? 回答1: You can't easily override the methods in EclipseApplicationLaunchConfiguration . That would require writing a new launch configuration - probably by using the org.eclipse.debug.core

JFreeChart: Add and sync a srollbar when zooming a chart (Eclipse plugin / SWT)

不问归期 提交于 2019-12-20 05:35:18
问题 I am using JFreeChart library to plot something in an Eclipse view and currently my code for view initialization looks as follows: @Override public void createPartControl(Composite parent) { JFreeChart chart = null; // Created via different object chart = graph.createLineChart("Test Graph", "x", "y"); ChartComposite frame = new ChartComposite(parent, SWT.NONE, chart, true); frame.setRangeZoomable(false); parent.layout(true); } I wanted to add scrolling to my graph when the user zooms in, but

Add Package explorer in RCP-Application result in loosing some icon

夙愿已清 提交于 2019-12-20 04:47:22
问题 In my eclispe rcp application I added a package explorer adding org.eclipse.jdt.ui When I use my rcp-app, as I create a new Project by "New Project Wizard" to add a "General Project", the project is correctely created, but the corresponding icon in package explorer view is not loaded. What is the plugin I have to add to my application to see that all the (platform) Icons correctly ? Thanks a lot 回答1: This is a known issue in Eclipse RCP applications. https://bugs.eclipse.org/bugs/show_bug.cgi

Add Package explorer in RCP-Application result in loosing some icon

百般思念 提交于 2019-12-20 04:47:14
问题 In my eclispe rcp application I added a package explorer adding org.eclipse.jdt.ui When I use my rcp-app, as I create a new Project by "New Project Wizard" to add a "General Project", the project is correctely created, but the corresponding icon in package explorer view is not loaded. What is the plugin I have to add to my application to see that all the (platform) Icons correctly ? Thanks a lot 回答1: This is a known issue in Eclipse RCP applications. https://bugs.eclipse.org/bugs/show_bug.cgi

Why does my application requires admin priviliges when placed in C:\Program Files on windows 10 but not on windows 7?

随声附和 提交于 2019-12-20 03:16:42
问题 My Java RCP application ( App.exe ) was recently converted from 32-bit to 64-bit . Since it is a 64-bit application i have used NSIS to create an installer which will dump all the required files along with App.exe in C:\Program Files. When the App.exe is run, i am getting a security exception(Access denied) when the application tries to open files (in C:\Program Files) in edit mode to dump the results/logs. When i run App.exe as administrator it works fine. It also works fine in windows 7 64