rcp

Eclipse-RCP Wrong encoding when deploying the product

浪子不回头ぞ 提交于 2019-12-03 02:46:49
I am creating an RCP application, with many Greek messages, so everything is in UTF-8. As I develop and test through Eclipse IDE, everything is fine. When I am deploying through "Eclipse Product export Wizard" the resulting exe does not correctly display the Greek letters. I know that I am missing something stupid, but I have no idea what. Could you please help? (copied from the question - so this shows as having an answer) I found the solution although it was not as trivial as I anticipated. Eclipse gives the ability to control the build process with build.properties, in which you can specify

How to express inter project dependencies in Eclipse PDE

﹥>﹥吖頭↗ 提交于 2019-12-03 02:10:24
I am looking for the best practice of handling inter project dependencies between mixed project types where some of the projects are eclipse plug-in/OSGI bundle projects (an RCP application) and others are just plain old java projects (web services modules). Few of the eclipse plug-ins have dependencies on Java projects. My problem is that at least as far as I've looked, there is no way of cleanly expressing such a dependency in Eclipse PDE environment. I can have plug-in projects depend on other plug-in projects (via Import-Package or Require-Bundle manifest headers), but not of the plain

Eclipse 4 RCP (aka E4) documentation

痞子三分冷 提交于 2019-12-03 01:40:35
Is there at least anything other than Vogella's tutorials and his book , which is completely based on those tuts? Examples from his repo are often either incomplete/unfinished/won't run and those examples even don't match the book actually.. I'd like to find at least some javadoc for this, because any step to a side and I'm completely lost on how to accomplish different tasks and what functionality is available. Lars Vogel's Tutorials are the most complete and up-to-date documentation on Eclipse 4 development. Second to this is asking questions in Eclipse 4 Community Forum . Last option is to

What of Eclipse project .metadata can I safely ignore in Git/Mercurial?

本秂侑毒 提交于 2019-12-03 01:10:23
问题 We have the code for an Eclipse RCP application in an Eclipse workspace containing multiple Java projects. We are using Mercurial with a simple .hgignore just *.class (but the same issue would pertain to Git). Even a small change to the code can result in many of the files in .metadata getting changed. I'd like to exclude some or all of the .metadata from version control. If we exclude it completely, the workspace is lost. Does anyone know what we can safely exclude? Alternatively, how can we

Is it possible to automate the creation of a inno setup package with ant?

ぃ、小莉子 提交于 2019-12-02 21:27:57
I am creating an Eclipse RCP application. I am following Joel's advice in the following article "Daily Builds are your friend": http://www.joelonsoftware.com/articles/fog0000000023.html So, I've written a nice build script that creates an Eclipse RCP product and that runs unit tests on the code. All results are then distributed to the developer's list (after some grumbling). Now my next step, I want it to create the setup package that I normally create manually using the inno setup compiler. The question is, how would I get around creating this package automatically? I guess I can generate the

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

蓝咒 提交于 2019-12-02 19:38:11
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? tekumara 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 selection, press ALT-SHIFT-F1 To inspect menus, press ALT-SHIFT-F2 and then select the menu item Use

which is the best way to externalize a database configuration on a desktop app?

隐身守侯 提交于 2019-12-02 19:03:28
问题 I'm working in a desktop app, and we're using Eclipse RCP with EclipseLink. All my database configuration is inside a class, but I'll need these thing (database URL, password, username) configurable. Which is the best way to do that? 回答1: Easiest way would be to use some simple property file and java.util.Properties to read it. You can read the file from classpath, e.g: Class.getResourceAsStream ("resource.properties"); 回答2: The standard way is to have a properties (either java.util

What of Eclipse project .metadata can I safely ignore in Git/Mercurial?

自作多情 提交于 2019-12-02 14:39:18
We have the code for an Eclipse RCP application in an Eclipse workspace containing multiple Java projects. We are using Mercurial with a simple .hgignore just *.class (but the same issue would pertain to Git). Even a small change to the code can result in many of the files in .metadata getting changed. I'd like to exclude some or all of the .metadata from version control. If we exclude it completely, the workspace is lost. Does anyone know what we can safely exclude? Alternatively, how can we recreate it if we pull the code down to a fresh computer? The files i'm personally aware of are:

How to load image to view in RCP?

耗尽温柔 提交于 2019-12-02 13:52:02
问题 I am developing an RCP plugin project that includes certain views.First view take employee details like name , address etc.There is an option to upload employee image using browse button.Second view shows the details that have entered in the first view.All details except photo is displaying fine. It shows a red square in the place of photo label. My code for setting photo is shown like this : Label photoLabel = new Label(parent, SWT.NONE); photoLabel.setBounds(420, 233, 100, 106); photoLabel

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

旧巷老猫 提交于 2019-12-02 10:33:27
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 ? 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.launchConfigurationTypes extension point to define a new launch type. EclipseApplicationLaunchConfiguration always uses the