Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Creating a simple Dialog (Button, Textfield, Label)
Creating a simple Dialog (Button, Textfield, Label) [message #417867] Thu, 27 March 2008 15:57 Go to next message
Eclipse UserFriend
Originally posted by: muba_u.web.de

Hi guys,
I searched a lot to find something that could help me, but either I am
not using the right keywords or its too simple and noone bothered to ask
that yet.

I am working on a vocable programm. I can add vocables and so one and
now I want to make a dialog where people can actually test how much they
have learned.

So basically I want a dialog where I have a Label which will be set to
an vocable and the user can enter the translation into a textfield.
Then he presses a Button and he get the result whether it was right or
wrong and gets the next vocable.

My problem is that I dont know how to implement the visual stuff. I
don't even know how to implement just an button on a empty dialog. If
you could tell me how to do that I might be able to figure out how the
whole thing works.

It would be cool to get it on a extra view (like Outline, Property are
seperates Views). But if that does not work I will just use an extra tab
on an existing view.
Re: Creating a simple Dialog (Button, Textfield, Label) [message #417872 is a reply to message #417867] Thu, 27 March 2008 17:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is more of a general Eclipse question than an EMF specific one.
Certainly you could build such a thing using SWT laying out the controls
like Button and Text on Canvas and then sticking that canvas into a
viewer that you add as an additional tab tot he generated editor. You
need to learn a bit about SWT and JFace to make it all work...


draGy wrote:
> Hi guys,
> I searched a lot to find something that could help me, but either I am
> not using the right keywords or its too simple and noone bothered to
> ask that yet.
>
> I am working on a vocable programm. I can add vocables and so one and
> now I want to make a dialog where people can actually test how much
> they have learned.
>
> So basically I want a dialog where I have a Label which will be set to
> an vocable and the user can enter the translation into a textfield.
> Then he presses a Button and he get the result whether it was right or
> wrong and gets the next vocable.
>
> My problem is that I dont know how to implement the visual stuff. I
> don't even know how to implement just an button on a empty dialog. If
> you could tell me how to do that I might be able to figure out how the
> whole thing works.
>
> It would be cool to get it on a extra view (like Outline, Property are
> seperates Views). But if that does not work I will just use an extra
> tab on an existing view.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Creating a simple Dialog (Button, Textfield, Label) [message #417874 is a reply to message #417872] Thu, 27 March 2008 17:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: muba_u.web.de

So this has nothing to do with EMF?
Don't I have to modify a method or something? Because I want to access
the Model I am using. Isn't there some tutorial or something like that
that uses emf with some custom dialogs?
Re: Creating a simple Dialog (Button, Textfield, Label) [message #417876 is a reply to message #417874] Thu, 27 March 2008 18:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mostly it's about building controls with SWT. For 2.4, EMF has
integration support for JFace data binding, so that might help a little
bit... But I haven't got any EMF-specific information I can point you
to for any of this...


draGy wrote:
> So this has nothing to do with EMF?
> Don't I have to modify a method or something? Because I want to access
> the Model I am using. Isn't there some tutorial or something like that
> that uses emf with some custom dialogs?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Model instance constraints/rules
Next Topic:Re: Teneo resources and the EMF Validation framework do not properly work together
Goto Forum:
  


Current Time: Thu Apr 25 08:20:10 GMT 2024

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

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

Back to the top