|
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 |
|
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 |
|
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 |
Angel Lopez 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 |
|
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 |
|
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.
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.04523 seconds