Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Edit domain of eclipse not providing the child nodes when product is exported(Edit domain of eclipse not providing the child nodes when product is exported)
Edit domain of eclipse not providing the child nodes when product is exported [message #893746] Thu, 05 July 2012 12:49 Go to next message
Girish Chandran is currently offline Girish ChandranFriend
Messages: 24
Registered: June 2012
Junior Member
Hi all,

I am developing a RCP application which deals with EMF resources. Actually, I am having a xml file for which I am creating a model.

At a particular instant, I am having the root node of the xml file and when i try to get the children of the node using EMF edit domain, it does not return any value and i get 0 children under the root node. But in my xml file, there are 2 children under the root node.

The application works fine, when run from eclipse IDE. But when i tried to export it as a rcp product, the problem arises. What may be the reason for such a behavior when we export it as a product? Is there something, which we should take care of when we export our product for EMF related application.

A help will be greatly appreciated. Thanks in advance.

Regards,
Girish
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893772 is a reply to message #893746] Thu, 05 July 2012 13:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30693
Registered: July 2009
Senior Member
Try running it under debug control to see that the right generated item
provider is being used.

On 05/07/2012 2:49 PM, Girish Chandran wrote:
> Hi all,
>
> I am developing a RCP application which deals with EMF resources.
> Actually, I am having a xml file for which I am creating a model.
>
> At a particular instant, I am having the root node of the xml file and
> when i try to get the children of the node using EMF edit domain, it
> does not return any value and i get 0 children under the root node.
> But in my xml file, there are 2 children under the root node.
>
> The application works fine, when run from eclipse IDE. But when i
> tried to export it as a rcp product, the problem arises. What may be
> the reason for such a behavior when we export it as a product? Is
> there something, which we should take care of when we export our
> product for EMF related application.
>
> A help will be greatly appreciated. Thanks in advance.
>
> Regards, Girish
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893778 is a reply to message #893772] Thu, 05 July 2012 13:50 Go to previous messageGo to next message
Girish Chandran is currently offline Girish ChandranFriend
Messages: 24
Registered: June 2012
Junior Member
Hi Ed Merks,

How can i debug, when i have exported my RCP as a product. Please guide me how can i debug it in a product mode.

Regards,
Girish
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893805 is a reply to message #893778] Thu, 05 July 2012 14:27 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 853
Registered: July 2009
Senior Member
Maybe, you forgot to include the resources needed by your product: are the files you are talking about (physically) contained in the final/exported rcp product?

Here is an article on how to remotely debugging a java app:
http://www.ibm.com/developerworks/opensource/library/os-eclipse-javadebug/index.html
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893915 is a reply to message #893805] Fri, 06 July 2012 03:01 Go to previous messageGo to next message
Girish Chandran is currently offline Girish ChandranFriend
Messages: 24
Registered: June 2012
Junior Member
Hi Erdal,

I have added all the resources which are required by the product. I have already got the edit domain by using the file resource. Yes the files are physically present in the exported rcp product. When i try to get the children using the edit domain, it does not show anything, but i was able to get the root node of the xml file.

Regards,
Girish
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893928 is a reply to message #893915] Fri, 06 July 2012 06:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30693
Registered: July 2009
Senior Member
Girish,

If you can't set up remote debugging, you can always resort to adding
print/trace statements to your code. See what type of value is returned
from editingDomain.getAdapterFactory().adapt(root,
IEditingDomainItemProvider.class); it should be your generated item
provider.

On 06/07/2012 5:01 AM, Girish Chandran wrote:
> Hi Erdal,
>
> I have added all the resources which are required by the product. I
> have already got the edit domain by using the file resource. Yes the
> files are physically present in the exported rcp product. When i try
> to get the children using the edit domain, it does not show anything,
> but i was able to get the root node of the xml file.
> Regards,
> Girish
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893948 is a reply to message #893928] Fri, 06 July 2012 07:25 Go to previous messageGo to next message
Girish Chandran is currently offline Girish ChandranFriend
Messages: 24
Registered: June 2012
Junior Member
Hi Ed,

It showing that the adapter factory is undefined for the type editing domain.
Iam using "org.eclipse.emf.edit.domain.EditingDomain". What may be reason for it?

Thanks in advance.

Regards,
Girish
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893961 is a reply to message #893948] Fri, 06 July 2012 08:35 Go to previous messageGo to next message
Girish Chandran is currently offline Girish ChandranFriend
Messages: 24
Registered: June 2012
Junior Member
Hi Ed,

Currently iam working on a configuration editor development, which is based on ARTOP(It's a consortium of automotive domain tool development). They provide a set of api's. It is also purely based on EMF modelling.

I guess, i internally get items from AUTOSARItemProvider. Will there be any issues with the item provider, which currently I am using? Could you please help to get me out of this problem.
Re: Edit domain of eclipse not providing the child nodes when product is exported [message #893991 is a reply to message #893961] Fri, 06 July 2012 10:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30693
Registered: July 2009
Senior Member
Girish,

You're just not providing details sufficient to help with your problem.
It seems clear you've not deployed something, but how can I guess about
that?

On 06/07/2012 10:35 AM, Girish Chandran wrote:
> Hi Ed,
>
> Currently iam working on a configuration editor development, which is
> based on ARTOP(It's a consortium of automotive domain tool
> development). They provide a set of api's. It is also purely based on
> EMF modelling.
>
> I guess, i internally get items from AUTOSARItemProvider. Will there
> be any issues with the item provider, which currently I am using?
> Could you please help to get me out of this problem.
Previous Topic:[CDO] CDO Workspace. On commit 'Change set is outdated'
Next Topic:[Xcore] Problem with a package starting "http://"
Goto Forum:
  


Current Time: Mon Dec 16 04:24:41 GMT 2019

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

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

Back to the top