Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » diagram cannot be created inside a project.
diagram cannot be created inside a project. [message #702112] Mon, 25 July 2011 21:18 Go to next message
Eclipse UserFriend
I have created a network diagram. So what I do, I run the program, create a new project then create my diagram. but the problem is the diagram is created separately.
For example: I have created a Project TEST.

index.php/fa/3470/0/


now when i try to create my diagram file, it creates separately, not inside of TEST project.


index.php/fa/3473/0/

index.php/fa/3471/0/



I want something like this:


index.php/fa/3472/0/


plz help me.....
  • Attachment: 90.jpg
    (Size: 41.39KB, Downloaded 680 times)
  • Attachment: 98.jpg
    (Size: 50.98KB, Downloaded 643 times)
  • Attachment: 99.jpg
    (Size: 30.69KB, Downloaded 626 times)
  • Attachment: 91.jpg
    (Size: 37.12KB, Downloaded 648 times)

[Updated on: Mon, 25 July 2011 21:21] by Moderator

Re: diagram cannot be created inside a project. [message #702265 is a reply to message #702112] Tue, 26 July 2011 02:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

you are creating the file outside of the project in C:\userse\iqbal.
How do you want to have it in the project?

Regards,
Re: diagram cannot be created inside a project. [message #702281 is a reply to message #702265] Tue, 26 July 2011 03:20 Go to previous messageGo to next message
Eclipse UserFriend
Yes...by default it is creating in "C:\userse\iqbal".

but shouldn't it be created under "Test" project?

i add some screen shot, may be helpful to u.

index.php/fa/3477/0/


index.php/fa/3478/0/
  • Attachment: milon1.jpg
    (Size: 32.62KB, Downloaded 627 times)
  • Attachment: milon2.jpg
    (Size: 42.55KB, Downloaded 600 times)
Re: diagram cannot be created inside a project. [message #702303 is a reply to message #702112] Tue, 26 July 2011 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Hmmm ... did you try somethings like "paste the workspace path instead of C:/user/igbal" ?

Re: diagram cannot be created inside a project. [message #702315 is a reply to message #702303] Tue, 26 July 2011 04:05 Go to previous messageGo to next message
Eclipse UserFriend
yes i have done it. it somehow create a .diagram file inside "Test " project. but it still shows the path(as u seen in the picture)

index.php/fa/3479/0/
  • Attachment: 12345.jpg
    (Size: 150.51KB, Downloaded 611 times)

[Updated on: Tue, 26 July 2011 04:06] by Moderator

Re: diagram cannot be created inside a project. [message #702341 is a reply to message #702315] Tue, 26 July 2011 04:12 Go to previous messageGo to next message
Eclipse UserFriend
I think the URI you use to open the diagram is a file-system absolute
URL. Instead it should be a workspace resource URI (
platform:/resource/Test/default6.network_diagram ), that you can easily
create using the
org.eclipse.emf.common.util,URI.createPlatformResourceURI(file.getFullPath().toString(),
true);

HTH

On 26/07/2011 10:05, iqbal wrote:
> yes i have done it. it somehow create a .diagram file inside "Test " project. but it still shows the path(as u seen in the picture)
>
>


--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: diagram cannot be created inside a project. [message #702382 is a reply to message #702341] Tue, 26 July 2011 05:40 Go to previous messageGo to next message
Eclipse UserFriend
org.eclipse.emf.common.util,URI.createPlatformResourceURI(file.getFullPath().toString(),true)

i went to this direction but i cannot edit anything. Its protected or something. what should i do?
Re: diagram cannot be created inside a project. [message #703024 is a reply to message #702382] Wed, 27 July 2011 00:36 Go to previous messageGo to next message
Eclipse UserFriend
any other solution please.....
Re: diagram cannot be created inside a project. [message #703855 is a reply to message #703024] Wed, 27 July 2011 21:44 Go to previous messageGo to next message
Eclipse UserFriend
still cant do it.....Sad
Re: diagram cannot be created inside a project. [message #710393 is a reply to message #702112] Thu, 04 August 2011 21:03 Go to previous messageGo to next message
Eclipse UserFriend
In fact, your problem is not really a problem.

there is a path issue only cause you're using your diagram in another instance of eclipse.

When your diagram will be over, you will make a plug-in for it, and this plug in will be perfectly integrated to eclipse, and file creation will be inside your projects.
Re: diagram cannot be created inside a project. [message #713146 is a reply to message #710393] Mon, 08 August 2011 02:40 Go to previous messageGo to next message
Eclipse UserFriend
I don't know how the path issue effect the creation of the diagram? I didn't do anything on any path or directory. Still now the file creation is out side my project.
Re: diagram cannot be created inside a project. [message #713150 is a reply to message #702112] Mon, 08 August 2011 02:46 Go to previous messageGo to next message
Eclipse UserFriend
I don't know how the path issue effect the creation of the diagram? I didn't do anything on any path or directory. Still now the file creation is out side my project.
Re: diagram cannot be created inside a project. [message #713774 is a reply to message #713150] Mon, 08 August 2011 23:18 Go to previous message
Eclipse UserFriend
help me out plz...........
Previous Topic:GMF 2.2 - IllegalArgumentException: can't find ID print
Next Topic:why the icon is diffrent?
Goto Forum:
  


Current Time: Fri Jul 04 13:52:17 EDT 2025

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

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

Back to the top