Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » diagram cannot be created inside a project.
diagram cannot be created inside a project. [message #702112] Tue, 26 July 2011 01:18 Go to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
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 621 times)
  • Attachment: 98.jpg
    (Size: 50.98KB, Downloaded 588 times)
  • Attachment: 99.jpg
    (Size: 30.69KB, Downloaded 563 times)
  • Attachment: 91.jpg
    (Size: 37.12KB, Downloaded 583 times)

[Updated on: Tue, 26 July 2011 01:21]

Report message to a moderator

Re: diagram cannot be created inside a project. [message #702265 is a reply to message #702112] Tue, 26 July 2011 06:57 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: diagram cannot be created inside a project. [message #702281 is a reply to message #702265] Tue, 26 July 2011 07:20 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
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 558 times)
  • Attachment: milon2.jpg
    (Size: 42.55KB, Downloaded 542 times)
Re: diagram cannot be created inside a project. [message #702303 is a reply to message #702112] Tue, 26 July 2011 07:50 Go to previous messageGo to next message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
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 08:05 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
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 552 times)

[Updated on: Tue, 26 July 2011 08:06]

Report message to a moderator

Re: diagram cannot be created inside a project. [message #702341 is a reply to message #702315] Tue, 26 July 2011 08:12 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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 09:40 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
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 04:36 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
any other solution please.....
Re: diagram cannot be created inside a project. [message #703855 is a reply to message #703024] Thu, 28 July 2011 01:44 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
still cant do it.....Sad
Re: diagram cannot be created inside a project. [message #710393 is a reply to message #702112] Fri, 05 August 2011 01:03 Go to previous messageGo to next message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
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 06:40 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
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 06:46 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
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] Tue, 09 August 2011 03:18 Go to previous message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
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: Wed Apr 24 20:46:53 GMT 2024

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

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

Back to the top