Skip to main content



      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 12:44 Go to next message
Eclipse UserFriend
(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 07:46 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 13:05:42 EDT 2025

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

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

Back to the top