Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Papyrus/Mars Work Description/Improvments/Embedded Editors"
(First step of reflexion) |
(Add some ideas) |
||
Line 14: | Line 14: | ||
* provide its own Direct Editors for a MetaClass | * provide its own Direct Editors for a MetaClass | ||
* associate its editor as default embedded editor for a MetaClass | * associate its editor as default embedded editor for a MetaClass | ||
+ | |||
The API gives extensions points to define a Direct Editor and to associate this one to a MetaClass : | The API gives extensions points to define a Direct Editor and to associate this one to a MetaClass : | ||
'''org.eclipse.papyrus.extensionpoints.editors.DirectEditor''' | '''org.eclipse.papyrus.extensionpoints.editors.DirectEditor''' | ||
− | Three kind of editor can be implemented : | + | <br/>Three kind of editor can be implemented : |
* Simple editor | * Simple editor | ||
* Advanced editor | * Advanced editor | ||
* Popup editor | * Popup editor | ||
− | + | <gallery> | |
− | + | File:Old_EmbeddedEditor_Preferences.PNG |Preferences page | |
− | + | File:DirectEditor StateArt Conception.JPG | Conception | |
+ | </gallery> | ||
=== Requirements === | === Requirements === | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 41: | Line 43: | ||
;Constraint | ;Constraint | ||
:It permits to restrict the use of an editor with a specific element. This concept is applied on the object to edit. | :It permits to restrict the use of an editor with a specific element. This concept is applied on the object to edit. | ||
+ | ==== Conception ==== | ||
+ | The preferences page needs to evolve to contain the constraint concept. The user needs to know if this constraint is correctly integrated to Papyrus. | ||
+ | <br/> | ||
+ | In preferences page, the upper frame will contain a tree structure with Object to Edit and defined constraints on it. This structure will have two levels. | ||
===Bugzilla=== | ===Bugzilla=== | ||
The bugzilla enhancement item tracking progress of this enhancement is | The bugzilla enhancement item tracking progress of this enhancement is | ||
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=448384 Bug 448384] | * [https://bugs.eclipse.org/bugs/show_bug.cgi?id=448384 Bug 448384] | ||
* [https://bugs.eclipse.org/bugs/show_bug.cgi?id=441962 Bug 441962] | * [https://bugs.eclipse.org/bugs/show_bug.cgi?id=441962 Bug 441962] |
Revision as of 12:15, 25 February 2015
Contents
Papyrus Embedded Editors (XText direct editors)
This page describes the work done to improve embedded editors feature inside Papyrus.
State of art
Concepts in place
- Object to Edit
- this is the source to edit and which correspond to a particular matching (i.e its MetaClass).
- Direct Editor
- editor binds with F2 keyboard to edit an element without use the properties view.
- Language
- it is used by editor to edit the element
Conception
Today, Papyrus gives to user the possibilities to :
- provide its own Direct Editors for a MetaClass
- associate its editor as default embedded editor for a MetaClass
The API gives extensions points to define a Direct Editor and to associate this one to a MetaClass :
org.eclipse.papyrus.extensionpoints.editors.DirectEditor
Three kind of editor can be implemented :
- Simple editor
- Advanced editor
- Popup editor
Requirements
Id | Description |
---|---|
PEE_001 | A constraint shall be defined on MetaClass of a DirectEditor |
PEE_002 | Preferences page has to integrate the constraint concept |
Enhancements
Concepts
A new concept needs to be added in this feature.
- Constraint
- It permits to restrict the use of an editor with a specific element. This concept is applied on the object to edit.
Conception
The preferences page needs to evolve to contain the constraint concept. The user needs to know if this constraint is correctly integrated to Papyrus.
In preferences page, the upper frame will contain a tree structure with Object to Edit and defined constraints on it. This structure will have two levels.
Bugzilla
The bugzilla enhancement item tracking progress of this enhancement is