Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Howto remove a resource with Mars M7?
[CDO] Howto remove a resource with Mars M7? [message #1695975] Wed, 20 May 2015 16:52 Go to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
Hi,

With Luna, I could use the default "CDO Sessions" view to connect to a repository, open a session, open a transaction, select a resource, then do a right click and select "Remove" to delete the resource.

With Mars M7, I can still use the default "CDO Sessions" view to connect to a repository, open a session, open a transaction, select a resource, but then I just see a option "Delete" which is always disabled.

My repo configuration is very basic (no security manager).

Is there something special to do with Mars M7 to be able to delete a resource through the CDO default User Interface ?

Thanks,
Bernard.
Re: [CDO] Howto remove a resource with Mars M7? [message #1695978 is a reply to message #1695975] Wed, 20 May 2015 18:07 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Bernard,

We now provide a CDO Repositories view and a Project Explorer integration for "checkouts" (which can also be online)
from the configured repos.

The CDO Sessions view is still supported and should work mostly like before. Due to the major UI refactorings it's
possible that there are some regressions, though. Please submit a bugzilla so that I can fix it. It would be great if
you could have a look for other functionality that got lost from the CDO Sessions view. Thanks!

Cheers
/Eike

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



Am 20.05.2015 um 18:52 schrieb Bernard SARTER:
> Hi,
>
> With Luna, I could use the default "CDO Sessions" view to connect to a repository, open a session, open a transaction,
> select a resource, then do a right click and select "Remove" to delete the resource.
>
> With Mars M7, I can still use the default "CDO Sessions" view to connect to a repository, open a session, open a
> transaction, select a resource, but then I just see a option "Delete" which is always disabled.
>
> My repo configuration is very basic (no security manager).
>
> Is there something special to do with Mars M7 to be able to delete a resource through the CDO default User Interface ?
>
> Thanks,
> Bernard.
>


Re: [CDO] Howto remove a resource with Mars M7? [message #1695983 is a reply to message #1695978] Wed, 20 May 2015 19:45 Go to previous messageGo to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
Hi Eike,

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

I also had the feeling that renaming a resource from the CDO view triggers a NPE, but I didn't check this deeply since we are using the CDO view only to delete resources (all the rest is done by code, and still works fine with Mars M7).

Best regards,
Bernard.
Re: [CDO] Howto remove a resource with Mars M7? [message #1698116 is a reply to message #1695978] Thu, 11 June 2015 12:18 Go to previous messageGo to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
Hi Eike,

The problem is obviously still there with RC3 ...

BTW, I tried the new "Project Explorer integration".

On one side, it works and I can delete a resource in that way, on the other side it requires significantly more plugins, including net4j.db.h2 (?) etc ... which somehow annoys me because I need to embed only a minimal part of CDO-Ui in a RCP app.

Best regards,
Bernard.

Re: [CDO] Howto remove a resource with Mars M7? [message #1698123 is a reply to message #1698116] Thu, 11 June 2015 13:00 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 11.06.2015 um 14:18 schrieb Bernard SARTER:
> Hi Eike,
>
> The problem is obviously still there with RC3 ...
Sorry, I didn't manage to fix this in time. But I plan to do a very early service release to address this and a few
other issues.

>
> BTW, I tried the new "Project Explorer integration".
>
> On one side, it works and I can delete a resource in that way, on the other side it requires significantly more
> plugins, including net4j.db.h2 (?) etc ... which somehow annoys me because I need to embed only a minimal part of
> CDO-Ui in a RCP app.
The inherent offline support of the new explorer requires a minimal CDO server and DB support. This could be factored
out of the explorer but that would take me a couple days and I doubt that someone would want to fund this work, given
that you'd only spare 4 or 5 smaller plugins. A cheaper work-around could be to mark the respective dependencies
optional/greedy and make the code more tolerant.

Cheers
/Eike

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


Re: [CDO] Howto remove a resource with Mars M7? [message #1698175 is a reply to message #1698123] Thu, 11 June 2015 20:12 Go to previous messageGo to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
Ok, I will wait for the Service Release, it's such not a big deal.

Btw., I'm not sure that I fully understood the second part of your answer. I can clearly understand/admit that there are some dependencies to cdo core plugins, but why db.h2 ? CDO works also eg. with postgresql or other db-engines, and the chain explore.ui => explorer => db.h2 seems really a bit strange ...
Re: [CDO] Howto remove a resource with Mars M7? [message #1698357 is a reply to message #1698175] Mon, 15 June 2015 05:09 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 11.06.2015 um 22:12 schrieb Bernard Sarter:
> Ok, I will wait for the Service Release, it's such not a big deal.
It's already fixed now in both the master and the streams/4.4-maintenance Git branches. The maintenance builds will be
re-enabled after the 4.4 release is out next week.

> Btw., I'm not sure that I fully understood the second part of your answer. I can clearly understand/admit that there
> are some dependencies to cdo core plugins, but why db.h2 ? CDO works also eg. with postgresql or other db-engines, and
> the chain explore.ui => explorer => db.h2 seems really a bit strange ...
The org.eclipse.emf.cdo.workspace plugin internally uses an H2 DBStore to provide SVN-like offline functionality
(CDOWorkspaces). That is used by the explorer plugin to provide offline checkouts.

Cheers
/Eike

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


Re: [CDO] Howto remove a resource with Mars M7? [message #1698358 is a reply to message #1695983] Mon, 15 June 2015 05:24 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 20.05.2015 um 21:45 schrieb Bernard SARTER:
> Hi Eike,
>
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=467754.
>
> I also had the feeling that renaming a resource from the CDO view triggers a NPE,
That's also fixed now.

Cheers
/Eike

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


Previous Topic:enumeration
Next Topic:Add new child command to an existing metamodel without modifying it
Goto Forum:
  


Current Time: Fri Apr 26 21:31:13 GMT 2024

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

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

Back to the top