Jump to: navigation, search

Difference between revisions of "Eclipse4/RCP"

m (Model Elements)
(Workbench Renderers)
Line 57: Line 57:
  
 
==Workbench Renderers==
 
==Workbench Renderers==
 +
 +
With the Eclipse 4 Application Platform, the UI model has been separated from how the model is rendered.  Eclipse 4 ships with a standard SWT renderer, defined in ''org.eclipse.e4.ui.workbench.renderer.swt''. 
 +
 +
Renderers are installed through the XXX extension point.  See YYY for an example of how to add a renderer.
 +
 +
=== What is the difference between #visible and #toBeRendered? ===
 +
 +
''#visible'' captures whether the rendered UI elements are in presentation or hidden from view.  With the SWT renderer, when ''#visible = false'', then the element's widgets are reparented to an invisible shell; the widget is still alive, but won't be seen.
 +
 +
''#toBeRendered'' captures whether this UI element should be rendered; it serves as an instruction to the renderer as to whether the element should or should not be rendered.  When set to ''true'', the renderer should explicitly When set to ''false'', all resources are removed and nulled.
  
 
==Application Services==
 
==Application Services==

Revision as of 11:06, 20 October 2011

Introduction

Eclipse 4 is the next generation platform for building Eclipse-based tools and rich client desktop applications. This new release makes it easier for developers to develop and assemble applications and tools based on the Eclipse platform.

Eclipse 4 introduces the following:

  • a model-based user interface and a new CSS-based declarative mechanism for application styling. These facilities make it easier to design and customize an application user interface. This also adds greater flexibility to UI layout, making it easier to make a user interface look different from an IDE.
  • a new services-oriented programming model that makes it easier to use discreet application services of the Eclipse platform.

Programming Model

Compatibility Layer

Workbench Model

Source material: http://wiki.eclipse.org/E4/UI/Modeled_UI

Model Elements

Workbench Renderers

With the Eclipse 4 Application Platform, the UI model has been separated from how the model is rendered. Eclipse 4 ships with a standard SWT renderer, defined in org.eclipse.e4.ui.workbench.renderer.swt.

Renderers are installed through the XXX extension point. See YYY for an example of how to add a renderer.

What is the difference between #visible and #toBeRendered?

#visible captures whether the rendered UI elements are in presentation or hidden from view. With the SWT renderer, when #visible = false, then the element's widgets are reparented to an invisible shell; the widget is still alive, but won't be seen.

#toBeRendered captures whether this UI element should be rendered; it serves as an instruction to the renderer as to whether the element should or should not be rendered. When set to true, the renderer should explicitly When set to false, all resources are removed and nulled.

Application Services

Source material: http://wiki.eclipse.org/E4/Eclipse_Application_Services

Frequently Asked Questions

We have assembled a set of FAQs for Eclipse 4 development and another set for more general questions.