Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it inevitable that SWT is a dependency in an Eclipse RCP application?

Say, I have an application based on the e4 platform using pure JavaFX instead of SWT as a rendering technology, like this one. Does it still need some SWT libraries indirectly? After all, the Eclipse platform is based on SWT. Am I understanding it the right way? I can't see any direct dependencies from the Dependencies tab as following though.

enter image description here

like image 630
kenshinji Avatar asked Dec 22 '16 09:12

kenshinji


People also ask

What is Eclipse RCP application?

The Rich Client Platform (RCP) is an exciting new way to build Java applications that can compete with native applications on any platform. This tutorial is designed to get you started building RCP applications quickly. It has been updated for Eclipse 3.1.2.

What Eclipse 4?

Eclipse 4 is the next generation platform for building Eclipse-based tools and rich client desktop applications. This new release makes it easier for developers to develop and assemble applications and tools based on the Eclipse platform.


Video Answer


1 Answers

The core of Eclipse 4 is not based on SWT. The UI toolkit used for Eclipse is defined by a set of renderers. Each renderer is responsible for showing a particular object from the application model (part stack, toolbar, and so on).

The standard renderers use SWT but e(fx)clipse changes this to a set using JavaFX.

A single renderer factory is used to create all these renderers. The renderer factory is defined by the rendererFactoryUri property of the org.eclipse.core.runtime.products extension point.

This only applies to the Eclipse core, lots of Eclipse plug-ins are coded using SWT directly and would have to be rewritten to use JavaFX.

like image 74
greg-449 Avatar answered Oct 18 '22 09:10

greg-449