Show a wizard during creation [message #188306] |
Tue, 19 July 2005 18:06 |
Eclipse User |
|
|
|
Originally posted by: daniel.rohe.stud.tu-ilmenau.de
Hello,
I want to show a wizard after the user selects a ToolEntry from the palette
and clicked on a position in the graphical viewer where to insert the new
object. In the wizard the user could edit the properties of the model
element, after finishing the wizard the object is added to the root model
object with a GEF command. Where should I integrate the code to start the
wizard?
Kind Regards,
Daniel
|
|
|
|
Re: Show a wizard during creation [message #188439 is a reply to message #188359] |
Wed, 20 July 2005 16:46 |
Eclipse User |
|
|
|
Originally posted by: daniel.rohe.stud.tu-ilmenau.de
Thanks,
that's exactly what I've searched.
Kind Regards,
Daniel
"Andreas Holtz" <A.Holtz@gmx.net> schrieb im Newsbeitrag
news:dbl27h$sim$1@news.eclipse.org...
> Daniel Rohe schrieb am 19.07.2005 20:06:
>> Hello,
>>
>> I want to show a wizard after the user selects a ToolEntry from the
>> palette and clicked on a position in the graphical viewer where to insert
>> the new object. In the wizard the user could edit the properties of the
>> model element, after finishing the wizard the object is added to the root
>> model object with a GEF command. Where should I integrate the code to
>> start the wizard?
>>
>> Kind Regards,
>> Daniel
>
> Hi Daniel,
>
> I resolved it by implementing an own CreationToolEntry.
> Extend the Class CreationToolEntry and overwrite the createTool()-method.
> The returned Tool does the creation of the dialog in its
> performCreation(int button)-method, so you have to overwrite it, too.
> When creating your palette, you have to add your CreationToolEntry-class.
>
> I hope this helps. I give you the ressources of an example which helps me
> a lot.
>
> Example:
> cvs.berlios.de
> /cvsroot/kobold
> AssetCreationTool.java
>
> Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.04021 seconds