Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to make the "New" diagram wizard dissapear
How to make the "New" diagram wizard dissapear [message #173358] Thu, 21 February 2008 07:44 Go to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Hi all :)

My users gets very confused with having to define to files for every
diagram they create. So I'm trying to remove that wizard.

I've defined 2 URI's so that the diagram gets created using these
instead of the one's from the wizard.

I've removed the addPages method, so now an empty dialog shows. The user
presses Finish, and all is well.

However, I really want to remove the dialog all together. Any ideas?


Cheers,

Tomas
Re: How to make the "New" diagram wizard dissapear [message #173394 is a reply to message #173358] Thu, 21 February 2008 09:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Tomas Zijdemans wrote:
> Hi all :)
>
> My users gets very confused with having to define to files for every
> diagram they create. So I'm trying to remove that wizard.
>

Arg. This is really getting on my nervers.. I've tried so many solutions.

How hard can it be to launch my custom code instead of the creation wizard?


Tomas
Re: How to make the "New" diagram wizard dissapear [message #173413 is a reply to message #173394] Thu, 21 February 2008 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: external.deyaa.adranale.de.bosch.com

Hi Tomas,

if you want to completely remove your diagram wizard from the new wizards,
you have to remove the extension from the plugin.xml of your diagram
plugin. just remove the xml text like this one:

<extension point="org.eclipse.ui.newWizards">
<wizard
name="My Product Diagram"
icon="icons/obj16/ModelDiagramFile.gif"
category="org.eclipse.ui.MyCompany"
class="com.mycompany.myproduct.diagram.part.XXXCreationWizard "

id=" com.mycompany.myproduct.model.diagram.part.XXXCreationWizard ID ">
<description>
Creates a new diagram.
</description>
</wizard>
</extension>


If you want to change what the wizard does, you have to modify the code of
the generated XXXCreationWizard.

i hope this will help

have fun!

Deyaa



Tomas Zijdemans wrote:

> Tomas Zijdemans wrote:
>> Hi all :)
>>
>> My users gets very confused with having to define to files for every
>> diagram they create. So I'm trying to remove that wizard.
>>

> Arg. This is really getting on my nervers.. I've tried so many solutions.

> How hard can it be to launch my custom code instead of the creation wizard?


> Tomas
Re: How to make the "New" diagram wizard dissapear [message #173428 is a reply to message #173413] Thu, 21 February 2008 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Deyaa Adranale wrote:
> Hi Tomas,
>
> if you want to completely remove your diagram wizard from the new
> wizards, you have to remove the extension from the plugin.xml of your
> diagram plugin. just remove the xml text like this one:
>
> <extension point="org.eclipse.ui.newWizards">
> <wizard
> name="My Product Diagram"
> icon="icons/obj16/ModelDiagramFile.gif"
> category="org.eclipse.ui.MyCompany"
>
> class="com.mycompany.myproduct.diagram.part.XXXCreationWizard "
>
> id=" com.mycompany.myproduct.model.diagram.part.XXXCreationWizard ID ">
> <description>
> Creates a new diagram.
> </description> </wizard>
> </extension>
>

Thanks for helping (I really need this!)

I do not want to remove the menu option (the user needs to be able to
create diagrams)

>
> If you want to change what the wizard does, you have to modify the code
> of the generated XXXCreationWizard.

I have modified the performFinish so that what I want to do gets done
when the user presses finish. However, I would like to:
A: Remove the "select file" pages
B: (Better) That the wizard does not appear at all - but the code I have
in performFinish gets executed.

Ideas?


Tomas
Re: How to make the "New" diagram wizard dissapear [message #173435 is a reply to message #173358] Thu, 21 February 2008 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Hello Tomas,

Try "Same File For Diagram And Model" Gen Editor Generator parameter - this
will let you store domain model information together with diagram in the
same file...

-----------------
Alex Shatalin
Re: How to make the "New" diagram wizard dissapear [message #173459 is a reply to message #173435] Thu, 21 February 2008 10:24 Go to previous message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Hurray!

me = dancing!

I dropped the new wizard thing all together, and went for a hack'n slash
of xyzInitDiagramFileAction instead. I pasted in the creation code from
xyzCreationWizard, told it to quit using a progress monitor - and Voila!


Thanks for helping guys, this was a difficult one!


Cheers,
Tomas
Previous Topic:Edge layout configuration
Next Topic:How to generate diagram editor from an Ecore containing subpackages
Goto Forum:
  


Current Time: Thu Jul 17 19:35:24 EDT 2025

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

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

Back to the top