EDiagram Wizard [message #169182] |
Mon, 21 February 2005 17:59  |
Eclipse User |
|
|
|
Originally posted by: flsobral.yahoo.com.br
Hi.
I'm trying to make a wizard starting from EDiagram wizard (EDiragram
example, from CVS), just removing the second page (where it asks for ecore
files) and using my own diagram, but when it tries to instatiate the
diagram an error occurs.
This is the original code in the method doFinish, from NewEDiagramWizard.
...
if (file.exists())
throwCoreException("File \"" + file.getFullPath() + "\" already
exists");
rsrc = rsrcSet.createResource(uri);
Diagram diagram = ModelFactory.eINSTANCE.createDiagram();
...
I replaced the last line for:
MyDiagram diagram = ModelFactory.eINSTANCE.createMyDiagram();
When I try to create a new file using the wizard, it gives me the
following error message:
generator/plugin/model/ModelFactory
What am I doing wrong?
Thanks.
|
|
|
Re: EDiagram Wizard [message #169193 is a reply to message #169182] |
Mon, 21 February 2005 18:15  |
Eclipse User |
|
|
|
Originally posted by: flsobral.yahoo.com.br
Nevermind, I forgot to import the project with my model...
Fábio Sobral wrote:
> Hi.
> I'm trying to make a wizard starting from EDiagram wizard (EDiragram
> example, from CVS), just removing the second page (where it asks for ecore
> files) and using my own diagram, but when it tries to instatiate the
> diagram an error occurs.
> This is the original code in the method doFinish, from NewEDiagramWizard.
> ...
> if (file.exists())
> throwCoreException("File "" + file.getFullPath() + "" already
> exists");
> rsrc = rsrcSet.createResource(uri);
> Diagram diagram = ModelFactory.eINSTANCE.createDiagram();
> ...
> I replaced the last line for:
> MyDiagram diagram = ModelFactory.eINSTANCE.createMyDiagram();
> When I try to create a new file using the wizard, it gives me the
> following error message:
> generator/plugin/model/ModelFactory
> What am I doing wrong?
> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.05277 seconds