Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » To seperate out the code for the new diagram file creation and the GMF part
To seperate out the code for the new diagram file creation and the GMF part [message #32765] Tue, 29 August 2006 09:19 Go to next message
Eclipse UserFriend
Originally posted by: naveen.venkatesh.flextronicssoftware.com

Hi All,

I want to seperate out the code for the new file creation and the GMF part.

To be more specific i want to make the new file creation wizard
independent of the
GMF projects.
For instance, if i have two GMF projects
1) Mindmap
2) Library
I should be able to create diagram files for both Mindmap and Library
using the same wizard.

To explain it further..
1) I have both these examples as plugin projects in my workspace
2) I start the runtime eclipse window.
3) Now select file->new->other--Mindmap
--Library

4) By default the entry points for these plugins are as given above
and from there when u select either of the examples individual plugins
will be launched which will have its own new file creation wizard code to
accept
the diagram name and then creates the diagram.

I want to seperate out this wizard code for creating the diagram file
and make it reusable for both of these examples.

my requirement looks something like this
1)I will extend my wizard from org.eclipse.ui.newWizards extension point.
It would look something like this.

file->new--Mindmap
--Library.

2) Now when i select either of the two ie., mindmap/library the same
wizard should be

invoked and based on the selection the wizard should create the respective
diagram file.

Pls let me know your suggestion to achieve the same.
Re: To seperate out the code for the new diagram file creation and the GMF part [message #33972 is a reply to message #32765] Wed, 30 August 2006 07:49 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Hello!

You could write and register your own wizard that will reuse generated
wizard parts. I'm just curious - why do you need this?

Naveen wrote:
> Hi All,
>
> I want to seperate out the code for the new file creation and the GMF part.
>
> To be more specific i want to make the new file creation wizard
> independent of the GMF projects.
> For instance, if i have two GMF projects 1) Mindmap
> 2) Library
> I should be able to create diagram files for both Mindmap and Library
> using the same wizard.
>
> To explain it further..
> 1) I have both these examples as plugin projects in my workspace
> 2) I start the runtime eclipse window.
> 3) Now select file->new->other--Mindmap
> --Library
>
> 4) By default the entry points for these plugins are as given above
> and from there when u select either of the examples individual plugins
> will be launched which will have its own new file creation wizard code
> to accept the diagram name and then creates the diagram.
> I want to seperate out this wizard code for creating the diagram file
> and make it reusable for both of these examples.
>
> my requirement looks something like this
> 1)I will extend my wizard from org.eclipse.ui.newWizards extension point.
> It would look something like this.
>
> file->new--Mindmap
> --Library.
>
> 2) Now when i select either of the two ie., mindmap/library the same
> wizard should be
> invoked and based on the selection the wizard should create the
> respective diagram file.
>
> Pls let me know your suggestion to achieve the same.
>
Previous Topic:how to create two linked element in a diagram related to a single element in the model
Next Topic:Linking multiple files together
Goto Forum:
  


Current Time: Fri May 09 01:17:51 EDT 2025

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

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

Back to the top