Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Show a wizard during creation
Show a wizard during creation [message #188306] Tue, 19 July 2005 18:06 Go to next message
Eclipse UserFriend
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 #188359 is a reply to message #188306] Wed, 20 July 2005 08:32 Go to previous messageGo to next message
Andreas Holtz is currently offline Andreas HoltzFriend
Messages: 53
Registered: July 2009
Member
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
Re: Show a wizard during creation [message #188439 is a reply to message #188359] Wed, 20 July 2005 16:46 Go to previous message
Eclipse UserFriend
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
Previous Topic:GEF 3.1 and Fc4 native eclipse
Next Topic:TitleBarBorder and FrameBorder
Goto Forum:
  


Current Time: Thu Dec 12 20:39:11 GMT 2024

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

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

Back to the top