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 14:03 Go to next message
Benjamin Wolff is currently offline Benjamin Wolff
Messages: 111
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 15:04 Go to previous message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
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:Command Framework Support
Next Topic:RAP vs SWT Selection Listener for singleton menus
Goto Forum:
  


Current Time: Fri Aug 29 08:27:40 EDT 2014

Powered by FUDForum. Page generated in 0.02178 seconds