Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » AbstractEntryPoint and the workbench
AbstractEntryPoint and the workbench [message #1004188] Tue, 22 January 2013 19:03 Go to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 111
Registered: July 2009
Senior Member

since 2.0 RC1 there is a skeleton abstract class for the entry point called AbstractEntryPoint, which is the preferred approach to implement the entry point interface according to the new and noteworthy docs. So far, the implementation of my createUI() method looked like this:

public int createUI() {
    Display display = PlatformUI.createDisplay();
    int result = PlatformUI.createAndRunWorkbench(display, new MyWorkbenchAdvisor());
    return result;

So the WorkbenchAdvisor instance determines which initial perspective to load, which WorkbenchWindowAdvisor (configures the shell etc.) to use, and so on. With the new abstract implementation of the entry point, there doesn't seem to be any hook to use a WorkbenchAdvisor. Is this abstract class also intended to be used to run the RAP workbench? If so, do you have a suggestion how to implement it?


Re: AbstractEntryPoint and the workbench [message #1004208 is a reply to message #1004188] Tue, 22 January 2013 20:04 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Benjamin,

right, the AbstractEntryPoint is not suitable for workbench
applications. I forgot to mention this, but will add it to the docs.
Thanks for pointing this out.

EntryPoint is not deprecated and will remain supported, so you can
continue to use it as you did. Or you can also use IApplication for
workbench apps. The idea of the base class is just to make it easier for
applications that do not use the workbench and create their own shell,
layout, main loop etc.


Ralf Sternberg

Twitter: @EclipseRAP

Professional services for RAP and RCP?
Previous Topic:RWT Standalone Application fails with Firefox 3.6.13
Next Topic:RWT.getApplicationContext() in non-UI thread
Goto Forum:

Current Time: Thu Apr 26 19:33:53 GMT 2018

Powered by FUDForum. Page generated in 0.01350 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software