rcp

Configure a p2 update repository programmatically

时光毁灭记忆、已成空白 提交于 2019-12-22 09:57:26
问题 There is an article in the Eclipse wiki how to configure user's p2 default repositories of an RCP application by adding a static conf file to your product: Equinox/p2/Adding Self-Update to an RCP Application - Configuring the user's default repositories I want to do the same programmatically in a Java class when the user changes some configuration details. I could not find appropriate p2 API documentation for that. 回答1: Use this solution for Eclipse 3.7 based applications: final

Is it possible to use Groovy to override a method in a Java class, when that Java class is not instantiated in my code?

不问归期 提交于 2019-12-22 08:56:13
问题 I am developing an Eclipse RCP application and I recently started to use Groovy in it. So 99% of my code is still Java. I read that it is possible to use Groovy to override and add methods to Java classes and I was able to test this by adding a method to the java.lang.String. But this only works when I use the string in a Groovy class. The overridden method is not considered as being overridden in a Java class. Here's some code: /* * This is a Java class */ public class CTabItem { ... private

Project specific preference page in Eclipse RCP application

我们两清 提交于 2019-12-22 00:11:31
问题 I want to enable project-based Preference-dialogs for our product. I stumble upon 2 different problems: How do I store those project related informations. As an educated guess I would try this one: IPreferenceStore store = new ScopedPreferenceStore(new ProjectScope(project.getIProject()), Activator.PLUGIN_ID) ; Afterwards set the "project store" as I want (for example inside a preference page as store) How do I enable a Preference Page only for a project? I know I can call a preference dialog

Java RCP/SWT - “Android Toast like” dialog in Eclipse RCP

我怕爱的太早我们不能终老 提交于 2019-12-21 18:35:30
问题 Does anybody know if there exist some implementation of some popup window, something like in Android: TOAST ? 回答1: The notifications are part of Mylyn commons. To integrate them, add the Mylyn Commons Notifications feature from http://download.eclipse.org/mylyn/releases/latest to your target platform definition. The relevant bundles are org.eclipse.mylyn.commons.notifications.ui org.eclipse.mylyn.commons.notifications.core . You can add a category and an event to the notifications extension

I would like a recommendation for a book on Eclipse's Rich Client Platform (RCP)

故事扮演 提交于 2019-12-21 09:19:22
问题 I have read through several reviews on Amazon and some books seem outdated. I am currently using MyEclipse 6.5 which is using Eclipse 3.3. I'm interested in hearing from people that have experience learning RCP and what reference material they used to get started. 回答1: I've been doing Eclipse RCP development for almost 2 years now. When I first started, I wanted a book for help and many people told me, with Eclipse you're better off using the Eclipsepedia and Google. However, I started with

Eclipse RCP application - multi-window design for multiple monitors

落爺英雄遲暮 提交于 2019-12-21 05:06:15
问题 Question about Eclipse RCP and whole perspective/view/editor design - what is the best way to create application which will display multiple windows on multiple monitors? Tutorials and book I've seen always pack RCP/SWT design into views inside perspective within single application window. Should one window rule all others or they all should be equal (closing last one exits application)? How deal with the perspectives and views? Are there any other things we should know? Environment: Eclipse

How to determine which eclipse plugins are contributing to menus and toolbars and stop them

ⅰ亾dé卋堺 提交于 2019-12-20 09:43:33
问题 I am creating an RCP app which uses a host of third-party plugins. Some of these plugins contribute menus, menu items, and toolbar buttons that I do not wish to display. How can I determine which plugins are contributing these menus, menu items, and toolbar buttons and how can I disable them from doing so? 回答1: To inspect details of menu, toolbar contributions etc. Load the Eclipse Plug-in Spy in your RCP application by including the plug-in org.eclipse.pde.runtime To inspect the current

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

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

Xuggle and java library path

戏子无情 提交于 2019-12-19 11:48:06
问题 I'm writing a screencast application in Java. I decided to use Xuggle to do it and I followed up the installation instructions on the xuggle wiki. I set up the PATH environment with %XUGGLE_HOME%\bin and %XUGGLE_HOME%\lib. Everything seems OK. I made this application as a RCP plugin. I tried it on the "RCP-mail" template and the plugin is working and the video is generated correctly. But when I decided to use it on a "real" application, the plug-in crashed with a strange error message: