Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] How to register a Resource Opener
icon5.gif  [CDO] How to register a Resource Opener [message #1011422] Tue, 19 February 2013 14:52 Go to next message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
Hi,

I was debugging the plugin org.eclipse.emf.cdo.ui in order to know how CDO Sessions View works, and I realized than when you double click on a resource, it tries to get the corresponding Resource Opener associated to the extension of the resource. If no one is obtained, the CDO Editor is opened.

There are two methods that allows to register and unregister Resource Openers, but there are not any example about how to use them.

I try to use this methods outside this plugin, and there are a discouraged access because this class (CDOSessionsView) is contained into an internal package.

Which is the best way to register a Resource Opener? There exists any example?

Thanks a lot,
Marc
Re: [CDO] How to register a Resource Opener [message #1012619 is a reply to message #1011422] Thu, 21 February 2013 22:31 Go to previous messageGo to next message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
Well, I understand that this is an implementation of a sample CDO View, so our customized Views should implement something similar of this register, so there is no problem.

Marc
Re: [CDO] How to register a Resource Opener [message #1014611 is a reply to message #1011422] Tue, 26 February 2013 06:39 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 19.02.2013 15:52, schrieb Marc Gil:
> Hi,
>
> I was debugging the plugin org.eclipse.emf.cdo.ui in order to know how CDO Sessions View works, and I realized than
> when you double click on a resource, it tries to get the corresponding Resource Opener associated to the extension of
> the resource. If no one is obtained, the CDO Editor is opened.
>
> There are two methods that allows to register and unregister Resource Openers, but there are not any example about how
> to use them.
>
> I try to use this methods outside this plugin, and there are a discouraged access because this class (CDOSessionsView)
> is contained into an internal package.
>
> Which is the best way to register a Resource Opener? There exists any example?
IIRC. this mechansim has been made internally for the Dawn editors. You can use it for your own purpose but we make no
guarantee that the mechanism will even survive.

We've reworked the "open editor" story completely in 4.2 and there's more to come when Ed has committed our work on
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384036 , which he says will be before EclipseCon.

Cheers
/Eike

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


Previous Topic:[CDO] disable revisions when using branches
Next Topic:[CDO] Set up security manager
Goto Forum:
  


Current Time: Thu Mar 28 22:11:13 GMT 2024

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

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

Back to the top