Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Add Dialogs to Application Model
Add Dialogs to Application Model [message #1122215] Tue, 01 October 2013 10:36 Go to next message
Jürgen Weinberger is currently offline Jürgen WeinbergerFriend
Messages: 42
Registered: August 2012
Member
Hi!

I just started some tests with e4 to see if its possible to migrate our application.
Now my question is, if its possible to extend the Application model to define and store some Dialogs.
To make my self clearer it would be nice to define a dialog just like a part in the application model. So that its size, position and maybe some default data (like the preference dialog) could be automaticaly persisted in the model. To open the dialog somebody would just need it's id and a view model to be filled by the dialog.

We're also thinking of migrating to the JavaFX renderer so it would be nice if this model attribute wouldn't depend on SWT.

Is this even possible? Where could i start implementing this my self? Has anybody already tried something like this?

Thanks in advance!

best regards
Re: Add Dialogs to Application Model [message #1122235 is a reply to message #1122215] Tue, 01 October 2013 10:58 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

On 01.10.13 12:36, Jürgen Weinberger wrote:
> Hi!
>
> I just started some tests with e4 to see if its possible to migrate our
> application.
> Now my question is, if its possible to extend the Application model to
> define and store some Dialogs. To make my self clearer it would be nice
> to define a dialog just like a part in the application model. So that
> its size, position and maybe some default data (like the preference
> dialog) could be automaticaly persisted in the model. To open the dialog
> somebody would just need it's id and a view model to be filled by the
> dialog.

Yes. Extending the application model in this regard is possible. We
already discussed this for the core model but I don't think there's a
plan item to make this possible in 4.4 yet [1].

Most likely both Dialogs & Wizards could be defined at the model level,
it would make the keybinding story a lot easier ;-)

>
> We're also thinking of migrating to the JavaFX renderer so it would be
> nice if this model attribute wouldn't depend on SWT.
>

Anything in the application model is widget agonstic, so if upstream
adds support for it JavaFX would simply implement the needed renderers ;-)

> Is this even possible? Where could i start implementing this my self?

Yes. Just create your own .ecore and reference the original one. I guess
you need to extend the Application and Window elements and naturally add
your new Dialog element.

> Has anybody already tried something like this?
>

You mean implementing dialogs or extending the application model? The
first question you need to answer is until when do you need this support?

If you want it for 4.3 you'd have to do it using your own .ecore, if you
want it for 4.4 you should show up at the e4-dev mailing list and make a
proposal together with a commitment or find someone who is able to do it
on your behalf ;-)

I for myself think it makes a whole lot of sense to also deal with
dialogs in the model but that's my personal opinion and I have no
OSS-cycles to drive it.

BTW: If done external you also need to provide appropriate tooling hooks
so that you can edit your e4xmi in the editor. We at e(fx)clipse stayed
away until now to extend the model ourselves but e.g. vaaclipse has done it.

I have no problem to provide such a solution as part of e(fx)clipse if
the upstream project is not interested but once more I have oss-cycles
to implement it.

Tom

[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=324956
Previous Topic:com.ibm.icu => the small version please.
Next Topic:Sash size and closed parts not persisted when added by a fragment
Goto Forum:
  


Current Time: Thu Apr 25 08:22:49 GMT 2024

Powered by FUDForum. Page generated in 0.03204 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top