Missed this one earlier...the reason that MWindowTrim is an MPSCElement is 
to allow for the eventual use of Editor Area based Toolbars (something 
that the eclipse community has wanted for a long time) but I agree that it 
may be too loose.

My concern is that if we over-restrict the model we prevent clients from 
using it in new and wonderful ways. We do have to avoid being able to 
construct nonsense though.

On a related note one of the containment elements that's is currently 
missing is that there is no way to add a stack to a stack, do we need a 
StackPart ?

Eric



From:
Tom Schindl <[email protected]>
To:
[email protected]
Date:
03/10/2010 04:58 PM
Subject:
[e4-dev] More Model Question and Proposals
Sent by:
[email protected]



Hi,

While working on my Model Editor I'm going through the model and there
are question poping up. I'll try to summerize the current question and
doubts I have:

* Model-Contributions:
----------------------
Currently I found two problems where the current model is probably
having problems with because it expects the EMF-Object-Instance
available at design time.

The 2 areas are:
* Contributed Handlers who want to use commands
* Contributed Perspectives you want to use existing PartStacks, Parts,
  ...

but probably there are more. I guess we need to find a common way to
deal with this.

* WindowTrim as a PSCElement:
-----------------------------
WindowTrim is an PSCElement so that it can get part of the
Window#children-List but this also makes it useable at places the model
should protect it's usage. I think Window should have an
windowTrims-Attribute to store the trim instead of holding them inside
the children-List.

Another probably interesting question is whether one could have multiple
WindowTrim(s) with the same SideValue else one could store them in 4
trim-Attributes (left,right,top,bottom) but this is less important than
getting the trim out of the children-List.

* BindingContainer:
-------------------
I think the nameing things like HandlerContainer/Handler is better than
the BindingContainer/KeyBinding and suggest to do a minor renaming to
KeyBindingContainer.

* KeySequence:
--------------
Why is KeySequence an EClass on itsown when only KeyBinding uses it as
its superclass. Is there a reason for this, do we expect other Types to
inherit from there, else we should probably merge the attribute from
there into KeyBinding and remove the KeySequence-Type.

Tom

-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                                        geschaeftsfuehrer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5/1    A-6020 innsbruck      phone    ++43 512 935834
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev


_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to