eclipse-rcp

Can Spring and SWT work together for Java Desktop Applications?

耗尽温柔 提交于 2019-12-04 03:11:11
I am going to design Java Desktop Application. While I was design web application, I got plenty of choice, e.g. Spring, Strut etc. However, for Java Desktop (which is new to me), I don't find any. Is that Eclipse RCP a Java Desktop Framework, which works like Spring mvc in Web apps? I wonder, can I use Spring to enjoy the benefit of IOC, together with Eclipse RCP to enjoy the benefit of both world? Please advise. Thanks. In java desktop land, you have 2 major choices : Swing or SWT. I'm ignoring AWT on this one. QTJambi is not that used in Java. Most Java desktop applications use Java Swing.

Eclipse RCP 4 vs NetBeans Platform 8 today: what to choose?

拟墨画扇 提交于 2019-12-04 02:54:34
I'm about to start a fairly big application for my company, and since it HAS to be cross platform, we're pointing towards Java (would have loved C#, but explored the Xamarin ecosystem and the Mac part seems to be quite behind the rest package...) Now, I'm evaluating both Netbeans 8 and Eclipse 4 as RCP. Before I continue I have to say that I've been maintaining for almost a year our previous software which was written in Netbeans Platform, but it has so many performance issues and so many bugs (some of which, it seems, tied to the platform itself -- i.e. plugins not updating with no apparen

How to auto-start/eager start OSGi services on Eclipse platform

五迷三道 提交于 2019-12-04 00:48:36
问题 I develop an Eclipse RCP application which makes heavy use of OSGi bundles which provide services for later use. The use case requires the bundles to register their services (e.g. import filters) to be used later on in different situations. The OSGi bundles are build with maven-bundle-plugin. How can I tell Equinox to start the OSGi bundles automatically? The normal approach via Activator is not working. Only the lazy mode is working, but I can not touch classes within unknown bundles. I read

How to use directory containing third party bundles in a Tycho build

青春壹個敷衍的年華 提交于 2019-12-04 00:38:01
In the past, we had our bundles and features on the file system and made them available in Eclipse through a target definition file with a 'Directory' location. In this way, it was easy to use them with the Export wizards in Eclipse. Now I'm trying to build an eclipse-plugin with Tycho which has third party dependencies, e.g. javax.vecmath and org.apache.commons.math . From what I know, the best way to obtain the dependencies in a Tycho build is through a p2 repository. So I'm using one for the Eclipse bundles. But for my third-party bundles, it seems that there is no p2 repository available.

How to restrict Eclipse-RCP application to a single instance?

霸气de小男生 提交于 2019-12-03 22:12:38
问题 I would like to restrict my Eclipse-RCP application to a single instance. By this, I mean that once a user opens the application for the first time, it listens on a port and for the second access it should open the previous instance instead of showing a warning message like "already an instance is running" My RCP Application code: ApplicationInstanceListener.java interface code public interface ApplicationInstanceListener { public void newInstanceCreated(); } ApplicationInstanceManager.java

Eclipse RCP application - multi-window design for multiple monitors

爷,独闯天下 提交于 2019-12-03 16:37:33
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 Ganymede, Windows XP. A single Eclipse workbench can create multiple windows. Each window is laid out

How do I get the OSGi BundleContext for an Eclipse RCP application?

落爺英雄遲暮 提交于 2019-12-03 16:37:12
问题 I have just gotten started with an Eclipse RCP application, it is basically just one of the provided "hello world" samples. When the application boots up, I would like to look at my command-line parameters and start some services according to them. I can get the command-line parameters in IApplication.start : public Object start(IApplicationContext context) { String[] argv = (String[]) context.getArguments().get(IApplicationContext.APPLICATION_ARGS))); } But how do I get the BundleContext, so

Enumerating all my Eclipse editors?

怎甘沉沦 提交于 2019-12-03 16:29:22
I have built a simple Eclipse plugin where a user may use a TableViewer of database resources to open an editor on any of those resources. Users may therefore have zero upwards instances of the editor running. Is there an API available to get a list of those editor instances? You can get references to all open editors with: PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getActivePage().getEditorReferences(); And then check these to select the ones that reference instances of your editor type. According to the javadoc for the API a workbench can have several windows, and a window can

Eclipse RCP: Custom console

倖福魔咒の 提交于 2019-12-03 15:27:27
I am trying to create a console that would work as a shell for a custom programming language. It would be very similar to the pydev interactive console. Currently, my RCP uses the basic TextConsole and is connected to the shell via pipes so it just displays whatever the shell displays and if the user enters anything in the RCP console, the same is written in the shell. I want to be able to do a bit more such as move the caret position, add events for up and down arrow keys etc. I believe to do that I need to add a StyledText widget to the console which is done via the ConsoleViewer. So my

Eclipse RCP - all possibilities to define dependencies?

我只是一个虾纸丫 提交于 2019-12-03 14:48:58
Is there somewhere a list of all possibilities, to define dependencies in an Eclipse RCP project? maybe filtered by resources? Possible dependencies: from other Eclipse RCP Plugins by package, without explicitely defining the plugin jar libs ... as you said, you can use the following directives in the MANIFEST.MF to define dependencies Require-Bundle (for depending on specified bundles) Import-Package (for depending on packages available by export from other bundles) Bundle-Classpath (for embedded paths(!) and JARs) also, when you create a Fragment , it must define its Fragment-Host , of