Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ResourcesPlugin.getWorkspace() returns null for RCP applications?
ResourcesPlugin.getWorkspace() returns null for RCP applications? [message #436687] Thu, 15 September 2005 01:24 Go to next message
Bryan is currently offline BryanFriend
Messages: 6
Registered: July 2009
Junior Member
Hello all,

In my RCP app, calling this:

IWorkspace workspace = ResourcesPlugin.getWorkspace();

Gives me this error:

Unhandled event loop exception
Reason:
Workspace is closed.

I'm not sure how to resolve this. Is there even a workspace created by the
RCP app automatically? Or do I have to create one myself? (and if so, how?)

Any and all help is appreciated.

Thanks,

Bryan
Re: ResourcesPlugin.getWorkspace() returns null for RCP applications? [message #436688 is a reply to message #436687] Thu, 15 September 2005 03:35 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
It work fine.You call it before create workspace, probably
try in postWindowOpen
Bryan wrote:

> Hello all,
>
> In my RCP app, calling this:
>
> IWorkspace workspace = ResourcesPlugin.getWorkspace();
>
> Gives me this error:
>
> Unhandled event loop exception
> Reason:
> Workspace is closed.
>
> I'm not sure how to resolve this. Is there even a workspace created by the
> RCP app automatically? Or do I have to create one myself? (and if so,
> how?)
>
> Any and all help is appreciated.
>
> Thanks,
>
> Bryan
Previous Topic:Perspective tab
Next Topic:headless "hello world" application
Goto Forum:
  


Current Time: Thu Apr 25 07:19:25 GMT 2024

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

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

Back to the top