Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Eclipse4/RCP/Modeled UI/Model Elements"

< Eclipse4‎ | RCP‎ | Modeled UI
(Abstract Elements)
m (Adding base structure to the page)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
== Overview ==
 
The Eclipse 4 model is made up of a number of interfaces. All of these interfaces begin with the letter '<tt>M</tt>' and expose a number of getter and setter methods. The model is built up of a number of abstract interfaces that are extended by a set of concrete interfaces.
 
The Eclipse 4 model is made up of a number of interfaces. All of these interfaces begin with the letter '<tt>M</tt>' and expose a number of getter and setter methods. The model is built up of a number of abstract interfaces that are extended by a set of concrete interfaces.
 +
 +
The Eclipse 4 model was derived from the best practices that evolved from previous versions of the Eclipse application platform.  The modelled UI has fundamental representations of windows, perspectives, stacks or tiles, and parts.  It adopts the command/handler/bindings model introduced in Eclipse 3.4.
  
 
==Abstract Elements==
 
==Abstract Elements==
Line 6: Line 9:
 
*<tt>MApplicationElement</tt>
 
*<tt>MApplicationElement</tt>
 
*<tt>MContribution</tt>
 
*<tt>MContribution</tt>
*<tt>MElementContainer</tt>
 
*<tt>MGenericTile</tt>
 
 
*<tt>MUIElement</tt>
 
*<tt>MUIElement</tt>
 
*<tt>MUILabel</tt>
 
*<tt>MUILabel</tt>
 +
 +
 +
=== Containers ===
 +
 +
Many of the E4AP model elements are actually containers of other elements, indicated by implementing <tt>MElementContainer</tt> or one of its subinterfaces.  A container has a set of children, and a selected element.  The selected element may be ''null''.  For many containers, the selected element indicates the element with focus.
 +
 +
*<tt>MElementContainer</tt>: the generic top-level container
 +
**<tt>MGenericStack</tt>: generally represents a container that shows or highlights only one of many elements
 +
**<tt>MGenericTile</tt>: generally represents a container that shows all of its children
 +
 +
== Concrete Elements ==
 +
=== Windows ===
 +
 +
* ''MWindow''
 +
* ''MTrimmedWindow''
 +
* ''MPerspectiveStack''
 +
* ''MPerspective''
 +
* ''MTrimContribution''
 +
 +
=== Parts ===
 +
* ''MPart''
 +
* ''MPartStack''
 +
* ''MPartSashContainer''
 +
* ''MArea''
 +
 +
=== Menus ===
 +
* ''MMenu''
 +
* ''MMenuContribution''
 +
* ''MToolBar''
 +
* ''MToolBarContribution''
 +
 +
=== Handlers ===
 +
=== Commands ===
 +
 +
== Shared Elements ==

Latest revision as of 16:33, 18 October 2011

Overview

The Eclipse 4 model is made up of a number of interfaces. All of these interfaces begin with the letter 'M' and expose a number of getter and setter methods. The model is built up of a number of abstract interfaces that are extended by a set of concrete interfaces.

The Eclipse 4 model was derived from the best practices that evolved from previous versions of the Eclipse application platform. The modelled UI has fundamental representations of windows, perspectives, stacks or tiles, and parts. It adopts the command/handler/bindings model introduced in Eclipse 3.4.

Abstract Elements

The abstract interfaces provides generic attributes that are expected to be needed by many different model elements.

  • MApplicationElement
  • MContribution
  • MUIElement
  • MUILabel


Containers

Many of the E4AP model elements are actually containers of other elements, indicated by implementing MElementContainer or one of its subinterfaces. A container has a set of children, and a selected element. The selected element may be null. For many containers, the selected element indicates the element with focus.

  • MElementContainer: the generic top-level container
    • MGenericStack: generally represents a container that shows or highlights only one of many elements
    • MGenericTile: generally represents a container that shows all of its children

Concrete Elements

Windows

  • MWindow
  • MTrimmedWindow
  • MPerspectiveStack
  • MPerspective
  • MTrimContribution

Parts

  • MPart
  • MPartStack
  • MPartSashContainer
  • MArea

Menus

  • MMenu
  • MMenuContribution
  • MToolBar
  • MToolBarContribution

Handlers

Commands

Shared Elements

Copyright © Eclipse Foundation, Inc. All Rights Reserved.