FURCAS-dev / FURCAS

A Eclipse Language Workbench for view-based textual modelling based on EMF
http://www.furcas.org
11 stars 2 forks source link

Refactor textBlocks MM? (#9) #26

Open StephanErb opened 13 years ago

StephanErb commented 13 years ago

composite pattern, absoluteOffset, left/right neighbor, zero redundancy in saved data

StephanErb commented 13 years ago

Stephan Erb (stephan@dev.static-void.de) wrote on 2010-12-19 13:00:46

Some additional aspects to consider:

* Introduce a dedicated ultra root node which serves as a kind of view handle. We should not just have a implicit root block as we always have to account for the case that it might be replaced by a parser or pretty printer action. An explicit root block will help us to maintain the references to a TextBlocks model even if we need to drop/replace a TextBlock because it has been deleted and/or replaced by a new one.

* Alternatives should be encoded with real references and not by a list of positive and negative integers.

* We have to introduce status information about partiality. As of now, the pretty printer cannot know whether an element is not represented within a TB model because it was left out on purpose, or because it was only created after the TB model has initially been created. 

* There is potential to simplify the corresponding/referencesElements references as discussed before.