Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Customizable toolbar ?


I'll be a bit more definitive...yes, it will...;-).

Paul's right that it's a function of ensuring that the renderer has the appropriate listeners (bindings) to correctly keep the 'on screen' UI in synch with -all- model changed. The default (SWT) renderer will be able to do this, Folks who write their own presentations (new part factories...) would have to ensure that their bindings are equally capable if they want the resulting presentation to be properly functional.

Once the model/UI synch'ing is correct then it's a matter of determining the 'meta' UI (Ed should like that one...;-), the UI we want to use to modify the 'live' UI model. Unfortunately it becomes somewhat tricky here for technical reasons, many of the 'obvious' UI mechanisms such as dragging ToolbarItems aren't available directly through SWT (even more so for menus/menuitems) due to platform constraints. On the other hand a simple tree view for the structure and a property view is easy and intuitive (if not as elegant) and allows DnD, multiple selection etc, not just for menus and tb's but for stacks, views, trim as well.

Creating a 'direct manipulation' UI (akin to the current one we have for moving views/stacks in the current eclipse) is possible but would appear to require that at least some of the editing operations to be done in a model fashion; consider what multiply 'selecting' UI elements in the running environment implies (selection feedback, [Ctrl-]click to select is out...).

The beauty of all this is that it -doesn't matter- what the 'meta' UI is, all it's doing in reality is manipulating the UI model. Whether the 'Remove toolitem 'x' from tb 'y' / add 'x' to tb 'z' at index 2' change comes from a DnD operation in a tree or through direct manipulation of some sort (or even through the execution of some JScript snippet !!) is irrelevant.

Defining the 'meta' UI would be a great idea for a separate thread...anyone interested?

Eric




Paul Webster <pwebster@xxxxxxxxxxxxxxxxxxx>
Sent by: e4-dev-bounces@xxxxxxxxxxx

03/19/2009 08:54 AM

Please respond to
E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>

To
E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>
cc
Subject
Re: [e4-dev] Customizable toolbar ?





2009/3/19 Oberhuber, Martin <Martin.Oberhuber@xxxxxxxxxxxxx>:
> Would that be simplified by modeled workbench?

It could be ... but it would depend more on the renderer than the
model.  The renderer would need to hook itself up correctly to respond
to add/remove/move events in the model.  The the renderer (or
something else at the widget level) would need to provide the ability
to respond to user events and update the model.

PW

--
Paul Webster
Hi floor.  Make me a sammich! - GIR
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev


Back to the top