eclipse-rcp

How can I use a local directory as target platform for a Tycho build?

倖福魔咒の 提交于 2019-12-02 19:34:41
I want to build an RCP-Application with a target platform which is a directory with Maven/Tycho. Now I have some troubles that the dependencies could not be resolved. Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from de.test.prototype.main 1.0.0.qualifier to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from de.test.prototype.main 1.0.0.qualifier to bundle org.eclipse.core.runtime 0.0.0.", ... All in all there are several dependency resolution problems, so I think Tycho can't use my target

Eclipse Preference store persistance

自古美人都是妖i 提交于 2019-12-02 19:32:24
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 for that station. Is it possible to specify another form for persistence (not files)? FelixM It sounds

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

How to get the logs of platform plugins in eclipse

旧街凉风 提交于 2019-12-02 18:12:17
问题 I am new to eclipse plugin development. I would like to customise some of the eclipse functionalities in my plugin. So I would like to know, what happens in the background when I do some operation in eclipse. For e.g., File->New->Project. I need the logs/Trace of which plugin/Class/Function is called? 回答1: You can use the -debug <path to options file> argument when you start Eclipse to specify the path of a debug options file which is used to enable various debug tracing options. You may also

How to use IntelliJ IDEA for Eclipse plugin development?

谁都会走 提交于 2019-12-02 17:25:31
I have to develop a plugin for Eclipse but I prefer IntelliJ IDEA as IDE. Is it possible to configure IDEA for Eclipse plugin development? It should be possible by using Eclipse Tycho . You'll be using maven and that works perfectly with IntellIj. Tycho is focused on a Maven-centric, manifest-first approach to building Eclipse plug-ins, features, update sites, RCP applications and OSGi bundles. Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGi bundles with Maven. It might be possible using Osmorc , but I haven't tried that. However, I have a method that works

Eclipse Luna: Handlers' @CanExecute methods not called due to wrong context

点点圈 提交于 2019-12-02 15:23:30
问题 I upgraded my eclipse RCP application from Juno to Luna. This caused my application toolbar to be permenantly disabled. I found a solution in this thread: Eclipse Luna: Handlers' @CanExecute methods not called (Solution: generate event manually). But alas, the cure didn't work :-(. I drilled down with the debugger to find the root cause of failure. I found that in HandlerServiceHandler.class the method setEnabled(Object evaluationContext) fails. This is due to the extraction of the wrong

Sharing an Eclipse workspace across computers?

别说谁变了你拦得住时间么 提交于 2019-12-02 14:09:02
I need to design or use 5 to 10 PCs (with eclipse) but with the same workspace, how can I do that? I already tried but I can not share the folder of the workspace, please help Fredrik What do you want to achieve, actually? Because the workspace is supposed to be user specific. It contains things like settings, how perspectives are setup, which view to show where. Which means if two users share a workspace they will continually write of each others settings. And to enforce this, as soon as you starts Eclipse with a workspace, it is locked preventing someone else to use it. So sharing workspace

Search-Plugin for Eclipse

非 Y 不嫁゛ 提交于 2019-12-02 12:02:51
i have written am Eclipse-plugin and now need to extend it with a search functionality. I know that Eclipse has a search feature, but it does only search the workspace and what i need is to look after matches within my own plugin and than to show the result in a tree structure. Is there any examples of search-plugins for Eclipse? I would appreciate a link of some hint :D Check out the org.eclipse.search.searchPages extension. 来源: https://stackoverflow.com/questions/10219441/search-plugin-for-eclipse

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

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

我的未来我决定 提交于 2019-12-02 09:31:34
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? 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"); The standard way is to have a properties (either java.util.Properties or XML) file in which is stored the database details. This can be writeable by the user of course, and