Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Dawn] Generated Dawn Editor Wizards don't show resources inside the view
[Dawn] Generated Dawn Editor Wizards don't show resources inside the view [message #1355009] Wed, 14 May 2014 14:28 Go to next message
Angel Lopez is currently offline Angel LopezFriend
Messages: 8
Registered: January 2014
Junior Member
Dear all.


We are using Dawn Framework & CDO to generate Editors and store the different models we have in the platform.

I believe that my problem is similar to this one:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=404043#c2

In my case the CDOResourceNodeSelectionWidget tree , instead of Dawn Explorer, does not show resources inside the view.

This class is called from the generated Dawn Model Wizards of my models. I need it working to allow to the user select the destination CDOResourceFolder inside the repository for the model he is going to create. I'm really stucked with this problem and I would be very grateful if anyone could help me.

I'm getting this exception java.lang.IllegalStateException: No node for View 1 [MAIN] in ContainerItemProvider.getChildren() function when trying to expand the View Node.
The Dawn Explorer View is working well.

The version of Dawn I'm using is 2.0.100.v20130503-1908

Best regards.
Re: [Dawn] Generated Dawn Editor Wizards don't show resources inside the view [message #1357348 is a reply to message #1355009] Thu, 15 May 2014 13:34 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Angel,

Have you stepped through the DawnWizardPageItemProvider to see why it
doesn't create a node for your view? It seems to me that this is
similar to bug 404043 and that a similar treatment might help. If you
can create a Bugzilla and supply a Gerrit change, I'd be happy to look
at it.

I wouldn't expect that much has changed in Dawn since the build you
used, but perhaps the CDO infrastructure has changed. Have you tried a
recent Luna milestone (e.g., M7)?

Cheers,

Christian

On 2014-05-14 14:28:20 +0000, Angel Lopez said:

> Dear all.
>
> We are using Dawn Framework & CDO to generate Editors and store the
> different models we have in the platform.
> I believe that my problem is similar to this one:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=404043#c2
> In my case the CDOResourceNodeSelectionWidget tree , instead of Dawn
> Explorer, does not show resources inside the view.
>
> This class is called from the generated Dawn Model Wizards of my
> models. I need it working to allow to the user select the destination
> CDOResourceFolder inside the repository for the model he is going to
> create. I'm really stucked with this problem and I would be very
> grateful if anyone could help me.
> I'm getting this exception java.lang.IllegalStateException: No node
> for View 1 [MAIN] in ContainerItemProvider.getChildren() function when
> trying to expand the View Node.
> The Dawn Explorer View is working well.
> The version of Dawn I'm using is 2.0.100.v20130503-1908
> Best regards.
Re: [Dawn] Generated Dawn Editor Wizards don't show resources inside the view [message #1357363 is a reply to message #1355009] Thu, 15 May 2014 13:36 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Oh, and I forgot to mention that questions about CDO/Dawn should be
directed to the EMF newsgroup (eclipse.tools.emf), not EMF Technology,
because CDO is in the EMF project.

Christian

On 2014-05-14 14:28:20 +0000, Angel Lopez said:

> Dear all.
>
> We are using Dawn Framework & CDO to generate Editors and store the
> different models we have in the platform.
> I believe that my problem is similar to this one:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=404043#c2
> In my case the CDOResourceNodeSelectionWidget tree , instead of Dawn
> Explorer, does not show resources inside the view.
>
> This class is called from the generated Dawn Model Wizards of my
> models. I need it working to allow to the user select the destination
> CDOResourceFolder inside the repository for the model he is going to
> create. I'm really stucked with this problem and I would be very
> grateful if anyone could help me.
> I'm getting this exception java.lang.IllegalStateException: No node
> for View 1 [MAIN] in ContainerItemProvider.getChildren() function when
> trying to expand the View Node.
> The Dawn Explorer View is working well.
> The version of Dawn I'm using is 2.0.100.v20130503-1908
> Best regards.
Re: [Dawn] Generated Dawn Editor Wizards don't show resources inside the view [message #1359219 is a reply to message #1357363] Fri, 16 May 2014 08:18 Go to previous messageGo to next message
Angel Lopez is currently offline Angel LopezFriend
Messages: 8
Registered: January 2014
Junior Member
Dear Christian

We are using Kepler, move to Luna would need to many effort. We have the experience of moving from Juno to Kepler, the project began in 2011.

To solve the problem i have changed the code of DawnWizardPageItemProvider.getChildren() for this one based in the code of DawnItemProvider.getChildren() used by the Dawn Explorer that works well.

@Override
  public Object[] getChildren(Object element)
  {
    Object[] result = super.getChildren(element);

    if (result.length > 0 && result[0] instanceof CDOView)
    {      
        result = new Object[] { result[0] };    
      return result;
    }

    if (element instanceof CDOResourceFolder)
    {
      return ((CDOResourceFolder)element).getNodes().toArray();
    }
    return result;
  }


Many thanks for your help.

Best regards.

[Updated on: Fri, 16 May 2014 08:39]

Report message to a moderator

Re: [Dawn] Generated Dawn Editor Wizards don't show resources inside the view [message #1374084 is a reply to message #1359219] Thu, 22 May 2014 13:10 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Angel,

Sorry for the long delay.

This looks promising. Please raise a Bugzilla:

https://bugs.eclipse.org/bugs/enter_bug.cgi?alias=&assigned_to=emf.cdo-inbox%40eclipse.org&bug_severity=normal&bug_status=NEW&component=cdo.dawn&form_name=enter_bug&product=EMF&version=4.2


and submit a change to Gerrit:

ssh://git.eclipse.org:29418/cdo/cdo.git

I don't know whether this change can be considered for the Luna release
in this RC ramp-down phase or whether it will have to wait for SR1, but
we'll see. Hopefully we can process it sooner.

Cheers,

Christian


On 2014-05-16 08:18:24 +0000, Angel Lopez said:

> Dear Christian
> We are using Kepler, move to Luna would need to many effort. We have
> the experience of moving from Juno to Kepler, the project began in 2011.
>
> To solve the problem i have changed the code of
> DawnWizardPageItemProvider.getChildren() for this one based in the code
> of DawnItemProvider.getChildren() used by the Dawn Explorer that works
> well.
>
> @Override
> public Object[] getChildren(Object element)
> {
> Object[] result = super.getChildren(element);
>
> if (result.length > 0 )
> {
> // filter the views to show only our view
> CDOView ourView = null;
> for (int i = 0; i < result.length; i++)
> {
> if (result[i] instanceof CDOView)
> {
> ourView = (CDOView)result[i];
> break;
> }
> }
>
> if (ourView != null)
> {
> result = new Object[] { ourView };
> } // otherwise, we're showing something totally else, so don't
> worry about it
>
> return result;
> }
>
> if (element instanceof CDOResourceFolder)
> {
> return ((CDOResourceFolder)element).getNodes().toArray();
> }
> return result;
> }
>
> Many thanks for your help.
>
> Best regards.
Re: [Dawn] Generated Dawn Editor Wizards don't show resources inside the view [message #1374266 is a reply to message #1374084] Thu, 22 May 2014 14:56 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 22.05.2014 15:10, schrieb Christian W. Damus:
> Hi, Angel,
>
> Sorry for the long delay.
>
> This looks promising. Please raise a Bugzilla:
>
> https://bugs.eclipse.org/bugs/enter_bug.cgi?alias=&assigned_to=emf.cdo-inbox%40eclipse.org&bug_severity=normal&bug_status=NEW&component=cdo.dawn&form_name=enter_bug&product=EMF&version=4.2
>
>
> and submit a change to Gerrit:
>
> ssh://git.eclipse.org:29418/cdo/cdo.git
>
> I don't know whether this change can be considered for the Luna release in this RC ramp-down phase or whether it will
> have to wait for SR1, but we'll see. Hopefully we can process it sooner.
+1 for getting it in if you're confident in it ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> Cheers,
>
> Christian
>
>
> On 2014-05-16 08:18:24 +0000, Angel Lopez said:
>
>> Dear Christian
>> We are using Kepler, move to Luna would need to many effort. We have the experience of moving from Juno to Kepler,
>> the project began in 2011.
>>
>> To solve the problem i have changed the code of DawnWizardPageItemProvider.getChildren() for this one based in the
>> code of DawnItemProvider.getChildren() used by the Dawn Explorer that works well.
>>
>> @Override
>> public Object[] getChildren(Object element)
>> {
>> Object[] result = super.getChildren(element);
>>
>> if (result.length > 0 )
>> {
>> // filter the views to show only our view
>> CDOView ourView = null;
>> for (int i = 0; i < result.length; i++)
>> {
>> if (result[i] instanceof CDOView)
>> {
>> ourView = (CDOView)result[i];
>> break;
>> }
>> }
>>
>> if (ourView != null)
>> {
>> result = new Object[] { ourView };
>> } // otherwise, we're showing something totally else, so don't worry about it
>>
>> return result;
>> }
>>
>> if (element instanceof CDOResourceFolder)
>> {
>> return ((CDOResourceFolder)element).getNodes().toArray();
>> }
>> return result;
>> }
>>
>> Many thanks for your help.
>>
>> Best regards.
>
>


Re: [Dawn] Generated Dawn Editor Wizards don't show resources inside the view [message #1384181 is a reply to message #1374266] Wed, 28 May 2014 10:38 Go to previous message
Angel Lopez is currently offline Angel LopezFriend
Messages: 8
Registered: January 2014
Junior Member
Hi Christian.

Sorry for the delay.

I have created this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=436036.

I can't upload the change because from my company we only have permission access to external machines by port 80.

Eike, i'm beginner this technlology, to be honest, not very confident Very Happy.

Best regards.
Previous Topic:[EMFStore] Pluginmigration from 0.9.x to 1.2.0
Next Topic:[Texo] IllegalStateException: The object ... is not contained in a resource.
Goto Forum:
  


Current Time: Fri Apr 19 06:23:43 GMT 2024

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

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

Back to the top