Workspace Resource with EMF Objects [message #841709] |
Wed, 11 April 2012 16:47 |
arthurembo Simo Messages: 16 Registered: May 2011 Location: Germany |
Junior Member |
|
|
Hi,
I have the following problem. I want to add emf objects, that I created to my viewer. I use the common navigator framework. So I create my own project in the CNF in this form:
1 TProject
11 Folder 1
111 element1
112 element2
...
12 Folder 2
Project, folder and files are really resources on my file system. Now I need sometimes like that after the elements:
...
11 Folder 1
111 element1
1111 EMF Object Instance1
1112 EMF object Instance2
....
112 element2
....
I created the EMF Model and generated the model and edit plugins. I created navigator content with one trigger: the workspace root.
1) How can I tell to my contentprovider, that at element1, It must add EMF objects, that I created?, or I need to add a new navigator content for the same contentprovider?.
2) How can I tell to my navigator, that it must use the xyzItemProvider to display at element1 position EMF Objects?
Note that in my project 1 file corresponds to one EMF objects, that means I created the EMF Objects programmatically, when I get the file in the project.
Thanks
Boris S.
[Updated on: Wed, 11 April 2012 16:48] Report message to a moderator
|
|
|
Re: Workspace Resource with EMF Objects [message #845610 is a reply to message #841709] |
Sun, 15 April 2012 08:10 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
I'm not familiar with how to integrate with CNF. Maybe someone else has
experience with that.
On 11/04/2012 6:47 PM, arthurembo Simo wrote:
> Hi,
>
> I have the following problem. I want to add emf objects, that I
> created to my viewer. I use the common navigator framework. So I
> create my own project in the CNF in this form:
>
> -> TProject
> -> Folder 1
> -> element1
> -> element2
> ...
> -> Folder 2
> Project, folder and files are really resources on my file system.
> Now I need sometimes like that after the elements:
>
> ...
> -> Folder 1
> -> element1
> -> EMF Object Instance1
> -> EMF object Instance2
> ....
> -> element2
> ....
>
> I created the EMF Model and generated the model and edit plugins. I
> created navigator content with one trigger: the workspace root.
>
> 1) How can I tell to my contentprovider, that at element1, It must add
> EMF objects, that I created?, or I need to add a new navigator content
> for the same contentprovider?.
>
> 2) How can I tell to my navigator, that it must use the
> xyzItemProvider to display at element1 position EMF Objects?
> Note that in my project 1 file corresponds to one EMF objects, that
> means I created the EMF Objects programmatically, when I get the file
> in the project.
>
> Thanks
> Boris S.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Workspace Resource with EMF Objects [message #845953 is a reply to message #841709] |
Sun, 15 April 2012 15:42 |
|
Hi, Boris,
I think that GMF-generated editors can integrate EMF resource contents
into the Common Navigator. You might check, there. At any rate, I'm
fairly certain that the MDT Papyrus project can serve an example.
HTH,
Christian
On 2012-04-11 16:47:38 +0000, arthurembo Simo said:
> Hi,
>
> I have the following problem. I want to add emf objects, that I created
> to my viewer. I use the common navigator framework. So I create my own
> project in the CNF in this form:
>
> -> TProject
> -> Folder 1
> -> element1
> -> element2
> ...
> -> Folder 2
> Project, folder and files are really resources on my file system.
> Now I need sometimes like that after the elements:
> ...
> -> Folder 1
> -> element1
> -> EMF Object Instance1
> -> EMF object Instance2
> ....
> -> element2
> ....
>
> I created the EMF Model and generated the model and edit plugins. I
> created navigator content with one trigger: the workspace root.
>
> 1) How can I tell to my contentprovider, that at element1, It must add
> EMF objects, that I created?, or I need to add a new navigator content
> for the same contentprovider?.
>
> 2) How can I tell to my navigator, that it must use the xyzItemProvider
> to display at element1 position EMF Objects?
> Note that in my project 1 file corresponds to one EMF objects, that
> means I created the EMF Objects programmatically, when I get the file
> in the project.
>
> Thanks
> Boris S.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02682 seconds