Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4 RCP application: (1) error log view (2) about dialog (3) app hooks
e4 RCP application: (1) error log view (2) about dialog (3) app hooks [message #653996] Sat, 12 February 2011 17:44 Go to next message
Karl Weber is currently offline Karl WeberFriend
Messages: 63
Registered: September 2010
Member
(1) With 3.x one can use the error log view to display error messages in RCP applications. How can one display these messages in an e4 RCP application?

(2) With 3.x one can add an about dialog to an RCP application. How can one do this with e4 RCP applications?

(3) With 3.x, one can hook into the startup process of an RCP application, e.g. in the preStartup method of the ApplicationWorkbenchAdvisor. In one RCP application I am using this hook to display a dialog for the user to select a database connection. How could one do this in an e4 RCP application?
Re: e4 RCP application: (1) error log view (2) about dialog (3) app hooks [message #654158 is a reply to message #653996] Mon, 14 February 2011 12:46 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 02/12/2011 12:44 PM, karl.weber99@googlemail.com wrote:
> (1) With 3.x one can use the error log view to display error messages in
> RCP applications. How can one display these messages in an e4 RCP
> application?
> (2) With 3.x one can add an about dialog to an RCP application. How can
> one do this with e4 RCP applications?

These are only supported in the compatibility layer at the moment. In
effect running a 3.x RCP app, with the down side it is hard to access
the e4 functionality.

The error log might be hostable from within an e4 app, but it would
require wiring up things yourself.

> (3) With 3.x, one can hook into the startup process of an RCP
> application, e.g. in the preStartup method of the
> ApplicationWorkbenchAdvisor. In one RCP application I am using this hook
> to display a dialog for the user to select a database connection. How
> could one do this in an e4 RCP application?

You can provide a Lifecycle Manager to your app. We currently support 4
lifecycle points in package org.eclipse.e4.ui.workbench.lifecycle:
PostContextCreate
PreSave
ProcessAdditions
ProcessRemovals

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:org.eclipse.e4.core.di.InjectionException: Could not find satisfiable constructor
Next Topic:Updating to 4.1 messed things up
Goto Forum:
  


Current Time: Fri Dec 19 00:41:27 GMT 2014

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

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