Skip to main content


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: 136
Registered: July 2009
Senior Member
Hi,

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());
    display.dispose();
    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?

Cheers,
Ben


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.

Regards,
Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

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


Current Time: Sat Apr 20 00:18:00 GMT 2024

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

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

Back to the top