Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram Creation Weirdness
Diagram Creation Weirdness [message #218537] Thu, 12 February 2009 16:39 Go to next message
Maurice O'Connor is currently offline Maurice O'ConnorFriend
Messages: 86
Registered: July 2009
Member
Hi! I just generated the diagram code and notice in the runtime instance
that my diagrams are popping out in my user home directory when I create
them. This is contrary to my past experience with gmf, where they would
pop out in the selected project in the runtime workspace.

A look at the generated code (the constructor for
WizardNewFileCreationPage) shows this:

this.currentSelection = currentSelection;
String home = System.getProperty("user.home");
if (home != null) {
initialContainerFullPath = new Path(home);
}

currentSelection is set but never read in the code.

So this has changed? Is there a tweak to the model I can make to fix it,
or should I just rewrite this constructor? Thanks!

Maurice
Re: Diagram Creation Weirdness [message #218649 is a reply to message #218537] Fri, 13 February 2009 11:21 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Maurice O'Connor,

ASAIKSee from cvs history this line was in a template from the very beggining
(05.06.2007).
But this template should be used to generate application only. Are you sure
you've generated eclipse application in the past (use 'rcp' mode in gmfmap->gmfgen
transformation)?

-----------------
Alex Shatalin
Re: Diagram Creation Weirdness [message #218752 is a reply to message #218649] Fri, 13 February 2009 14:21 Go to previous message
Maurice O'Connor is currently offline Maurice O'ConnorFriend
Messages: 86
Registered: July 2009
Member
Hi Alex,

Thanks for your help, this was indeed the issue!

Maurice

Alex Shatalin wrote:
> Hello Maurice O'Connor,
> ASAIKSee from cvs history this line was in a template from the very
beggining
> (05.06.2007).
> But this template should be used to generate application only. Are you sure
> you've generated eclipse application in the past (use 'rcp' mode in
gmfmap->gmfgen
> transformation)?
Previous Topic:Modify the palette and remove before the existing palette
Next Topic:Changing the Canvas layout
Goto Forum:
  


Current Time: Tue Apr 23 13:10:32 GMT 2024

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

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

Back to the top