Skip to main content



      Home
Home » Eclipse Projects » GEF » EDiagram Wizard
EDiagram Wizard [message #169182] Mon, 21 February 2005 17:59 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:custom UpdateManager in Layer
Next Topic:SetPropertyValueCommnad used by the UndoablePropertySheetEntry
Goto Forum:
  


Current Time: Sun Jun 15 15:36:18 EDT 2025

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

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

Back to the top