Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Resources.getWorkspace() returns null
Resources.getWorkspace() returns null [message #273737] Sun, 10 October 2004 15:15 Go to next message
Eclipse UserFriend
Originally posted by: manish.garg.gmail.com

Hi,

I am trying to work with the resources plugin to get some project
properties, but Resources.getWorkspace() always returns a null. The
documentation for the API says that a null is returned when the plugin is
shut down. So my questions are:

1. Is the Resources plugin shut down by default?
2. How do I start it programmatically?
3, Could there be something else I am missing?

The Code snippet :

IWorkspace wspace = Resources.getWorkspace();

wspace is null.

Thanks
Manish
Re: Resources.getWorkspace() returns null [message #273763 is a reply to message #273737] Mon, 11 October 2004 11:50 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Are you running under Eclipse? It would return null if you called it
from an application that was simply started from a main(). It needs to
be running as an Eclipse plugin for this to work.


--
Thanks,
Rich Kulp
Previous Topic:Platform, opening a perspective from an intro
Next Topic:Properties on IFolder, but only within my project
Goto Forum:
  


Current Time: Mon Nov 10 13:26:33 EST 2025

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

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

Back to the top