Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Geting the CDO Resource using CDOResource URI
icon8.gif  Geting the CDO Resource using CDOResource URI [message #1429424] Tue, 23 September 2014 08:01 Go to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
I sent the URI of a CDOResource from one session to all RemoteSessions. The URI String is received on all Remote Sessons.

Now, I want to get the CDOResource using the URI. How can I do this?

Re: Geting the CDO Resource using CDOResource URI [message #1429482 is a reply to message #1429424] Tue, 23 September 2014 09:34 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6433
Registered: July 2009
Senior Member
Am 23.09.2014 um 10:01 schrieb UmaShankar Subramani:
> I sent the URI of a CDOResource from one session to all RemoteSessions. The URI String is received on all Remote
> Sessons.
>
> Now, I want to get the CDOResource using the URI. How can I do this?
You need an open CDOView or CDOTransaction, then you ask view.getResource(uri).

Cheers
/Eike

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


Re: Geting the CDO Resource using CDOResource URI [message #1431568 is a reply to message #1429482] Thu, 25 September 2014 21:45 Go to previous messageGo to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi Eike,

Thanks for your help. I successfully sent the CDOResource URI and receives it on all remote sessions.
Then I retrieved the CDOResource object using the URI successfully.

Now I want to be able to get the IWorkbenchpage to open the CDOResource in the CDOEditor.
How can I get the active page ( IWorkbenchpage object) now. I have only the CDOSession object and CDOResource Object.



/Uma
Re: Geting the CDO Resource using CDOResource URI [message #1431699 is a reply to message #1431568] Fri, 26 September 2014 03:03 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6433
Registered: July 2009
Senior Member
Am 25.09.2014 um 23:45 schrieb UmaShankar Subramani:
> Hi Eike,
>
> Thanks for your help. I successfully sent the CDOResource URI and receives it on all remote sessions.
> Then I retrieved the CDOResource object using the URI successfully.
>
> Now I want to be able to get the IWorkbenchpage to open the CDOResource in the CDOEditor.
You'll find org.eclipse.emf.cdo.ui.CDOEditorUtil.openEditor(IWorkbenchPage, CDOView, String) useful.

> How can I get the active page ( IWorkbenchpage object) now. I have only the CDOSession object and CDOResource Object.
One way is PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().

Cheers
/Eike

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


Re: Geting the CDO Resource using CDOResource URI [message #1431854 is a reply to message #1431699] Fri, 26 September 2014 08:27 Go to previous messageGo to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().

I thinks this will only get me the ActivePage of the workspace from which I run the CDOServer.

But I want the ActivePages for all workspaces on which the RemoteSessions are open.
Re: Geting the CDO Resource using CDOResource URI [message #1431878 is a reply to message #1431854] Fri, 26 September 2014 09:12 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6433
Registered: July 2009
Senior Member
Am 26.09.2014 um 10:27 schrieb UmaShankar Subramani:
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().
>
> I thinks this will only get me the ActivePage of the workspace from which I run the CDOServer.
What makes you think that?

>
> But I want the ActivePages for all workspaces on which the RemoteSessions are open.


Re: Geting the CDO Resource using CDOResource URI [message #1432005 is a reply to message #1431878] Fri, 26 September 2014 13:17 Go to previous message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi Eike,

Thanks for the information. I am sorry . I was a bit confused. Now I understand that it should work fine.
Thanks a alot.


/Uma
Previous Topic:[EMF Transaction] EObject removed from ResourceSet has always TransactionChangeRecorder as Adapter
Next Topic:How to customize reference serialization
Goto Forum:
  


Current Time: Wed May 22 11:05:38 GMT 2019

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

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

Back to the top